]> asedeno.scripts.mit.edu Git - linux.git/commit
selftest/bpf: Add test for allowed trampolines count
authorJiri Olsa <jolsa@kernel.org>
Thu, 23 Jan 2020 16:15:08 +0000 (17:15 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 25 Jan 2020 15:12:40 +0000 (07:12 -0800)
commitd633d57902a510debd4ec5b7a374a009c8c2d620
tree79f53b2c1eeaef4807494ba3de30fb2192ff3edc
parente9b4e606c2289d6610113253922bb8c9ac7f68b0
selftest/bpf: Add test for allowed trampolines count

There's limit of 40 programs tht can be attached
to trampoline for one function. Adding test that
tries to attach that many plus one extra that needs
to fail.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200123161508.915203-4-jolsa@kernel.org
tools/testing/selftests/bpf/prog_tests/trampoline_count.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_trampoline_count.c [new file with mode: 0644]