eBPF program to attach to 'SEC("kprobe/ext4_file_read_iter")' fails to load #4999
Replies: 1 comment
-
|
Figured out the problem... I should be calling "BPF_CORE_READ(iocb, ki_filp)", instead of "iocb->ki_filp". |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I am working on a libbpf based ebpf program to monitor ext4 file i/o activities. Here is the code:
However, this program fails to load with following errors:
Can someone tell me where the problem might be? My Ubuntu runs Linux kernel 6.8.0. I compared 'struct kiocb' in Linux source and vmlinux.h in my build environment, there is no difference. Really run out of ideas how to troubleshoot this further. Thanks a lot in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions