/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_iter.c | 40 struct bpf_iter_test_kern3 *skel; in test_btf_id_or_null() local 79 static void do_read_map_iter_fd(struct bpf_object_skeleton **skel, struct bpf_program *prog, in do_read_map_iter_fd() 141 struct bpf_iter_ipv6_route *skel; in test_ipv6_route() local 154 struct bpf_iter_netlink *skel; in test_netlink() local 167 struct bpf_iter_bpf_map *skel; in test_bpf_map() local 222 struct bpf_iter_task *skel; in test_task_common_nocheck() local 314 struct bpf_iter_task *skel; in test_task_sleepable() local 332 struct bpf_iter_task_stack *skel; in test_task_stack() local 347 struct bpf_iter_task_file *skel; in test_task_file() local 395 static int do_btf_read(struct bpf_iter_task_btf *skel) in do_btf_read() [all …]
|
H A D | user_ringbuf.c | 74 struct user_ringbuf_success *skel; in open_load_ringbuf_skel() local 105 struct user_ringbuf_success *skel; in test_user_ringbuf_mappings() local 148 struct user_ringbuf_success *skel; in load_skel_create_ringbufs() local 203 static void manually_write_test_invalid_sample(struct user_ringbuf_success *skel, in manually_write_test_invalid_sample() 239 struct user_ringbuf_success *skel; in test_user_ringbuf_post_misaligned() local 255 struct user_ringbuf_success *skel; in test_user_ringbuf_post_producer_wrong_offset() local 271 struct user_ringbuf_success *skel; in test_user_ringbuf_post_larger_than_ringbuf_sz() local 287 struct user_ringbuf_success *skel; in test_user_ringbuf_basic() local 310 struct user_ringbuf_success *skel; in test_user_ringbuf_sample_full_ring_buffer() local 335 struct user_ringbuf_success *skel; in test_user_ringbuf_post_alignment_autoadjust() local [all …]
|
H A D | bpf_cookie.c | 21 static void kprobe_subtest(struct test_bpf_cookie *skel) in kprobe_subtest() 70 static void kprobe_multi_test_run(struct kprobe_multi *skel) in kprobe_multi_test_run() 102 struct kprobe_multi *skel = NULL; in kprobe_multi_link_api_subtest() local 181 struct kprobe_multi *skel = NULL; in kprobe_multi_attach_api_subtest() local 242 static void uprobe_subtest(struct test_bpf_cookie *skel) in uprobe_subtest() 296 static void tp_subtest(struct test_bpf_cookie *skel) in tp_subtest() 365 static void pe_subtest(struct test_bpf_cookie *skel) in pe_subtest() 416 static void tracing_subtest(struct test_bpf_cookie *skel) in tracing_subtest() 469 static void lsm_subtest(struct test_bpf_cookie *skel) in lsm_subtest() 500 struct test_bpf_cookie *skel; in test_bpf_cookie() local
|
H A D | atomics.c | 7 static void test_add(struct atomics_lskel *skel) in test_add() 32 static void test_sub(struct atomics_lskel *skel) in test_sub() 57 static void test_and(struct atomics_lskel *skel) in test_and() 79 static void test_or(struct atomics_lskel *skel) in test_or() 101 static void test_xor(struct atomics_lskel *skel) in test_xor() 123 static void test_cmpxchg(struct atomics_lskel *skel) in test_cmpxchg() 145 static void test_xchg(struct atomics_lskel *skel) in test_xchg() 167 struct atomics_lskel *skel; in test_atomics() local
|
H A D | bpf_loop.c | 8 static void check_nr_loops(struct bpf_loop *skel) in check_nr_loops() 43 static void check_callback_fn_stop(struct bpf_loop *skel) in check_callback_fn_stop() 65 static void check_null_callback_ctx(struct bpf_loop *skel) in check_null_callback_ctx() 84 static void check_invalid_flags(struct bpf_loop *skel) in check_invalid_flags() 100 static void check_nested_calls(struct bpf_loop *skel) in check_nested_calls() 123 static void check_non_constant_callback(struct bpf_loop *skel) in check_non_constant_callback() 142 static void check_stack(struct bpf_loop *skel) in check_stack() 183 struct bpf_loop *skel; in test_bpf_loop() local
|
H A D | cgroup_iter.c | 95 static void test_invalid_cgroup(struct cgroup_iter *skel) in test_invalid_cgroup() 112 static void test_invalid_cgroup_spec(struct cgroup_iter *skel) in test_invalid_cgroup_spec() 130 static void test_walk_preorder(struct cgroup_iter *skel) in test_walk_preorder() 141 static void test_walk_postorder(struct cgroup_iter *skel) in test_walk_postorder() 152 static void test_walk_ancestors_up(struct cgroup_iter *skel) in test_walk_ancestors_up() 168 static void test_early_termination(struct cgroup_iter *skel) in test_early_termination() 183 static void test_walk_self_only(struct cgroup_iter *skel) in test_walk_self_only() 194 struct cgroup_iter *skel = NULL; in test_cgroup_iter() local
|
H A D | find_vma.c | 10 static void test_and_reset_skel(struct find_vma *skel, int expected_find_zero_ret, bool need_test) in test_and_reset_skel() 41 static bool find_vma_pe_condition(struct find_vma *skel) in find_vma_pe_condition() 49 static void test_find_vma_pe(struct find_vma *skel) in test_find_vma_pe() 80 static void test_find_vma_kprobe(struct find_vma *skel) in test_find_vma_kprobe() 94 struct find_vma_fail1 *skel; in test_illegal_write_vma() local 103 struct find_vma_fail2 *skel; in test_illegal_write_task() local 112 struct find_vma *skel; in serial_test_find_vma() local
|
H A D | test_strncmp.c | 6 static int trigger_strncmp(const struct strncmp_test *skel) in trigger_strncmp() 24 static void strncmp_full_str_cmp(struct strncmp_test *skel, const char *name, in strncmp_full_str_cmp() 46 struct strncmp_test *skel; in test_strncmp_ret() local 89 struct strncmp_test *skel; in test_strncmp_bad_not_const_str_size() local 106 struct strncmp_test *skel; in test_strncmp_bad_writable_target() local 123 struct strncmp_test *skel; in test_strncmp_bad_not_null_term_target() local
|
H A D | sk_lookup.c | 515 static void query_lookup_prog(struct test_sk_lookup *skel) in query_lookup_prog() 671 static void test_redirect_lookup(struct test_sk_lookup *skel) in test_redirect_lookup() 908 static void test_drop_on_lookup(struct test_sk_lookup *skel) in test_drop_on_lookup() 1034 static void test_drop_on_reuseport(struct test_sk_lookup *skel) in test_drop_on_reuseport() 1082 static void run_sk_assign(struct test_sk_lookup *skel, in run_sk_assign() 1135 static void run_sk_assign_v4(struct test_sk_lookup *skel, in run_sk_assign_v4() 1141 static void run_sk_assign_v6(struct test_sk_lookup *skel, in run_sk_assign_v6() 1147 static void run_sk_assign_connected(struct test_sk_lookup *skel, in run_sk_assign_connected() 1188 static void test_sk_assign_helper(struct test_sk_lookup *skel) in test_sk_assign_helper() 1287 static void test_multi_prog_lookup(struct test_sk_lookup *skel) in test_multi_prog_lookup() [all …]
|
H A D | btf_tag.c | 17 struct test_btf_decl_tag *skel; in test_btf_decl_tag() local 33 struct btf_type_tag *skel; in test_btf_type_tag() local 113 struct btf_type_tag_user *skel; in test_btf_type_tag_mod_user() local 141 struct btf_type_tag_user *skel; in test_btf_type_tag_vmlinux_user() local 167 struct btf_type_tag_percpu *skel; in test_btf_type_tag_mod_percpu() local 196 struct btf_type_tag_percpu *skel; in test_btf_type_tag_vmlinux_percpu() local
|
H A D | lookup_and_delete.c | 47 struct test_lookup_and_delete *skel; in setup_prog() local 78 static int trigger_tp(struct test_lookup_and_delete *skel, __u64 key, in trigger_tp() 100 struct test_lookup_and_delete *skel; in test_lookup_and_delete_hash() local 136 struct test_lookup_and_delete *skel; in test_lookup_and_delete_percpu_hash() local 176 struct test_lookup_and_delete *skel; in test_lookup_and_delete_lru_hash() local 222 struct test_lookup_and_delete *skel; in test_lookup_and_delete_lru_percpu_hash() local
|
H A D | ksyms_btf.c | 20 struct test_ksyms_btf *skel = NULL; in test_basic() local 79 struct test_ksyms_btf_null_check *skel; in test_null_check() local 89 struct test_ksyms_weak *skel; in test_weak_syms() local 116 struct test_ksyms_weak_lskel *skel; in test_weak_syms_lskel() local 143 struct test_ksyms_btf_write_check *skel; in test_write_check() local
|
H A D | sockmap_basic.c | 108 struct test_skmsg_load_helpers *skel; in test_skmsg_helpers() local 132 struct test_sockmap_update *skel; in test_sockmap_update() local 178 struct test_sockmap_invalid_update *skel; in test_sockmap_invalid_update() local 191 struct bpf_iter_sockmap *skel; in test_sockmap_copy() local 272 struct test_sockmap_skb_verdict_attach *skel; in test_sockmap_skb_verdict_attach() local 312 struct test_sockmap_progs_query *skel; in test_sockmap_progs_query() local
|
H A D | kprobe_multi_test.c | 9 static void kprobe_multi_test_run(struct kprobe_multi *skel, bool test_return) in kprobe_multi_test_run() 42 struct kprobe_multi *skel = NULL; in test_skel_api() local 63 struct kprobe_multi *skel = NULL; in test_link_api() local 139 struct kprobe_multi *skel = NULL; in test_attach_api() local 216 struct kprobe_multi *skel = NULL; in test_attach_api_fails() local 408 struct kprobe_multi_empty *skel = NULL; in serial_test_kprobe_multi_bench_attach() local
|
H A D | check_mtu.c | 43 struct test_check_mtu *skel; in test_check_mtu_xdp_attach() local 78 static void test_check_mtu_run_xdp(struct test_check_mtu *skel, in test_check_mtu_run_xdp() 106 struct test_check_mtu *skel; in test_check_mtu_xdp() local 131 static void test_check_mtu_run_tc(struct test_check_mtu *skel, in test_check_mtu_run_tc() 159 struct test_check_mtu *skel; in test_check_mtu_tc() local
|
H A D | migrate_reuseport.c | 186 struct test_migrate_reuseport *skel) in drop_ack() 217 struct test_migrate_reuseport *skel) in start_servers() 322 struct test_migrate_reuseport *skel) in update_maps() 408 struct test_migrate_reuseport *skel) in count_requests() 457 struct test_migrate_reuseport *skel) in run_test() 546 struct test_migrate_reuseport *skel; in serial_test_migrate_reuseport() local
|
H A D | tc_redirect.c | 502 static int netns_load_dtime_bpf(struct test_tc_dtime *skel) in netns_load_dtime_bpf() 642 static void test_tcp_clear_dtime(struct test_tc_dtime *skel) in test_tcp_clear_dtime() 668 static void test_tcp_dtime(struct test_tc_dtime *skel, int family, bool bpf_fwd) in test_tcp_dtime() 700 static void test_udp_dtime(struct test_tc_dtime *skel, int family, bool bpf_fwd) in test_udp_dtime() 734 struct test_tc_dtime *skel; in test_tc_redirect_dtime() local 790 struct test_tc_neigh_fib *skel = NULL; in test_tc_redirect_neigh_fib() local 834 struct test_tc_neigh *skel = NULL; in test_tc_redirect_neigh() local 881 struct test_tc_peer *skel; in test_tc_redirect_peer() local 994 struct test_tc_peer *skel = NULL; in test_tc_redirect_peer_l3() local
|
H A D | sockmap_listen.c | 1022 static void test_skb_redir_to_connected(struct test_sockmap_listen *skel, in test_skb_redir_to_connected() 1047 static void test_msg_redir_to_connected(struct test_sockmap_listen *skel, in test_msg_redir_to_connected() 1124 static void test_skb_redir_to_listening(struct test_sockmap_listen *skel, in test_skb_redir_to_listening() 1149 static void test_msg_redir_to_listening(struct test_sockmap_listen *skel, in test_msg_redir_to_listening() 1472 static void test_ops(struct test_sockmap_listen *skel, struct bpf_map *map, in test_ops() 1528 static void test_redir(struct test_sockmap_listen *skel, struct bpf_map *map, in test_redir() 1613 static void unix_skb_redir_to_connected(struct test_sockmap_listen *skel, in unix_skb_redir_to_connected() 1633 static void test_unix_redir(struct test_sockmap_listen *skel, struct bpf_map *map, in test_unix_redir() 1647 static void test_reuseport(struct test_sockmap_listen *skel, in test_reuseport() 1781 static void udp_skb_redir_to_connected(struct test_sockmap_listen *skel, in udp_skb_redir_to_connected() [all …]
|
H A D | dummy_st_ops.c | 14 struct dummy_st_ops *skel; in test_dummy_st_ops_attach() local 34 struct dummy_st_ops *skel; in test_dummy_init_ret_value() local 61 struct dummy_st_ops *skel; in test_dummy_init_ptr_arg() local 105 struct dummy_st_ops *skel; in test_dummy_multiple_args() local
|
H A D | kfunc_call.c | 91 struct kfunc_call_test *skel; in verify_success() local 154 struct kfunc_call_fail *skel; in verify_fail() local 232 struct kfunc_call_test_subprog *skel; in test_subprog() local 256 struct kfunc_call_test_subprog_lskel *skel; in test_subprog_lskel() local 280 struct kfunc_call_destructive *skel; in test_destructive_open_and_load() local
|
H A D | bloom_filter_map.c | 83 static void check_bloom(struct bloom_filter_map *skel) in check_bloom() 98 static void test_inner_map(struct bloom_filter_map *skel, const __u32 *rand_vals, in test_inner_map() 145 struct bloom_filter_map *skel; in setup_progs() local 197 struct bloom_filter_map *skel; in test_bloom_filter_map() local
|
H A D | map_init.c | 41 struct test_map_init *skel; in setup() local 78 static int prog_run_insert_elem(struct test_map_init *skel, map_key_t key, in prog_run_insert_elem() 132 struct test_map_init *skel; in test_pcpu_map_init() local 172 struct test_map_init *skel; in test_pcpu_lru_map_init() local
|
H A D | task_local_storage.c | 15 struct task_local_storage *skel; in test_sys_enter_exit() local 41 struct task_local_storage_exit_creds *skel; in test_exit_creds() local 66 struct task_ls_recursion *skel; in test_recursion() local
|
/aosp_15_r20/external/bcc/libbpf-tools/ |
H A D | memleak.c | 89 #define __ATTACH_UPROBE(skel, sym_name, prog_name, is_retprobe) \ argument 102 #define __CHECK_PROGRAM(skel, prog_name) \ argument 110 #define __ATTACH_UPROBE_CHECKED(skel, sym_name, prog_name, is_retprobe) \ argument 116 #define ATTACH_UPROBE(skel, sym_name, prog_name) __ATTACH_UPROBE(skel, sym_name, prog_name, false) argument 117 #define ATTACH_URETPROBE(skel, sym_name, prog_name) __ATTACH_UPROBE(skel, sym_name, prog_name, true) argument 119 #define ATTACH_UPROBE_CHECKED(skel, sym_name, prog_name) __ATTACH_UPROBE_CHECKED(skel, sym_name, pr… argument 120 #define ATTACH_URETPROBE_CHECKED(skel, sym_name, prog_name) __ATTACH_UPROBE_CHECKED(skel, sym_name,… argument 231 struct memleak_bpf *skel = NULL; in main() local 1003 void disable_kernel_node_tracepoints(struct memleak_bpf *skel) in disable_kernel_node_tracepoints() 1009 void disable_kernel_percpu_tracepoints(struct memleak_bpf *skel) in disable_kernel_percpu_tracepoints() [all …]
|
/aosp_15_r20/external/linux-kselftest/tools/testing/selftests/bpf/benchs/ |
H A D | bench_local_storage.c | 94 struct local_storage_bench *skel; member 179 struct local_storage_bench *skel; in hashmap_setup() local 194 struct local_storage_bench *skel; in local_storage_cache_get_setup() local 209 struct local_storage_bench *skel; in local_storage_cache_get_interleaved_setup() local
|