]> 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)
commitb492e10ac009440275b32f105a7c8b93400f9f62
tree79f53b2c1eeaef4807494ba3de30fb2192ff3edc
parent558f14c06698b4d891b8e9d60f0eedd867318d13
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]