]> git.baikalelectronics.ru Git - kernel.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)
commit2842a3d6ffedef38ed07ae9abbaf372d3ac30d2d
tree79f53b2c1eeaef4807494ba3de30fb2192ff3edc
parente4ccac2ac5b28ec6e94fce499b6c888e88d245fd
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]