• Teng Qin's avatar
    Do not calculate syscall prefix proactively in C++ API (#1755) · db6e2931
    Teng Qin authored
    Currently do calculate the syscall prefix in BPF::init, which requires
    loading kallsyms etc. But a lot of times the functionality will not be
    used. This commit changes that we only calculate the syscall prefix the
    first time we call get_syscall_fnname
    
    Also change to use the KSym class directly for better destruct
    production
    db6e2931
BPF.h 9.67 KB