eBPF command 'biolatency -D' fails with Traceback

Solution Verified - Updated -

Issue

  • eBPF command ./biolatency -D fails with Traceback:
Traceback (most recent call last):
  File "./biolatency", line 121, in <module>
    fn_name="trace_req_completion")
  File "/usr/lib/python3.6/site-packages/bcc/__init__.py", line 592, in attach_kprobe
    fn = self.load_func(fn_name, BPF.KPROBE)
  File "/usr/lib/python3.6/site-packages/bcc/__init__.py", line 377, in load_func
    (func_name, errstr))
Exception: Failed to load BPF program b'trace_req_completion': Permission denied

Environment

  • Red Hat Enterprise Linux (RHEL) 8

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