mbox series

[bpf-next,v2,0/2] libbpf: Add syscall-specific variant of BPF_KPROBE

Message ID 20220206134051.721574-1-hengqi.chen@gmail.com (mailing list archive)
Headers show
Series libbpf: Add syscall-specific variant of BPF_KPROBE | expand

Message

Hengqi Chen Feb. 6, 2022, 1:40 p.m. UTC
Add new macro BPF_KPROBE_SYSCALL, which provides easy access to syscall
input arguments. See [0] and [1] for background.

  [0]: https://github.com/libbpf/libbpf-bootstrap/issues/57
  [1]: https://github.com/libbpf/libbpf/issues/425

Hengqi Chen (2):
  libbpf: Add BPF_KPROBE_SYSCALL macro
  selftests/bpf: Test BPF_KPROBE_SYSCALL macro

 tools/lib/bpf/bpf_tracing.h                   | 39 +++++++++++++++++++
 .../selftests/bpf/prog_tests/kprobe_syscall.c | 37 ++++++++++++++++++
 .../selftests/bpf/progs/test_kprobe_syscall.c | 34 ++++++++++++++++
 3 files changed, 110 insertions(+)
 create mode 100644 tools/testing/selftests/bpf/prog_tests/kprobe_syscall.c
 create mode 100644 tools/testing/selftests/bpf/progs/test_kprobe_syscall.c

--
2.30.2