linux-xiaomi-chiron/tools/testing/selftests/bpf/progs
Andrii Nakryiko b5cc46cdff selftests/bpf: Fix spurious test failures in core_retro selftest
core_retro selftest uses BPF program that's triggered on sys_enter
system-wide, but has no protection from some unrelated process doing syscall
while selftest is running. This leads to occasional test failures with
unexpected PIDs being returned. Fix that by filtering out all processes that
are not test_progs process.

Fixes: fcda189a51 ("selftests/bpf: Add test relying only on CO-RE and no recent kernel features")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200731204957.2047119-1-andriin@fb.com
2020-08-01 23:10:42 -07:00
..
bpf_cubic.c bpf: tcp: bpf_cubic: fix spurious HYSTART_DELAY exit upon drop in min RTT 2020-06-25 16:08:47 -07:00
bpf_dctcp.c
bpf_flow.c
bpf_iter.h selftests/bpf: Add new bpf_iter context structs to fix build on old kernels 2020-07-28 12:22:37 +02:00
bpf_iter_bpf_array_map.c selftests/bpf: Add test for bpf array map iterators 2020-07-25 20:16:34 -07:00
bpf_iter_bpf_hash_map.c selftests/bpf: Add test for bpf hash map iterators 2020-07-25 20:16:33 -07:00
bpf_iter_bpf_map.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_bpf_percpu_array_map.c selftests/bpf: Add test for bpf array map iterators 2020-07-25 20:16:34 -07:00
bpf_iter_bpf_percpu_hash_map.c selftests/bpf: Add test for bpf hash map iterators 2020-07-25 20:16:33 -07:00
bpf_iter_bpf_sk_storage_map.c selftests/bpf: Add a test for bpf sk_storage_map iterator 2020-07-25 20:16:34 -07:00
bpf_iter_ipv6_route.c selftests/bpf: Refactor some net macros to bpf_tracing_net.h 2020-06-24 18:37:59 -07:00
bpf_iter_netlink.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_task.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_task_file.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_task_stack.c selftests/bpf: Fix compilation error of bpf_iter_task_stack.c 2020-07-03 23:25:40 +02:00
bpf_iter_tcp4.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_tcp6.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_test_kern1.c
bpf_iter_test_kern2.c
bpf_iter_test_kern3.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_test_kern4.c selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_test_kern5.c selftests/bpf: Add a test for out of bound rdonly buf access 2020-07-25 20:16:34 -07:00
bpf_iter_test_kern6.c selftests/bpf: Test bpf_iter buffer access with negative offset 2020-07-31 00:43:49 +02:00
bpf_iter_test_kern_common.h selftests/bpf: Move newer bpf_iter_* type redefining to a new header file 2020-06-24 18:37:59 -07:00
bpf_iter_udp4.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_iter_udp6.c samples/bpf, selftests/bpf: Use bpf_probe_read_kernel 2020-07-21 13:26:26 -07:00
bpf_tracing_net.h selftests/bpf: Add more common macros to bpf_tracing_net.h 2020-06-24 18:37:59 -07:00
btf__core_reloc_arrays.c
btf__core_reloc_arrays___diff_arr_dim.c
btf__core_reloc_arrays___diff_arr_val_sz.c
btf__core_reloc_arrays___equiv_zero_sz_arr.c
btf__core_reloc_arrays___err_bad_zero_sz_arr.c
btf__core_reloc_arrays___err_non_array.c
btf__core_reloc_arrays___err_too_shallow.c
btf__core_reloc_arrays___err_too_small.c
btf__core_reloc_arrays___err_wrong_val_type.c
btf__core_reloc_arrays___fixed_arr.c
btf__core_reloc_bitfields.c
btf__core_reloc_bitfields___bit_sz_change.c
btf__core_reloc_bitfields___bitfield_vs_int.c
btf__core_reloc_bitfields___err_too_big_bitfield.c
btf__core_reloc_bitfields___just_big_enough.c
btf__core_reloc_existence.c
btf__core_reloc_existence___err_wrong_arr_kind.c
btf__core_reloc_existence___err_wrong_arr_value_type.c
btf__core_reloc_existence___err_wrong_int_kind.c
btf__core_reloc_existence___err_wrong_int_sz.c
btf__core_reloc_existence___err_wrong_int_type.c
btf__core_reloc_existence___err_wrong_struct_type.c
btf__core_reloc_existence___minimal.c
btf__core_reloc_flavors.c
btf__core_reloc_flavors__err_wrong_name.c
btf__core_reloc_ints.c
btf__core_reloc_ints___bool.c
btf__core_reloc_ints___reverse_sign.c
btf__core_reloc_misc.c
btf__core_reloc_mods.c
btf__core_reloc_mods___mod_swap.c
btf__core_reloc_mods___typedefs.c
btf__core_reloc_nesting.c
btf__core_reloc_nesting___anon_embed.c
btf__core_reloc_nesting___dup_compat_types.c
btf__core_reloc_nesting___err_array_container.c
btf__core_reloc_nesting___err_array_field.c
btf__core_reloc_nesting___err_dup_incompat_types.c
btf__core_reloc_nesting___err_missing_container.c
btf__core_reloc_nesting___err_missing_field.c
btf__core_reloc_nesting___err_nonstruct_container.c
btf__core_reloc_nesting___err_partial_match_dups.c
btf__core_reloc_nesting___err_too_deep.c
btf__core_reloc_nesting___extra_nesting.c
btf__core_reloc_nesting___struct_union_mixup.c
btf__core_reloc_primitives.c
btf__core_reloc_primitives___diff_enum_def.c
btf__core_reloc_primitives___diff_func_proto.c
btf__core_reloc_primitives___diff_ptr_type.c
btf__core_reloc_primitives___err_non_enum.c
btf__core_reloc_primitives___err_non_int.c
btf__core_reloc_primitives___err_non_ptr.c
btf__core_reloc_ptr_as_arr.c
btf__core_reloc_ptr_as_arr___diff_sz.c
btf__core_reloc_size.c
btf__core_reloc_size___diff_sz.c
btf_data.c selftests/bpf: Add test for resolve_btfids 2020-07-13 10:42:03 -07:00
btf_dump_test_case_bitfields.c
btf_dump_test_case_multidim.c
btf_dump_test_case_namespacing.c
btf_dump_test_case_ordering.c
btf_dump_test_case_packing.c
btf_dump_test_case_padding.c
btf_dump_test_case_syntax.c
cg_storage_multi.h selftests/bpf: Test CGROUP_STORAGE map can't be used by multiple progs 2020-07-25 20:16:35 -07:00
cg_storage_multi_egress_only.c selftests/bpf: Test CGROUP_STORAGE map can't be used by multiple progs 2020-07-25 20:16:35 -07:00
cg_storage_multi_isolated.c selftests/bpf: Test CGROUP_STORAGE behavior on shared egress + ingress 2020-07-25 20:16:36 -07:00
cg_storage_multi_shared.c selftests/bpf: Test CGROUP_STORAGE behavior on shared egress + ingress 2020-07-25 20:16:36 -07:00
cgroup_skb_sk_lookup_kern.c
connect4_prog.c bpf: Add SO_KEEPALIVE and related options to bpf_setsockopt 2020-06-24 11:21:03 -07:00
connect6_prog.c
connect_force_port4.c
connect_force_port6.c
core_reloc_types.h
dev_cgroup.c
fentry_test.c bpf: Add tests for PTR_TO_BTF_ID vs. null comparison 2020-06-30 22:21:29 +02:00
fexit_bpf2bpf.c
fexit_bpf2bpf_simple.c
fexit_test.c bpf: Add tests for PTR_TO_BTF_ID vs. null comparison 2020-06-30 22:21:29 +02:00
freplace_connect4.c
get_cgroup_id_kern.c
kfree_skb.c
load_bytes_relative.c
loop1.c
loop2.c
loop3.c
loop4.c
loop5.c
lsm.c
map_ptr_kern.c selftests/bpf: Test access to bpf map pointer 2020-06-22 22:22:59 +02:00
modify_return.c
netcnt_prog.c
perf_event_stackmap.c selftests/bpf: Add callchain_stackid 2020-07-25 20:16:35 -07:00
perfbuf_bench.c
pyperf.h
pyperf50.c
pyperf100.c
pyperf180.c
pyperf600.c
pyperf600_nounroll.c
pyperf_global.c
ringbuf_bench.c
sample_map_ret0.c
sample_ret0.c
sendmsg4_prog.c
sendmsg6_prog.c
socket_cookie_prog.c
sockmap_parse_prog.c
sockmap_tcp_msg_prog.c
sockmap_verdict_prog.c
sockopt_inherit.c
sockopt_multi.c
sockopt_sk.c selftests/bpf: Make sure optvals > PAGE_SIZE are bypassed 2020-06-17 10:54:05 -07:00
strobemeta.c
strobemeta.h
strobemeta_nounroll1.c
strobemeta_nounroll2.c
tailcall1.c
tailcall2.c
tailcall3.c
tailcall4.c
tailcall5.c
tcp_rtt.c
test_attach_probe.c
test_autoload.c selftests/bpf: Test auto-load disabling logic for BPF programs 2020-06-28 10:06:53 -07:00
test_btf_haskv.c
test_btf_map_in_map.c
test_btf_newkv.c
test_btf_nokv.c
test_cgroup_link.c
test_cls_redirect.c
test_cls_redirect.h
test_core_extern.c
test_core_reloc_arrays.c
test_core_reloc_bitfields_direct.c
test_core_reloc_bitfields_probed.c
test_core_reloc_existence.c
test_core_reloc_flavors.c
test_core_reloc_ints.c
test_core_reloc_kernel.c
test_core_reloc_misc.c
test_core_reloc_mods.c
test_core_reloc_nesting.c
test_core_reloc_primitives.c
test_core_reloc_ptr_as_arr.c
test_core_reloc_size.c
test_core_retro.c selftests/bpf: Fix spurious test failures in core_retro selftest 2020-08-01 23:10:42 -07:00
test_enable_stats.c
test_endian.c selftests/bpf: Add byte swapping selftest 2020-07-01 09:06:12 +02:00
test_get_stack_rawtp.c selftests/bpf: Workaround for get_stack_rawtp test. 2020-06-24 11:10:59 -07:00
test_get_stack_rawtp_err.c
test_global_data.c
test_global_func1.c
test_global_func2.c
test_global_func3.c
test_global_func4.c
test_global_func5.c
test_global_func6.c
test_global_func7.c
test_jhash.h
test_ksyms.c selftests/bpf: Add __ksym extern selftest 2020-06-22 17:01:48 -07:00
test_l4lb.c
test_l4lb_noinline.c
test_link_pinning.c
test_lirc_mode2_kern.c
test_lwt_ip_encap.c
test_lwt_seg6local.c
test_map_in_map.c
test_map_lock.c
test_mmap.c
test_ns_current_pid_tgid.c
test_obj_id.c
test_overhead.c
test_perf_branches.c
test_perf_buffer.c selftests/bpf: Switch perf_buffer test to tracepoint and skeleton 2020-07-09 00:44:45 +02:00
test_pinning.c
test_pinning_invalid.c
test_pkt_access.c
test_pkt_md_access.c
test_probe_user.c
test_queue_map.c
test_queue_stack_map.h
test_rdonly_maps.c
test_ringbuf.c
test_ringbuf_multi.c
test_seg6_loop.c
test_select_reuseport_kern.c
test_send_signal_kern.c
test_sk_assign.c
test_sk_lookup.c selftests/bpf: Tests for BPF_SK_LOOKUP attach point 2020-07-17 20:18:17 -07:00
test_sk_lookup_kern.c
test_skb_cgroup_id_kern.c
test_skb_ctx.c
test_skb_helpers.c
test_skeleton.c tools/bpftool: Strip away modifiers from global variables 2020-07-13 17:07:43 -07:00
test_skmsg_load_helpers.c
test_sock_fields_kern.c
test_sockhash_kern.c
test_sockmap_kern.c
test_sockmap_kern.h bpf, sockmap: Add ingres skb tests that utilize merge skbs 2020-06-28 08:33:28 -07:00
test_sockmap_listen.c
test_spin_lock.c
test_stack_map.c
test_stacktrace_build_id.c
test_stacktrace_map.c
test_sysctl_loop1.c
test_sysctl_loop2.c
test_sysctl_prog.c
test_tc_edt.c
test_tc_tunnel.c
test_tcp_check_syncookie_kern.c
test_tcp_estats.c
test_tcpbpf_kern.c
test_tcpnotify_kern.c
test_tracepoint.c
test_trampoline_count.c
test_tunnel_kern.c
test_varlen.c selftests/bpf: Add variable-length data concat pattern less than test 2020-06-24 00:04:36 +02:00
test_verif_scale1.c
test_verif_scale2.c
test_verif_scale3.c
test_vmlinux.c selftests/bpf: Switch test_vmlinux to use hrtimer_range_start_ns. 2020-07-01 15:10:27 -07:00
test_xdp.c
test_xdp_adjust_tail_grow.c
test_xdp_adjust_tail_shrink.c
test_xdp_bpf2bpf.c
test_xdp_devmap_helpers.c
test_xdp_link.c selftests/bpf: Add BPF XDP link selftests 2020-07-25 20:37:02 -07:00
test_xdp_loop.c
test_xdp_meta.c
test_xdp_noinline.c
test_xdp_redirect.c
test_xdp_vlan.c
test_xdp_with_cpumap_helpers.c selftest: Add tests for XDP programs in CPUMAP entries 2020-07-16 17:00:32 +02:00
test_xdp_with_devmap_helpers.c libbpf: Adjust SEC short cut for expected attach type BPF_XDP_DEVMAP 2020-06-25 22:36:00 +02:00
trace_printk.c selftests/bpf: Add selftests verifying bpf_trace_printk() behaviour 2020-07-13 16:55:49 -07:00
trigger_bench.c
udp_limit.c selftests/bpf: Verify socket storage in cgroup/sock_{create, release} 2020-07-31 00:43:49 +02:00
xdp_dummy.c
xdp_redirect_map.c
xdp_tx.c
xdping_kern.c