bcc icon indicating copy to clipboard operation
bcc copied to clipboard

libbpf-tools:slabratetop can't find kmem_cache_alloc kprobe

Open jeromemarchand opened this issue 1 year ago • 0 comments

The libbpf tool slabratetop cant find the kmem_cache_alloc kprobe on a recent kernel (on RHEL-10 beta):

$ slabratetop
libbpf: prog 'kmem_cache_alloc': failed to create kprobe '+0x0' perf event: No such file or directory
libbpf: prog 'kmem_cache_alloc': failed to auto-attach: -2
failed to attach BPF programs: -2
$ uname -r
6.11.0-0.rc5.23.el10.x86_64

I assume the function have been inlined. There is tracepoint available (kmem/kmem_cache_alloc), but it doesn't provides all the data used by the tool such as the cache name.

jeromemarchand avatar Oct 04 '24 12:10 jeromemarchand