linux/tools/testing/selftests/bpf/progs
Jiri Olsa d633d57902 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
2020-01-25 07:12:40 -08:00
..
bpf_cubic.c bpf: tcp: Add bpf_cubic example 2020-01-22 16:30:10 -08:00
bpf_dctcp.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
bpf_flow.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
btf__core_reloc_arrays___diff_arr_dim.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___diff_arr_val_sz.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___equiv_zero_sz_arr.c selftests/bpf: Add flexible array relocation tests 2019-12-15 16:53:51 -08:00
btf__core_reloc_arrays___err_bad_zero_sz_arr.c selftests/bpf: Add flexible array relocation tests 2019-12-15 16:53:51 -08:00
btf__core_reloc_arrays___err_non_array.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___err_too_shallow.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___err_too_small.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_arrays___err_wrong_val_type.c selftests/bpf: Remove too strict field offset relo test cases 2019-11-04 16:06:56 +01:00
btf__core_reloc_arrays___fixed_arr.c selftests/bpf: Add flexible array relocation tests 2019-12-15 16:53:51 -08:00
btf__core_reloc_arrays.c selftests/bpf: add CO-RE relocs array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_bitfields___bit_sz_change.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields___bitfield_vs_int.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields___err_too_big_bitfield.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields___just_big_enough.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_bitfields.c selftest/bpf: Add relocatable bitfield reading tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_existence___err_wrong_arr_kind.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_arr_value_type.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_int_kind.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_int_sz.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_int_type.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___err_wrong_struct_type.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence___minimal.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_existence.c selftests/bpf: Add field existence CO-RE relocs tests 2019-10-15 16:06:05 -07:00
btf__core_reloc_flavors__err_wrong_name.c selftests/bpf: add CO-RE relocs struct flavors tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_flavors.c selftests/bpf: add CO-RE relocs struct flavors tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ints___bool.c selftests/bpf: add CO-RE relocs ints tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ints___reverse_sign.c selftests/bpf: add CO-RE relocs ints tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ints.c selftests/bpf: add CO-RE relocs ints tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_misc.c selftests/bpf: add CO-RE relocs misc tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_mods___mod_swap.c selftests/bpf: add CO-RE relocs modifiers/typedef tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_mods___typedefs.c selftests/bpf: add CO-RE relocs modifiers/typedef tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_mods.c selftests/bpf: add CO-RE relocs modifiers/typedef tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___anon_embed.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___dup_compat_types.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_array_container.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_array_field.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_dup_incompat_types.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_missing_container.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_missing_field.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_nonstruct_container.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_partial_match_dups.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___err_too_deep.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___extra_nesting.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting___struct_union_mixup.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_nesting.c selftests/bpf: add CO-RE relocs nesting tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___diff_enum_def.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___diff_func_proto.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___diff_ptr_type.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___err_non_enum.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___err_non_int.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives___err_non_ptr.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_primitives.c selftests/bpf: add CO-RE relocs enum/ptr/func_proto tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ptr_as_arr___diff_sz.c selftests/bpf: add CO-RE relocs ptr-as-array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_ptr_as_arr.c selftests/bpf: add CO-RE relocs ptr-as-array tests 2019-08-07 14:43:49 -07:00
btf__core_reloc_size___diff_sz.c selftests/bpf: Add field size relocation tests 2019-11-04 16:06:56 +01:00
btf__core_reloc_size.c selftests/bpf: Add field size relocation tests 2019-11-04 16:06:56 +01:00
btf_dump_test_case_bitfields.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_multidim.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_namespacing.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_ordering.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_packing.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
btf_dump_test_case_padding.c selftests/bpf: Fix btf_dump padding test case 2019-10-09 15:38:36 -07:00
btf_dump_test_case_syntax.c selftests/bpf: add btf_dump BTF-to-C conversion tests 2019-05-24 14:05:58 -07:00
connect4_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
connect6_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
core_reloc_types.h selftests/bpf: Add flexible array relocation tests 2019-12-15 16:53:51 -08:00
dev_cgroup.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
fentry_test.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
fexit_bpf2bpf_simple.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
fexit_bpf2bpf.c selftests/bpf: Add tests for program extensions 2020-01-22 23:04:53 +01:00
fexit_test.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
get_cgroup_id_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
kfree_skb.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop2.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop3.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop4.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
loop5.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
netcnt_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
pyperf50.c selftests/bpf: add pyperf scale test 2019-05-23 16:20:57 +02:00
pyperf100.c selftests/bpf: add pyperf scale test 2019-05-23 16:20:57 +02:00
pyperf180.c selftests/bpf: add pyperf scale test 2019-05-23 16:20:57 +02:00
pyperf600_nounroll.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
pyperf600.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
pyperf_global.c selftests/bpf: Add a test for a large global function 2020-01-10 17:20:07 +01:00
pyperf.h selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sample_map_ret0.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sample_ret0.c
sendmsg4_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sendmsg6_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
socket_cookie_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockmap_parse_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockmap_tcp_msg_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockmap_verdict_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockopt_inherit.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockopt_multi.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
sockopt_sk.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
strobemeta_nounroll1.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
strobemeta_nounroll2.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
strobemeta.c selftests/bpf: add realistic loop tests 2019-06-19 02:22:52 +02:00
strobemeta.h selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tailcall1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tailcall2.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tailcall3.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tailcall4.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tailcall5.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
tcp_rtt.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_adjust_tail.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_attach_probe.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_btf_haskv.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_btf_newkv.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_btf_nokv.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_extern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_arrays.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_bitfields_direct.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_bitfields_probed.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_existence.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_flavors.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_ints.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_kernel.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_misc.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_mods.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_nesting.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_primitives.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_ptr_as_arr.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_core_reloc_size.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_get_stack_rawtp.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_data.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func2.c selftests/bpf: Add unit tests for global functions 2020-01-10 17:20:07 +01:00
test_global_func3.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func4.c selftests/bpf: Add unit tests for global functions 2020-01-10 17:20:07 +01:00
test_global_func5.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func6.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_global_func7.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_jhash.h selftests: bpf: standardize to static __always_inline 2019-07-03 15:06:33 +02:00
test_l4lb_noinline.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_l4lb.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_lirc_mode2_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_lwt_ip_encap.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_lwt_seg6local.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_map_in_map.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_map_lock.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_mmap.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_obj_id.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_overhead.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_perf_buffer.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_pinning_invalid.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_pinning.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_pkt_access.c selftests/bpf: Add tests for program extensions 2020-01-22 23:04:53 +01:00
test_pkt_md_access.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_probe_user.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_queue_map.c
test_queue_stack_map.h selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_rdonly_maps.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_seg6_loop.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_select_reuseport_kern.c selftests: bpf: Ignore FIN packets for reuseport tests 2020-01-24 22:12:13 +01:00
test_send_signal_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_sk_lookup_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_skb_cgroup_id_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_skb_ctx.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_skeleton.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_sock_fields_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_sockhash_kern.c
test_sockmap_kern.c
test_spin_lock.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_stack_map.c
test_stacktrace_build_id.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_stacktrace_map.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_sysctl_loop1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_sysctl_loop2.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_sysctl_prog.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tc_edt.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tc_tunnel.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tcp_check_syncookie_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tcp_estats.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tcpbpf_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tcpnotify_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_tracepoint.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_trampoline_count.c selftest/bpf: Add test for allowed trampolines count 2020-01-25 07:12:40 -08:00
test_tunnel_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_verif_scale1.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_verif_scale2.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_verif_scale3.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_bpf2bpf.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_loop.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_meta.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_noinline.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_redirect.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp_vlan.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
test_xdp.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xdp_dummy.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xdp_redirect_map.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xdp_tx.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00
xdping_kern.c selftests: Use consistent include paths for libbpf 2020-01-20 16:37:45 -08:00