bcc icon indicating copy to clipboard operation
bcc copied to clipboard

libbpf-tools/syncsnoop: Add support for sync_file_range2

Open jeromemarchand opened this issue 2 months ago • 0 comments

Some architectures like ppc64 don't use the sync_file_range syscall, but sync_file_range2 instead and that makes syncsnoop fails on those arches. Add support for it.

Fixes the following error: libbpf: failed to determine tracepoint 'syscalls/sys_enter_sync_file_range' perf event ID: No such file or directory libbpf: prog 'tracepoint__syscalls__sys_enter_sync_file_range': failed to create tracepoint 'syscalls/sys_enter_sync_file_range' perf event: No such file or directory libbpf: prog 'tracepoint__syscalls__sys_enter_sync_file_range': failed to auto-attach: -2 failed to attach BPF object

jeromemarchand avatar Oct 06 '25 15:10 jeromemarchand