| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | exceptions.c | 42 if (!test__start_subtest(#_prog)) goto _prog##_##return_val; \ in test_exceptions_success() 122 if (test__start_subtest("non-throwing fentry -> exception_cb")) in test_exceptions_success() 132 if (test__start_subtest("throwing fentry -> exception_cb")) in test_exceptions_success() 142 if (test__start_subtest("non-throwing fexit -> exception_cb")) in test_exceptions_success() 152 if (test__start_subtest("throwing fexit -> exception_cb")) in test_exceptions_success() 162 if (test__start_subtest("throwing extension (with custom cb) -> exception_cb")) in test_exceptions_success() 172 if (test__start_subtest("throwing extension -> global func in exception_cb")) in test_exceptions_success() 182 if (test__start_subtest("throwing extension (with custom cb) -> global func in exception_cb")) in test_exceptions_success() 192 if (test__start_subtest("non-throwing fentry -> non-throwing subprog")) in test_exceptions_success() 203 if (test__start_subtest("throwing fentry -> non-throwing subprog")) in test_exceptions_success() [all …]
|
| H A D | send_signal.c | 266 if (test__start_subtest("send_signal_tracepoint")) in test_send_signal() 268 if (test__start_subtest("send_signal_perf")) in test_send_signal() 270 if (test__start_subtest("send_signal_nmi")) in test_send_signal() 272 if (test__start_subtest("send_signal_tracepoint_thread")) in test_send_signal() 274 if (test__start_subtest("send_signal_perf_thread")) in test_send_signal() 276 if (test__start_subtest("send_signal_nmi_thread")) in test_send_signal() 280 if (test__start_subtest("send_signal_tracepoint_remote")) in test_send_signal() 282 if (test__start_subtest("send_signal_perf_remote")) in test_send_signal() 284 if (test__start_subtest("send_signal_nmi_remote")) in test_send_signal() 286 if (test__start_subtest("send_signal_tracepoint_thread_remote")) in test_send_signal() [all …]
|
| H A D | cgrp_local_storage.c | 295 if (test__start_subtest("tp_btf")) in cgrp2_local_storage() 297 if (test__start_subtest("attach_cgroup")) in cgrp2_local_storage() 299 if (test__start_subtest("recursion")) in cgrp2_local_storage() 301 if (test__start_subtest("negative")) in cgrp2_local_storage() 303 if (test__start_subtest("cgroup_iter_sleepable")) in cgrp2_local_storage() 305 if (test__start_subtest("yes_rcu_lock")) in cgrp2_local_storage() 307 if (test__start_subtest("no_rcu_lock")) in cgrp2_local_storage() 340 if (test__start_subtest("cgrp1_tp_btf")) in cgrp1_local_storage() 342 if (test__start_subtest("cgrp1_recursion")) in cgrp1_local_storage() 344 if (test__start_subtest("cgrp1_negative")) in cgrp1_local_storage() [all …]
|
| H A D | btf_tag.c | 229 if (test__start_subtest("btf_decl_tag")) in test_btf_tag() 231 if (test__start_subtest("btf_type_tag")) in test_btf_tag() 234 if (test__start_subtest("btf_type_tag_user_mod1")) in test_btf_tag() 236 if (test__start_subtest("btf_type_tag_user_mod2")) in test_btf_tag() 238 if (test__start_subtest("btf_type_tag_sys_user_vmlinux")) in test_btf_tag() 241 if (test__start_subtest("btf_type_tag_percpu_mod1")) in test_btf_tag() 243 if (test__start_subtest("btf_type_tag_percpu_mod2")) in test_btf_tag() 245 if (test__start_subtest("btf_type_tag_percpu_vmlinux_load")) in test_btf_tag() 247 if (test__start_subtest("btf_type_tag_percpu_vmlinux_helper")) in test_btf_tag()
|
| H A D | cgroup_dev.c | 96 if (test__start_subtest("allow-mknod")) in test_cgroup_dev() 99 if (test__start_subtest("allow-read")) in test_cgroup_dev() 103 if (test__start_subtest("allow-write")) in test_cgroup_dev() 107 if (test__start_subtest("deny-mknod")) in test_cgroup_dev() 111 if (test__start_subtest("deny-read")) in test_cgroup_dev() 114 if (test__start_subtest("deny-write")) in test_cgroup_dev() 117 if (test__start_subtest("deny-mknod-wrong-type")) in test_cgroup_dev()
|
| H A D | cgroup1_hierarchy.c | 110 if (test__start_subtest("test_cgroup1_hierarchy")) { in test_cgroup1_hierarchy() 115 if (test__start_subtest("test_root_cgid")) { in test_cgroup1_hierarchy() 121 if (test__start_subtest("test_invalid_level")) { in test_cgroup1_hierarchy() 127 if (test__start_subtest("test_invalid_cgid")) { in test_cgroup1_hierarchy() 132 if (test__start_subtest("test_invalid_hid")) { in test_cgroup1_hierarchy() 139 if (test__start_subtest("test_invalid_cgrp_name")) { in test_cgroup1_hierarchy() 145 if (test__start_subtest("test_invalid_cgrp_name2")) { in test_cgroup1_hierarchy() 151 if (test__start_subtest("test_sleepable_prog")) { in test_cgroup1_hierarchy()
|
| H A D | xdp_context_test_run.c | 438 if (test__start_subtest("data_meta")) in test_xdp_context_tuntap() 443 if (test__start_subtest("dynptr_read")) in test_xdp_context_tuntap() 448 if (test__start_subtest("dynptr_slice")) in test_xdp_context_tuntap() 453 if (test__start_subtest("dynptr_write")) in test_xdp_context_tuntap() 458 if (test__start_subtest("dynptr_slice_rdwr")) in test_xdp_context_tuntap() 463 if (test__start_subtest("dynptr_offset")) in test_xdp_context_tuntap() 468 if (test__start_subtest("dynptr_offset_oob")) in test_xdp_context_tuntap() 473 if (test__start_subtest("clone_data_meta_survives_data_write")) in test_xdp_context_tuntap() 477 if (test__start_subtest("clone_data_meta_survives_meta_write")) in test_xdp_context_tuntap() 481 if (test__start_subtest("clone_meta_dynptr_survives_data_slice_write")) in test_xdp_context_tuntap() [all …]
|
| H A D | bpf_gotox.c | 460 if (test__start_subtest("one-switch")) 463 if (test__start_subtest("one-switch-non-zero-sec-offset")) 466 if (test__start_subtest("two-switches")) 469 if (test__start_subtest("big-jump-table")) 472 if (test__start_subtest("static-global")) 475 if (test__start_subtest("nonstatic-global")) 478 if (test__start_subtest("other-sec")) 481 if (test__start_subtest("static-global-other-sec")) 484 if (test__start_subtest("nonstatic-global-other-sec")) 487 if (test__start_subtest("on [all...] |
| H A D | bpf_tcp_ca.c | 608 if (test__start_subtest("dctcp")) in test_bpf_tcp_ca() 610 if (test__start_subtest("cubic")) in test_bpf_tcp_ca() 612 if (test__start_subtest("invalid_license")) in test_bpf_tcp_ca() 614 if (test__start_subtest("dctcp_fallback")) in test_bpf_tcp_ca() 616 if (test__start_subtest("rel_setsockopt")) in test_bpf_tcp_ca() 618 if (test__start_subtest("write_sk_pacing")) in test_bpf_tcp_ca() 620 if (test__start_subtest("incompl_cong_ops")) in test_bpf_tcp_ca() 622 if (test__start_subtest("unsupp_cong_op")) in test_bpf_tcp_ca() 624 if (test__start_subtest("update_ca")) in test_bpf_tcp_ca() 626 if (test__start_subtest("update_wrong")) in test_bpf_tcp_ca() [all …]
|
| H A D | arena_atomics.c | 245 if (test__start_subtest("add")) in test_arena_atomics() 247 if (test__start_subtest("sub")) in test_arena_atomics() 249 if (test__start_subtest("and")) in test_arena_atomics() 251 if (test__start_subtest("or")) in test_arena_atomics() 253 if (test__start_subtest("xor")) in test_arena_atomics() 255 if (test__start_subtest("cmpxchg")) in test_arena_atomics() 257 if (test__start_subtest("xchg")) in test_arena_atomics() 259 if (test__start_subtest("uaf")) in test_arena_atomics() 261 if (test__start_subtest("load_acquire")) in test_arena_atomics() 263 if (test__start_subtest("store_release")) in test_arena_atomics()
|
| H A D | bpf_iter.c | 1719 if (test__start_subtest("btf_id_or_null")) in test_bpf_iter() 1721 if (test__start_subtest("ipv6_route")) in test_bpf_iter() 1723 if (test__start_subtest("netlink")) in test_bpf_iter() 1725 if (test__start_subtest("bpf_map")) in test_bpf_iter() 1727 if (test__start_subtest("task_tid")) in test_bpf_iter() 1729 if (test__start_subtest("task_pid")) in test_bpf_iter() 1731 if (test__start_subtest("task_pidfd")) in test_bpf_iter() 1733 if (test__start_subtest("task_sleepable")) in test_bpf_iter() 1735 if (test__start_subtest("task_stack")) in test_bpf_iter() 1737 if (test__start_subtest("task_file")) in test_bpf_iter() [all …]
|
| H A D | attach_probe.c | 411 if (test__start_subtest("manual-default")) in test_attach_probe() 413 if (test__start_subtest("manual-legacy")) in test_attach_probe() 415 if (test__start_subtest("manual-perf")) in test_attach_probe() 417 if (test__start_subtest("manual-link")) in test_attach_probe() 420 if (test__start_subtest("auto")) in test_attach_probe() 422 if (test__start_subtest("kprobe-sleepable")) in test_attach_probe() 424 if (test__start_subtest("uprobe-lib")) in test_attach_probe() 426 if (test__start_subtest("uprobe-sleepable")) in test_attach_probe() 428 if (test__start_subtest("uprobe-ref_ctr")) in test_attach_probe() 431 if (test__start_subtest("uprobe-long_name")) in test_attach_probe() [all …]
|
| H A D | sockmap_basic.c | 1319 if (test__start_subtest("sockmap create_update_free")) in test_sockmap_basic() 1321 if (test__start_subtest("sockhash create_update_free")) in test_sockmap_basic() 1323 if (test__start_subtest("sockmap vsock delete on close")) in test_sockmap_basic() 1325 if (test__start_subtest("sockmap sk_msg load helpers")) in test_sockmap_basic() 1327 if (test__start_subtest("sockhash sk_msg load helpers")) in test_sockmap_basic() 1329 if (test__start_subtest("sockmap update")) in test_sockmap_basic() 1331 if (test__start_subtest("sockhash update")) in test_sockmap_basic() 1333 if (test__start_subtest("sockmap update in unsafe context")) in test_sockmap_basic() 1335 if (test__start_subtest("sockmap copy")) in test_sockmap_basic() 1337 if (test__start_subtest("sockhash copy")) in test_sockmap_basic() [all …]
|
| H A D | kprobe_multi_test.c | 609 if (test__start_subtest("kernel")) in serial_test_kprobe_multi_bench_attach() 611 if (test__start_subtest("modules")) in serial_test_kprobe_multi_bench_attach() 613 if (test__start_subtest("kernel")) in serial_test_kprobe_multi_bench_attach() 615 if (test__start_subtest("modules")) in serial_test_kprobe_multi_bench_attach() 624 if (test__start_subtest("skel_api")) in test_kprobe_multi_test() 626 if (test__start_subtest("link_api_addrs")) in test_kprobe_multi_test() 628 if (test__start_subtest("link_api_syms")) in test_kprobe_multi_test() 630 if (test__start_subtest("attach_api_pattern")) in test_kprobe_multi_test() 632 if (test__start_subtest("attach_api_addrs")) in test_kprobe_multi_test() 634 if (test__start_subtest("attach_api_syms")) in test_kprobe_multi_test() [all …]
|
| H A D | test_veristat.c | 235 if (test__start_subtest("set_global_vars_succeeds")) in test_veristat() 238 if (test__start_subtest("set_global_vars_out_of_range")) in test_veristat() 241 if (test__start_subtest("set_global_vars_from_file_succeeds")) in test_veristat() 244 if (test__start_subtest("test_unsupported_ptr_array_type")) in test_veristat() 247 if (test__start_subtest("test_array_out_of_bounds")) in test_veristat() 250 if (test__start_subtest("test_array_index_not_found")) in test_veristat() 253 if (test__start_subtest("test_array_index_for_non_array")) in test_veristat() 256 if (test__start_subtest("test_no_array_index_for_array")) in test_veristat()
|
| H A D | rbtree.c | 149 if (test__start_subtest("rbtree_add_nodes")) in test_rbtree_success() 151 if (test__start_subtest("rbtree_add_nodes_nested")) in test_rbtree_success() 153 if (test__start_subtest("rbtree_add_and_remove")) in test_rbtree_success() 155 if (test__start_subtest("rbtree_add_and_remove_array")) in test_rbtree_success() 157 if (test__start_subtest("rbtree_first_and_remove")) in test_rbtree_success() 159 if (test__start_subtest("rbtree_api_release_aliasing")) in test_rbtree_success() 175 if (test__start_subtest("rbtree_btf_fail__" #suffix)) \
|
| H A D | bpf_loop.c | 191 if (test__start_subtest("check_nr_loops")) in test_bpf_loop() 193 if (test__start_subtest("check_callback_fn_stop")) in test_bpf_loop() 195 if (test__start_subtest("check_null_callback_ctx")) in test_bpf_loop() 197 if (test__start_subtest("check_invalid_flags")) in test_bpf_loop() 199 if (test__start_subtest("check_nested_calls")) in test_bpf_loop() 201 if (test__start_subtest("check_non_constant_callback")) in test_bpf_loop() 203 if (test__start_subtest("check_stack")) in test_bpf_loop()
|
| H A D | local_kptr_stash.c | 135 if (test__start_subtest("local_kptr_stash_simple")) in test_local_kptr_stash() 137 if (test__start_subtest("local_kptr_stash_plain")) in test_local_kptr_stash() 139 if (test__start_subtest("local_kptr_stash_local_with_root")) in test_local_kptr_stash() 141 if (test__start_subtest("local_kptr_stash_unstash")) in test_local_kptr_stash() 143 if (test__start_subtest("refcount_acquire_without_unstash")) in test_local_kptr_stash() 145 if (test__start_subtest("local_kptr_stash_fail")) in test_local_kptr_stash()
|
| H A D | log_fixup.c | 169 if (test__start_subtest("bad_core_relo_trunc_none")) in test_log_fixup() 171 if (test__start_subtest("bad_core_relo_trunc_partial")) in test_log_fixup() 173 if (test__start_subtest("bad_core_relo_trunc_full")) in test_log_fixup() 175 if (test__start_subtest("bad_core_relo_subprog")) in test_log_fixup() 177 if (test__start_subtest("missing_map")) in test_log_fixup() 179 if (test__start_subtest("missing_kfunc")) in test_log_fixup()
|
| H A D | fexit_bpf2bpf.c | 574 if (test__start_subtest("target_no_callees")) in serial_test_fexit_bpf2bpf() 576 if (test__start_subtest("target_yes_callees")) in serial_test_fexit_bpf2bpf() 578 if (test__start_subtest("func_replace")) in serial_test_fexit_bpf2bpf() 580 if (test__start_subtest("func_replace_verify")) in serial_test_fexit_bpf2bpf() 582 if (test__start_subtest("func_sockmap_update")) in serial_test_fexit_bpf2bpf() 584 if (test__start_subtest("func_replace_return_code")) in serial_test_fexit_bpf2bpf() 586 if (test__start_subtest("func_map_prog_compatibility")) in serial_test_fexit_bpf2bpf() 588 if (test__start_subtest("func_replace_unreliable")) in serial_test_fexit_bpf2bpf() 590 if (test__start_subtest("func_replace_multi")) in serial_test_fexit_bpf2bpf() 592 if (test__start_subtest("fmod_ret_freplace")) in serial_test_fexit_bpf2bpf() [all …]
|
| H A D | linked_list.c | 334 while (test__start_subtest("btf: too many locks")) { in test_btf() 357 while (test__start_subtest("btf: missing lock")) { in test_btf() 383 while (test__start_subtest("btf: bad offset")) { in test_btf() 409 while (test__start_subtest("btf: missing contains:")) { in test_btf() 429 while (test__start_subtest("btf: missing struct")) { in test_btf() 452 while (test__start_subtest("btf: missing node")) { in test_btf() 475 while (test__start_subtest("btf: node incorrect type")) { in test_btf() 504 while (test__start_subtest("btf: multiple bpf_list_node with name b")) { in test_btf() 533 while (test__start_subtest("btf: owning | owned AA cycle")) { in test_btf() 559 while (test__start_subtest("btf: owning | owned ABA cycle")) { in test_btf() [all …]
|
| H A D | ksyms_btf.c | 174 if (test__start_subtest("basic")) in test_ksyms_btf() 177 if (test__start_subtest("null_check")) in test_ksyms_btf() 180 if (test__start_subtest("weak_ksyms")) in test_ksyms_btf() 183 if (test__start_subtest("weak_ksyms_lskel")) in test_ksyms_btf() 186 if (test__start_subtest("write_check1")) in test_ksyms_btf() 189 if (test__start_subtest("write_check2")) in test_ksyms_btf()
|
| H A D | cgroup_iter.c | 320 if (test__start_subtest("cgroup_iter__invalid_cgroup")) in test_cgroup_iter() 322 if (test__start_subtest("cgroup_iter__invalid_cgroup_spec")) in test_cgroup_iter() 324 if (test__start_subtest("cgroup_iter__preorder")) in test_cgroup_iter() 326 if (test__start_subtest("cgroup_iter__postorder")) in test_cgroup_iter() 328 if (test__start_subtest("cgroup_iter__ancestors_up_walk")) in test_cgroup_iter() 330 if (test__start_subtest("cgroup_iter__early_termination")) in test_cgroup_iter() 332 if (test__start_subtest("cgroup_iter__self_only")) in test_cgroup_iter() 334 if (test__start_subtest("cgroup_iter__dead_self_only")) 336 if (test__start_subtest("cgroup_iter__self_only_css_task")) 338 if (test__start_subtest("cgroup_iter__childre [all...] |
| H A D | xdp_vlan.c | 135 if (test__start_subtest("0")) in test_xdp_vlan_change() 138 if (test__start_subtest("DRV_MODE")) in test_xdp_vlan_change() 142 if (test__start_subtest("SKB_MODE")) in test_xdp_vlan_change() 163 if (test__start_subtest("0")) in test_xdp_vlan_remove() 166 if (test__start_subtest("DRV_MODE")) in test_xdp_vlan_remove() 170 if (test__start_subtest("SKB_MODE")) in test_xdp_vlan_remove()
|
| H A D | test_xdp_veth.c | 556 if (test__start_subtest("0")) in test_xdp_veth_redirect() 559 if (test__start_subtest("DRV_MODE")) in test_xdp_veth_redirect() 562 if (test__start_subtest("SKB_MODE")) in test_xdp_veth_redirect() 568 if (test__start_subtest("0/BROADCAST")) in test_xdp_veth_broadcast_redirect() 571 if (test__start_subtest("0/(BROADCAST | EXCLUDE_INGRESS)")) in test_xdp_veth_broadcast_redirect() 574 if (test__start_subtest("DRV_MODE/BROADCAST")) in test_xdp_veth_broadcast_redirect() 577 if (test__start_subtest("DRV_MODE/(BROADCAST | EXCLUDE_INGRESS)")) in test_xdp_veth_broadcast_redirect() 581 if (test__start_subtest("SKB_MODE/BROADCAST")) in test_xdp_veth_broadcast_redirect() 584 if (test__start_subtest("SKB_MODE/(BROADCAST | EXCLUDE_INGRESS)")) in test_xdp_veth_broadcast_redirect() 591 if (test__start_subtest("0/egress")) in test_xdp_veth_egress() [all …]
|