PermissionError: [Errno 1] Operation not permitted: '/sys/kernel/debug/tracing/../kprobes/blacklist'

Bug #1910447 reported by Bobby B
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bpfcc (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Error caused when running biotop or biosnoop.

Traceback (most recent call last):
  File "/usr/sbin/biosnoop-bpfcc", line 159, in <module>
    if BPF.get_kprobe_functions(b'blk_start_request'):
  File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 539, in get_kprobe_functions
    with open("%s/../kprobes/blacklist" % TRACEFS, "rb") as blacklist_f:
PermissionError: [Errno 1] Operation not permitted: '/sys/kernel/debug/tracing/../kprobes/blacklist'

Fixed by removing the following lines at 539 in /usr/lib/python3/dist-packages/bcc/__init__.py

@staticmethod
    def get_kprobe_functions(event_re):
        #with open("%s/../kprobes/blacklist" % TRACEFS, "rb") as blacklist_f:
        # blacklist = set([line.rstrip().split()[1] for line in blacklist_f])
        fns = []

        in_init_section = 0
        in_irq_section = 0

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bpfcc (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.