Re: [PATCH bpf-next v3 3/3] bpf/selftests: add test for writable bare tracepoint
From: Andrii Nakryiko <hidden>
Date: 2021-09-28 23:10:42
Also in:
netdev
From: Andrii Nakryiko <hidden>
Date: 2021-09-28 23:10:42
Also in:
netdev
On Tue, Sep 28, 2021 at 6:53 AM Hou Tao [off-list ref] wrote:
Add a writable bare tracepoint in bpf_testmod module, and trigger its calling when reading /sys/kernel/bpf_testmod with a specific buffer length. The reading will return the value in writable context if the early return flag is enabled in writable context. Signed-off-by: Hou Tao <redacted> ---
LGTM. Acked-by: Andrii Nakryiko <andrii@kernel.org>
.../bpf/bpf_testmod/bpf_testmod-events.h | 15 ++++++++ .../selftests/bpf/bpf_testmod/bpf_testmod.c | 10 ++++++ .../selftests/bpf/bpf_testmod/bpf_testmod.h | 5 +++ .../selftests/bpf/prog_tests/module_attach.c | 35 +++++++++++++++++++ .../selftests/bpf/progs/test_module_attach.c | 14 ++++++++ tools/testing/selftests/bpf/test_progs.c | 4 +-- tools/testing/selftests/bpf/test_progs.h | 2 ++ 7 files changed, 83 insertions(+), 2 deletions(-)
[...]