samples: bpf: syscall_tp: Add syscall openat2 enter/exit tracepoint
PATCH v2 1/1 samples: bpf: syscall_tp: Add syscall openat2 enter/exit tracepoint
From: Rong Tao <[email protected]>
commit fe3300897cbf("samples: bpf: fix syscall_tp due to unused syscall") add openat() syscall trapoints, this submit support openat2().
Signed-off-by Rong Tao <[email protected]>
---
v2: Add 'bpf-next' in Subject
v1: https://lore.kernel.org/lkml/[email protected]/
--- samples/bpf/syscall_tp_kern.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
samples/bpf/syscall_tp_kern.c +14 -0
@@ -58,6 +58,13 @@ int trace_enter_open_at(struct syscalls_enter_open_args *ctx)return 0 ; } +SEC("tracepoint/syscalls/sys_enter_openat2") +int trace_enter_open_at2 (struct syscalls_enter_open_args *ctx) +{ +count (&enter_open_map); +return 0 ; +} + SEC("tracepoint/syscalls/sys_exit_open")int trace_enter_exit (struct syscalls_exit_open_args *ctx) {
@@ -71,3 +78,10 @@ int trace_enter_exit_at(struct syscalls_exit_open_args *ctx)count (&exit_open_map);return 0 ; } + +SEC("tracepoint/syscalls/sys_exit_openat2") +int trace_enter_exit_at2 (struct syscalls_exit_open_args *ctx) +{ +count (&exit_open_map); +return 0 ; +}
Signature · 1 line
2.39.1
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Hello:
This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko <[email protected]>:
Quoted 8 lines · On Wed, 8 Feb 2023 09:04:41 +0800 you wrote:
From: Rong Tao <[email protected]>
commit
fe3300897cbf("samples: bpf: fix syscall_tp due to unused syscall")addopenat()syscall trapoints, this submit supportopenat2().Signed-off-by Rong Tao <[email protected]>[...]
Here is the summary with links:
- [bpf-next,v2] samples: bpf: syscall_tp: Add syscall openat2 enter/exit tracepoint
https://git.kernel.org/bpf/bpf-next/c/06744f24696e
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html