On Tue, Sep 28, 2021 at 6:53 AM Hou Tao <houtao1@xxxxxxxxxx> 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 <houtao1@xxxxxxxxxx> > --- LGTM. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > .../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(-) > [...]