Closed mozzieongit closed 3 weeks ago
116b23a3827700704e79e7c54cda9c492ab153c1
Awesome, thanks for implementing that so quickly. The BPF syscalls seem to work, but only when I pass --no-syscall-buffer
. If I omit that flag I get the following error:
src/preload/syscallbuf.c:688: Fatal error: Failed to perf_event_open
Hmm. What kernel version? What's the value of /proc/sys/kernel/perf_event_paranoid
?
Oh, I forgot about that after rebooting. It was on 2
I set it to 1
again and it works now without the flag. Thanks for the reminder and sorry about the extra noise.
rr is crashing during the replay now though. I'll open a dedicated issue once I narrowed down the cause.
Hi, I'm trying to debug a program using BPF with libxdp and libbpf, but rr fails with an unknown bpf syscall. In this case it seems to be
BPF_TOKEN_CREATE
. Looking at the rr source code (src/record_syscall.cc:prepare_bpf()
) and the strace of the example program, I assume the following bpf calls might fail too:BPF_PROG_BIND_MAP
BPF_MAP_FREEZE
BPF_OBJ_GET_INFO_BY_FD
(and I found another call that fails:
cmd=15
BPF_OBJ_GET_INFO_BY_FD
but it is not used by the example below)I reproduced this with a minimal-ish example:
main.c
kern.c
Makefile
Error output