__do_page_cache_readahead was renamed to do_page_cache_ra

Bug #1998015 reported by Kerwin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bpfcc (Ubuntu)
New
Undecided
Unassigned

Bug Description

In Ubuntu 22.04, kernel 5.15.0-53-generic, bpfcc-tools version 0.18.0+ds-2

has a bug "Failed to attach BPF program b'entry__do_page_cache_readahead' to kprobe b'__do_page_cache_readahead'", that is because of after kernel version 5.10 (include), __do_page_cache_readahead was renamed to do_page_cache_ra

$sudo readahead-bpfcc
cannot attach kprobe, probe entry may not exist
Traceback (most recent call last):
  File "/usr/sbin/readahead-bpfcc", line 98, in <module>
    b.attach_kprobe(event="__do_page_cache_readahead", fn_name="entry__do_page_cache_readahead")
  File "/usr/lib/python3/dist-packages/bcc/__init__.py", line 683, in attach_kprobe
    raise Exception("Failed to attach BPF program %s to kprobe %s" %
Exception: Failed to attach BPF program b'entry__do_page_cache_readahead' to kprobe b'__do_page_cache_readahead'

Bcc GitHub page also mention that
https://github.com/iovisor/bcc/blob/master/tools/readahead_example.txt

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.