]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add uretprobe syscall test for regs integrity
authorJiri Olsa <jolsa@kernel.org>
Tue, 11 Jun 2024 23:44:28 +0000 (08:44 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Tue, 11 Jun 2024 23:44:28 +0000 (08:44 +0900)
commit3e8e25761a40194887336650673587191564e12c
tree8a42fbd670ce42667c5c04f9b18320fd7d1928e4
parent29edd8b003db897d81d82d950785327f164650d3
selftests/bpf: Add uretprobe syscall test for regs integrity

Add uretprobe syscall test that compares register values before
and after the uretprobe is hit. It also compares the register
values seen from attached bpf program.

Link: https://lore.kernel.org/all/20240611112158.40795-6-jolsa@kernel.org/
Acked-by: Andrii Nakryiko <andrii@kernel.org>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
tools/include/linux/compiler.h
tools/testing/selftests/bpf/prog_tests/uprobe_syscall.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/uprobe_syscall.c [new file with mode: 0644]