]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'libbpf: Add syscall-specific variant of BPF_KPROBE'
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 9 Feb 2022 05:42:42 +0000 (21:42 -0800)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 9 Feb 2022 05:45:06 +0000 (21:45 -0800)
commite686226dc5dc15e366762dd8e37613f5a12f6c07
tree67f2081ee7aa77a5add2eb541a8e87293b504f18
parentb19e17dcf8605b573a0da7fc487b53d4f5786349
parent9da3d17daab874cf59852d6c773e58e6981bd2e8
Merge branch 'libbpf: Add syscall-specific variant of BPF_KPROBE'

Hengqi Chen says:

====================

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

v2->v3:
  - Use PT_REGS_SYSCALL_REGS
  - Move selftest to progs/bpf_syscall_macro.c

v1->v2:
  - Use PT_REGS_PARM2_CORE_SYSCALL instead
====================

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>