-
- Downloads
samples/bpf: Use BPF_KSYSCALL macro in syscall tracing programs
This commit enhances the syscall tracing programs by using the BPF_SYSCALL macro to reduce the inconvenience of parsing arguments from pt_regs. By simplifying argument extraction, bpf program will become clear to understand. Signed-off-by:Daniel T. Lee <danieltimlee@gmail.com> Signed-off-by:
Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20221224071527.2292-6-danieltimlee@gmail.com
Showing
- samples/bpf/map_perf_test.bpf.c 11 additions, 15 deletionssamples/bpf/map_perf_test.bpf.c
- samples/bpf/test_current_task_under_cgroup.bpf.c 3 additions, 1 deletionsamples/bpf/test_current_task_under_cgroup.bpf.c
- samples/bpf/test_probe_write_user.bpf.c 5 additions, 7 deletionssamples/bpf/test_probe_write_user.bpf.c
Loading
Please register or sign in to comment