ebpf_exporter icon indicating copy to clipboard operation
ebpf_exporter copied to clipboard

runqlat needs an update for newer kernels

Open vedranf opened this issue 5 years ago • 1 comments

Hello,

When trying to run runqlat example I'm getting something like:

failed to attach kprobes: failed to attach probe "ttwu_do_wakeup" to "trace_ttwu_do_wakeup": failed to attach BPF kprobe

however original bcc tool runqlat still works. Apparently this issue was fixed in:

https://github.com/iovisor/bcc/commit/0d72237946afebc5d300676af641319fb3d020be#diff-0d3cbd144510f7be0e8837764d7ec90a

so I assume it needs a fix here as well.

Regards, Vedran

vedranf avatar Feb 27 '20 09:02 vedranf

Thanks for pointing this out. Lack of stable interface is the fact of life with kprobe, that's why we have both kprobe and raw_tracepoint variants of the timers example.

PR is welcome to migrate runqlat example, so I'll leave this open in case anyone wants to try.

bobrik avatar Mar 20 '20 21:03 bobrik

We now use libbpf, so this should be easier. There hasn't been much interest in this so far, so I'm going to close it.

bobrik avatar Oct 20 '22 06:10 bobrik