• Teng Qin's avatar
    Add extra_flag option to bpf_attach_perf_event_raw · bf2513df
    Teng Qin authored
    The bpf_attach_perf_event_raw API is designed to provide maximum
    flexibility for people to use advanced features of Kernel Perf Events
    with BPF. Some times specifying flags is neccesary, such as if we want
    to use `PERF_FLAG_PID_CGROUP` to profile a container. This commit adds
    `extra_flag` option to C and C++ interface
    bf2513df
libbpf.h 9.15 KB