Public bug reported:
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
** Affects: bpfcc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1910447
Title:
PermissionError: [Errno 1] Operation not permitted:
'/sys/kernel/debug/tracing/../kprobes/blacklist'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bpfcc/+bug/1910447/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs