bpf-slabratetop fails to start in RHEL-10

Solution Verified - Updated -

Issue

  • bpf-slabratetop fails to start in RHEL-10
  • bpf-slabratetop fails to start with below error:
# bpf-slabratetop
libbpf: prog 'kmem_cache_alloc': failed to create kprobe 'kmem_cache_alloc+0x0' perf event: No such file or directory
libbpf: prog 'kmem_cache_alloc': failed to auto-attach: -2
failed to attach BPF programs: -2

Environment

  • Red Hat Enterprise Linux 10
  • bpf-slabratetop
    • libbpf-tools-0.32.0-1.el10
  • bcc-tools

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content