On Fri, Feb 4, 2022 at 5:27 PM Andrii Nakryiko <andrii@xxxxxxxxxx> wrote: > > Add a selftest validating various aspects of libbpf's handling of custom > SEC() handlers. It also demonstrates how libraries can ensure very early > callbacks registration and unregistration using > __attribute__((constructor))/__attribute__((destructor)) functions. > > Signed-off-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > --- I screwed up submission and sent selftest as 1/1 and 1/3 patch. This confuses CI, I'll resubmit entire series as v2, sorry for the noise. > .../bpf/prog_tests/custom_sec_handlers.c | 136 ++++++++++++++++++ > .../bpf/progs/test_custom_sec_handlers.c | 51 +++++++ > 2 files changed, 187 insertions(+) > create mode 100644 tools/testing/selftests/bpf/prog_tests/custom_sec_handlers.c > create mode 100644 tools/testing/selftests/bpf/progs/test_custom_sec_handlers.c > [...]