• Yonghong Song's avatar
    introduce {attach|detach}_raw_tracepoint API · 0d722379
    Yonghong Song authored
    The motivation comes from pull request #1689.
    It attached a kprobe bpf program to kernel function
    ttwu_do_wakeup for more accurate tracing.
    Unfortunately, it broke runqlat.py in my
    4.17 environment since ttwu_do_wakeup function
    is inlined in my kernel with gcc 7.3.1.
    
    4.17 introduced raw_tracepoint and this patch
    added the relevant API to bcc. With this,
    we can use tracepoints
    sched:{sched_wakeup, sched_wakeup_new, sched_switch}
    to measure runq latency more reliably.
    Signed-off-by: default avatarYonghong Song <yhs@fb.com>
    0d722379
libbpf.h 9.12 KB