OSDN Git Service

selftests: bpf: Add a new test for bare tracepoints
authorQais Yousef <qais.yousef@arm.com>
Tue, 19 Jan 2021 12:22:37 +0000 (12:22 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 20 Jan 2021 22:14:05 +0000 (14:14 -0800)
commit407be92206d54517765e028c8b79032eb8f8ac86
tree55a14edc1e68c6e2109cc0872a52b12094d75abd
parent6939f4ef16d48f2093f337162cfc041d0e30ed25
selftests: bpf: Add a new test for bare tracepoints

Reuse module_attach infrastructure to add a new bare tracepoint to check
we can attach to it as a raw tracepoint.

Signed-off-by: Qais Yousef <qais.yousef@arm.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20210119122237.2426878-3-qais.yousef@arm.com
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod-events.h
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.h
tools/testing/selftests/bpf/prog_tests/module_attach.c
tools/testing/selftests/bpf/progs/test_module_attach.c