/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | tracing_struct.c | 5 #include "tracing_struct.skel.h" 9 struct tracing_struct *skel; in test_fentry() local 12 skel = tracing_struct__open_and_load(); in test_fentry() 13 if (!ASSERT_OK_PTR(skel, "tracing_struct__open_and_load")) in test_fentry() 16 err = tracing_struct__attach(skel); in test_fentry() 22 ASSERT_EQ(skel->bss->t1_a_a, 2, "t1:a.a"); in test_fentry() 23 ASSERT_EQ(skel->bss->t1_a_b, 3, "t1:a.b"); in test_fentry() 24 ASSERT_EQ(skel->bss->t1_b, 1, "t1:b"); in test_fentry() 25 ASSERT_EQ(skel->bss->t1_c, 4, "t1:c"); in test_fentry() 27 ASSERT_EQ(skel in test_fentry() [all...] |
H A D | attach_probe.c | 3 #include "test_attach_kprobe_sleepable.skel.h" 4 #include "test_attach_probe_manual.skel.h" 5 #include "test_attach_probe.skel.h" 43 struct test_attach_probe_manual *skel; in test_attach_probe_manual() local 46 skel = test_attach_probe_manual__open_and_load(); in test_attach_probe_manual() 47 if (!ASSERT_OK_PTR(skel, "skel_kprobe_manual_open_and_load")) in test_attach_probe_manual() 57 kprobe_link = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in test_attach_probe_manual() 62 skel->links.handle_kprobe = kprobe_link; in test_attach_probe_manual() 65 kretprobe_link = bpf_program__attach_kprobe_opts(skel->progs.handle_kretprobe, in test_attach_probe_manual() 70 skel in test_attach_probe_manual() 125 test_attach_probe_auto(struct test_attach_probe *skel) test_attach_probe_auto() argument 159 test_uprobe_lib(struct test_attach_probe *skel) test_uprobe_lib() argument 195 test_uprobe_ref_ctr(struct test_attach_probe *skel) test_uprobe_ref_ctr() argument 238 struct test_attach_kprobe_sleepable *skel; test_kprobe_sleepable() local 261 test_uprobe_sleepable(struct test_attach_probe *skel) test_uprobe_sleepable() argument 293 struct test_attach_probe *skel; test_attach_probe() local [all...] |
H A D | atomics.c | 7 static void test_add(struct atomics_lskel *skel) in test_add() argument 13 prog_fd = skel->progs.add.prog_fd; in test_add() 20 ASSERT_EQ(skel->data->add64_value, 3, "add64_value"); in test_add() 21 ASSERT_EQ(skel->bss->add64_result, 1, "add64_result"); in test_add() 23 ASSERT_EQ(skel->data->add32_value, 3, "add32_value"); in test_add() 24 ASSERT_EQ(skel->bss->add32_result, 1, "add32_result"); in test_add() 26 ASSERT_EQ(skel->bss->add_stack_value_copy, 3, "add_stack_value"); in test_add() 27 ASSERT_EQ(skel->bss->add_stack_result, 1, "add_stack_result"); in test_add() 29 ASSERT_EQ(skel->data->add_noreturn_value, 3, "add_noreturn_value"); in test_add() 32 static void test_sub(struct atomics_lskel *skel) in test_sub() argument 57 test_and(struct atomics_lskel *skel) test_and() argument 79 test_or(struct atomics_lskel *skel) test_or() argument 101 test_xor(struct atomics_lskel *skel) test_xor() argument 123 test_cmpxchg(struct atomics_lskel *skel) test_cmpxchg() argument 145 test_xchg(struct atomics_lskel *skel) test_xchg() argument 167 struct atomics_lskel *skel; test_atomics() local [all...] |
H A D | tc_links.c | 11 #include "test_tc_link.skel.h" 20 struct test_tc_link *skel; in serial_test_tc_links_basic() local 24 skel = test_tc_link__open_and_load(); in serial_test_tc_links_basic() 25 if (!ASSERT_OK_PTR(skel, "skel_load")) in serial_test_tc_links_basic() 28 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in serial_test_tc_links_basic() 29 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in serial_test_tc_links_basic() 36 ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1"); in serial_test_tc_links_basic() 37 ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2"); in serial_test_tc_links_basic() 39 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in serial_test_tc_links_basic() 43 skel in serial_test_tc_links_basic() 120 struct test_tc_link *skel; test_tc_links_before_target() local 274 struct test_tc_link *skel; test_tc_links_after_target() local 427 struct test_tc_link *skel; test_tc_links_revision_target() local 528 struct test_tc_link *skel; test_tc_chain_classic() local 633 struct test_tc_link *skel; test_tc_links_replace_target() local 858 struct test_tc_link *skel; test_tc_links_invalid_target() local 1172 struct test_tc_link *skel; test_tc_links_prepend_target() local 1328 struct test_tc_link *skel; test_tc_links_append_target() local 1482 struct test_tc_link *skel; test_tc_links_dev_cleanup_target() local 1580 struct test_tc_link *skel; test_tc_chain_mixed() local 1694 struct test_tc_link *skel; test_tc_links_ingress() local 1796 struct test_tc_link *skel; test_tc_links_dev_mixed() local [all...] |
H A D | test_strncmp.c | 4 #include "strncmp_test.skel.h" 6 static int trigger_strncmp(const struct strncmp_test *skel) in trigger_strncmp() argument 12 cmp = skel->bss->cmp_ret; in trigger_strncmp() 24 static void strncmp_full_str_cmp(struct strncmp_test *skel, const char *name, in strncmp_full_str_cmp() argument 27 size_t nr = sizeof(skel->bss->str); in strncmp_full_str_cmp() 28 char *str = skel->bss->str; in strncmp_full_str_cmp() 33 memcpy(str, skel->rodata->target, nr); in strncmp_full_str_cmp() 37 got = trigger_strncmp(skel); in strncmp_full_str_cmp() 46 struct strncmp_test *skel; in test_strncmp_ret() local 49 skel in test_strncmp_ret() 89 struct strncmp_test *skel; test_strncmp_bad_not_const_str_size() local 106 struct strncmp_test *skel; test_strncmp_bad_writable_target() local 123 struct strncmp_test *skel; test_strncmp_bad_not_null_term_target() local [all...] |
H A D | bpf_loop.c | 6 #include "bpf_loop.skel.h" 8 static void check_nr_loops(struct bpf_loop *skel) in check_nr_loops() argument 12 link = bpf_program__attach(skel->progs.test_prog); in check_nr_loops() 17 skel->bss->nr_loops = 0; in check_nr_loops() 21 ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops, in check_nr_loops() 25 skel->bss->nr_loops = 500; in check_nr_loops() 29 ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops, in check_nr_loops() 31 ASSERT_EQ(skel in check_nr_loops() 43 check_callback_fn_stop(struct bpf_loop *skel) check_callback_fn_stop() argument 65 check_null_callback_ctx(struct bpf_loop *skel) check_null_callback_ctx() argument 84 check_invalid_flags(struct bpf_loop *skel) check_invalid_flags() argument 100 check_nested_calls(struct bpf_loop *skel) check_nested_calls() argument 123 check_non_constant_callback(struct bpf_loop *skel) check_non_constant_callback() argument 142 check_stack(struct bpf_loop *skel) check_stack() argument 183 struct bpf_loop *skel; test_bpf_loop() local [all...] |
H A D | cgrp_local_storage.c | 9 #include "cgrp_ls_tp_btf.skel.h" 10 #include "cgrp_ls_recursion.skel.h" 11 #include "cgrp_ls_attach_cgroup.skel.h" 12 #include "cgrp_ls_negative.skel.h" 13 #include "cgrp_ls_sleepable.skel.h" 24 struct cgrp_ls_tp_btf *skel; in test_tp_btf() local 28 skel = cgrp_ls_tp_btf__open_and_load(); in test_tp_btf() 29 if (!ASSERT_OK_PTR(skel, "skel_open_and_load")) in test_tp_btf() 33 err = bpf_map_update_elem(bpf_map__fd(skel->maps.map_b), &cgroup_fd, &val1, BPF_ANY); in test_tp_btf() 38 err = bpf_map_lookup_elem(bpf_map__fd(skel in test_tp_btf() 72 struct cgrp_ls_attach_cgroup *skel; test_attach_cgroup() local 126 struct cgrp_ls_recursion *skel; test_recursion() local 146 struct cgrp_ls_negative *skel; test_negative() local 159 struct cgrp_ls_sleepable *skel; test_cgroup_iter_sleepable() local 198 struct cgrp_ls_sleepable *skel; test_yes_rcu_lock() local 225 struct cgrp_ls_sleepable *skel; test_no_rcu_lock() local [all...] |
H A D | btf_tag.c | 5 #include "test_btf_decl_tag.skel.h" 7 /* struct btf_type_tag_test is referenced in btf_type_tag.skel.h */ 11 #include "btf_type_tag.skel.h" 12 #include "btf_type_tag_user.skel.h" 13 #include "btf_type_tag_percpu.skel.h" 17 struct test_btf_decl_tag *skel; in test_btf_decl_tag() local 19 skel = test_btf_decl_tag__open_and_load(); in test_btf_decl_tag() 20 if (!ASSERT_OK_PTR(skel, "btf_decl_tag")) in test_btf_decl_tag() 23 if (skel->rodata->skip_tests) { in test_btf_decl_tag() 28 test_btf_decl_tag__destroy(skel); in test_btf_decl_tag() 33 struct btf_type_tag *skel; test_btf_type_tag() local 113 struct btf_type_tag_user *skel; test_btf_type_tag_mod_user() local 141 struct btf_type_tag_user *skel; test_btf_type_tag_vmlinux_user() local 167 struct btf_type_tag_percpu *skel; test_btf_type_tag_mod_percpu() local 196 struct btf_type_tag_percpu *skel; test_btf_type_tag_vmlinux_percpu() local [all...] |
H A D | find_vma.c | 6 #include "find_vma.skel.h" 7 #include "find_vma_fail1.skel.h" 8 #include "find_vma_fail2.skel.h" 10 static void test_and_reset_skel(struct find_vma *skel, int expected_find_zero_ret, bool need_test) in test_and_reset_skel() argument 13 ASSERT_EQ(skel->bss->found_vm_exec, 1, "found_vm_exec"); in test_and_reset_skel() 14 ASSERT_EQ(skel->data->find_addr_ret, 0, "find_addr_ret"); in test_and_reset_skel() 15 ASSERT_EQ(skel->data->find_zero_ret, expected_find_zero_ret, "find_zero_ret"); in test_and_reset_skel() 16 ASSERT_OK_PTR(strstr(skel->bss->d_iname, "test_progs"), "find_test_progs"); in test_and_reset_skel() 19 skel->bss->found_vm_exec = 0; in test_and_reset_skel() 20 skel in test_and_reset_skel() 41 find_vma_pe_condition(struct find_vma *skel) find_vma_pe_condition() argument 49 test_find_vma_pe(struct find_vma *skel) test_find_vma_pe() argument 80 test_find_vma_kprobe(struct find_vma *skel) test_find_vma_kprobe() argument 94 struct find_vma_fail1 *skel; test_illegal_write_vma() local 103 struct find_vma_fail2 *skel; test_illegal_write_task() local 112 struct find_vma *skel; serial_test_find_vma() local [all...] |
H A D | map_ops.c | 8 #include "test_map_ops.skel.h" 46 static int setup(struct test_map_ops **skel) in setup() argument 50 if (!skel) in setup() 53 *skel = test_map_ops__open(); in setup() 54 if (!ASSERT_OK_PTR(*skel, "test_map_ops__open")) in setup() 57 (*skel)->rodata->pid = getpid(); in setup() 59 err = test_map_ops__load(*skel); in setup() 63 err = test_map_ops__attach(*skel); in setup() 70 static void teardown(struct test_map_ops **skel) in teardown() argument 72 if (skel in teardown() 78 struct test_map_ops *skel; map_ops_update_delete_subtest() local 103 struct test_map_ops *skel; map_ops_push_peek_pop_subtest() local 135 struct test_map_ops *skel; map_ops_for_each_subtest() local [all...] |
H A D | user_ringbuf.c | 17 #include "user_ringbuf_fail.skel.h" 18 #include "user_ringbuf_success.skel.h" 72 struct user_ringbuf_success *skel; in open_load_ringbuf_skel() local 75 skel = user_ringbuf_success__open(); in open_load_ringbuf_skel() 76 if (!ASSERT_OK_PTR(skel, "skel_open")) in open_load_ringbuf_skel() 79 err = bpf_map__set_max_entries(skel->maps.user_ringbuf, c_ringbuf_size); in open_load_ringbuf_skel() 83 err = bpf_map__set_max_entries(skel->maps.kernel_ringbuf, c_ringbuf_size); in open_load_ringbuf_skel() 87 err = user_ringbuf_success__load(skel); in open_load_ringbuf_skel() 91 return skel; in open_load_ringbuf_skel() 94 user_ringbuf_success__destroy(skel); in open_load_ringbuf_skel() 103 struct user_ringbuf_success *skel; test_user_ringbuf_mappings() local 146 struct user_ringbuf_success *skel; load_skel_create_ringbufs() local 201 manually_write_test_invalid_sample(struct user_ringbuf_success *skel, __u32 size, __u64 producer_pos, int err) manually_write_test_invalid_sample() argument 237 struct user_ringbuf_success *skel; test_user_ringbuf_post_misaligned() local 253 struct user_ringbuf_success *skel; test_user_ringbuf_post_producer_wrong_offset() local 269 struct user_ringbuf_success *skel; test_user_ringbuf_post_larger_than_ringbuf_sz() local 285 struct user_ringbuf_success *skel; test_user_ringbuf_basic() local 308 struct user_ringbuf_success *skel; test_user_ringbuf_sample_full_ring_buffer() local 333 struct user_ringbuf_success *skel; test_user_ringbuf_post_alignment_autoadjust() local 357 struct user_ringbuf_success *skel; test_user_ringbuf_overfill() local 375 struct user_ringbuf_success *skel; test_user_ringbuf_discards_properly_ignored() local 420 struct user_ringbuf_success *skel; test_user_ringbuf_loop() local 500 struct user_ringbuf_success *skel = ctx; handle_kernel_msg() local 522 drain_kernel_messages_buffer(struct ring_buffer *kern_ringbuf, struct user_ringbuf_success *skel) drain_kernel_messages_buffer() argument 534 struct user_ringbuf_success *skel; test_user_ringbuf_msg_protocol() local 607 struct user_ringbuf_success *skel; test_user_ringbuf_blocking_reserve() local [all...] |
H A D | global_map_resize.c | 6 #include "test_global_map_resize.skel.h" 22 struct test_global_map_resize *skel; in global_map_resize_bss_subtest() local 24 const __u32 desired_sz = sizeof(skel->bss->sum) + sysconf(_SC_PAGE_SIZE) * 2; in global_map_resize_bss_subtest() 27 skel = test_global_map_resize__open(); in global_map_resize_bss_subtest() 28 if (!ASSERT_OK_PTR(skel, "test_global_map_resize__open")) in global_map_resize_bss_subtest() 35 skel->bss->array[0] = 1; in global_map_resize_bss_subtest() 38 map = skel->maps.bss; in global_map_resize_bss_subtest() 45 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus(); in global_map_resize_bss_subtest() 46 err = bpf_map__set_value_size(skel->maps.data_percpu_arr, new_sz); in global_map_resize_bss_subtest() 50 array_len = (desired_sz - sizeof(skel in global_map_resize_bss_subtest() 91 struct test_global_map_resize *skel; global_map_resize_data_subtest() local 162 struct test_global_map_resize *skel; global_map_resize_invalid_subtest() local [all...] |
H A D | uprobe_multi_test.c | 5 #include "uprobe_multi.skel.h" 6 #include "uprobe_multi_bench.skel.h" 7 #include "uprobe_multi_usdt.skel.h" 92 static void uprobe_multi_test_run(struct uprobe_multi *skel, struct child *child) in uprobe_multi_test_run() argument 94 skel->bss->uprobe_multi_func_1_addr = (__u64) uprobe_multi_func_1; in uprobe_multi_test_run() 95 skel->bss->uprobe_multi_func_2_addr = (__u64) uprobe_multi_func_2; in uprobe_multi_test_run() 96 skel->bss->uprobe_multi_func_3_addr = (__u64) uprobe_multi_func_3; in uprobe_multi_test_run() 98 skel->bss->user_ptr = test_data; in uprobe_multi_test_run() 105 skel->bss->pid = child ? 0 : getpid(); in uprobe_multi_test_run() 119 ASSERT_EQ(skel in uprobe_multi_test_run() 135 struct uprobe_multi *skel = NULL; test_skel_api() local 157 struct uprobe_multi *skel = NULL; __test_attach_api() local 242 struct uprobe_multi *skel = NULL; __test_link_api() local 332 struct uprobe_multi_bench *skel = NULL; test_bench_attach_uprobe() local 368 struct uprobe_multi_usdt *skel = NULL; test_bench_attach_usdt() local [all...] |
H A D | test_ldsx_insn.c | 6 #include "test_ldsx_insn.skel.h" 10 struct test_ldsx_insn *skel; in test_map_val_and_probed_memory() local 13 skel = test_ldsx_insn__open(); in test_map_val_and_probed_memory() 14 if (!ASSERT_OK_PTR(skel, "test_ldsx_insn__open")) in test_map_val_and_probed_memory() 17 if (skel->rodata->skip) { in test_map_val_and_probed_memory() 22 bpf_program__set_autoload(skel->progs.rdonly_map_prog, true); in test_map_val_and_probed_memory() 23 bpf_program__set_autoload(skel->progs.map_val_prog, true); in test_map_val_and_probed_memory() 24 bpf_program__set_autoload(skel->progs.test_ptr_struct_arg, true); in test_map_val_and_probed_memory() 26 err = test_ldsx_insn__load(skel); in test_map_val_and_probed_memory() 30 err = test_ldsx_insn__attach(skel); in test_map_val_and_probed_memory() 48 struct test_ldsx_insn *skel; test_ctx_member_sign_ext() local 96 struct test_ldsx_insn *skel; test_ctx_member_narrow_sign_ext() local [all...] |
H A D | rcu_read_lock.c | 10 #include "rcu_read_lock.skel.h" 17 struct rcu_read_lock *skel; in test_success() local 20 skel = rcu_read_lock__open(); in test_success() 21 if (!ASSERT_OK_PTR(skel, "skel_open")) in test_success() 24 skel->bss->target_pid = syscall(SYS_gettid); in test_success() 26 bpf_program__set_autoload(skel->progs.get_cgroup_id, true); in test_success() 27 bpf_program__set_autoload(skel->progs.task_succ, true); in test_success() 28 bpf_program__set_autoload(skel->progs.two_regions, true); in test_success() 29 bpf_program__set_autoload(skel->progs.non_sleepable_1, true); in test_success() 30 bpf_program__set_autoload(skel in test_success() 50 struct rcu_read_lock *skel; test_rcuptr_acquire() local 82 struct rcu_read_lock *skel; test_inproper_region() local 109 struct rcu_read_lock *skel; test_rcuptr_misuse() local [all...] |
H A D | bpf_cookie.c | 12 #include "test_bpf_cookie.skel.h" 13 #include "kprobe_multi.skel.h" 14 #include "uprobe_multi.skel.h" 22 static void kprobe_subtest(struct test_bpf_cookie *skel) in kprobe_subtest() argument 31 link1 = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in kprobe_subtest() 38 link2 = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in kprobe_subtest() 46 retlink1 = bpf_program__attach_kprobe_opts(skel->progs.handle_kretprobe, in kprobe_subtest() 53 retlink2 = bpf_program__attach_kprobe_opts(skel->progs.handle_kretprobe, in kprobe_subtest() 61 ASSERT_EQ(skel->bss->kprobe_res, 0x1 | 0x2, "kprobe_res"); in kprobe_subtest() 62 ASSERT_EQ(skel in kprobe_subtest() 71 kprobe_multi_test_run(struct kprobe_multi *skel) kprobe_multi_test_run() argument 103 struct kprobe_multi *skel = NULL; kprobe_multi_link_api_subtest() local 182 struct kprobe_multi *skel = NULL; kprobe_multi_attach_api_subtest() local 249 uprobe_multi_test_run(struct uprobe_multi *skel) uprobe_multi_test_run() argument 274 struct uprobe_multi *skel = NULL; uprobe_multi_attach_api_subtest() local 318 uprobe_subtest(struct test_bpf_cookie *skel) uprobe_subtest() argument 372 tp_subtest(struct test_bpf_cookie *skel) tp_subtest() argument 441 pe_subtest(struct test_bpf_cookie *skel) pe_subtest() argument 492 tracing_subtest(struct test_bpf_cookie *skel) tracing_subtest() argument 545 lsm_subtest(struct test_bpf_cookie *skel) lsm_subtest() argument 578 struct test_bpf_cookie *skel; test_bpf_cookie() local [all...] |
H A D | check_mtu.c | 6 #include "test_check_mtu.skel.h" 43 struct test_check_mtu *skel; in test_check_mtu_xdp_attach() local 49 skel = test_check_mtu__open_and_load(); in test_check_mtu_xdp_attach() 50 if (CHECK(!skel, "open and load skel", "failed")) in test_check_mtu_xdp_attach() 53 prog = skel->progs.xdp_use_helper_basic; in test_check_mtu_xdp_attach() 58 skel->links.xdp_use_helper_basic = link; in test_check_mtu_xdp_attach() 75 test_check_mtu__destroy(skel); in test_check_mtu_xdp_attach() 78 static void test_check_mtu_run_xdp(struct test_check_mtu *skel, in test_check_mtu_run_xdp() argument 99 mtu_result = skel in test_check_mtu_run_xdp() 106 struct test_check_mtu *skel; test_check_mtu_xdp() local 131 test_check_mtu_run_tc(struct test_check_mtu *skel, struct bpf_program *prog, __u32 mtu_expect) test_check_mtu_run_tc() argument 159 struct test_check_mtu *skel; test_check_mtu_tc() local [all...] |
H A D | get_func_ip_test.c | 3 #include "get_func_ip_test.skel.h" 4 #include "get_func_ip_uprobe_test.skel.h" 12 struct get_func_ip_test *skel = NULL; in test_function_entry() local 16 skel = get_func_ip_test__open(); in test_function_entry() 17 if (!ASSERT_OK_PTR(skel, "get_func_ip_test__open")) in test_function_entry() 20 err = get_func_ip_test__load(skel); in test_function_entry() 24 err = get_func_ip_test__attach(skel); in test_function_entry() 28 skel->bss->uprobe_trigger = (unsigned long) uprobe_trigger; in test_function_entry() 30 prog_fd = bpf_program__fd(skel->progs.test1); in test_function_entry() 35 prog_fd = bpf_program__fd(skel in test_function_entry() 66 struct get_func_ip_test *skel = NULL; test_function_body_kprobe() local 105 struct get_func_ip_uprobe_test *skel = NULL; test_function_body_uprobe() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | bpf_iter.c | 4 #include "bpf_iter_ipv6_route.skel.h" 5 #include "bpf_iter_netlink.skel.h" 6 #include "bpf_iter_bpf_map.skel.h" 7 #include "bpf_iter_task.skel.h" 8 #include "bpf_iter_task_stack.skel.h" 9 #include "bpf_iter_task_file.skel.h" 10 #include "bpf_iter_task_btf.skel.h" 11 #include "bpf_iter_tcp4.skel.h" 12 #include "bpf_iter_tcp6.skel.h" 13 #include "bpf_iter_udp4.skel 31 struct bpf_iter_test_kern3 *skel; test_btf_id_or_null() local 68 struct bpf_iter_ipv6_route *skel; test_ipv6_route() local 82 struct bpf_iter_netlink *skel; test_netlink() local 96 struct bpf_iter_bpf_map *skel; test_bpf_map() local 110 struct bpf_iter_task *skel; test_task() local 124 struct bpf_iter_task_stack *skel; test_task_stack() local 143 struct bpf_iter_task_file *skel; test_task_file() local 175 do_btf_read(struct bpf_iter_task_btf *skel) do_btf_read() argument 223 struct bpf_iter_task_btf *skel; test_task_btf() local 250 struct bpf_iter_tcp4 *skel; test_tcp4() local 264 struct bpf_iter_tcp6 *skel; test_tcp6() local 278 struct bpf_iter_udp4 *skel; test_udp4() local 292 struct bpf_iter_udp6 *skel; test_udp6() local 332 struct bpf_iter_test_kern1 *skel; test_anon_iter() local 431 struct bpf_iter_test_kern4 *skel; test_overflow() local 568 struct bpf_iter_bpf_hash_map *skel; test_bpf_hash_map() local 666 struct bpf_iter_bpf_percpu_hash_map *skel; test_bpf_percpu_hash_map() local 758 struct bpf_iter_bpf_array_map *skel; test_bpf_array_map() local 842 struct bpf_iter_bpf_percpu_array_map *skel; test_bpf_percpu_array_map() local 920 struct bpf_iter_bpf_sk_storage_map *skel; test_bpf_sk_storage_map() local 992 struct bpf_iter_test_kern5 *skel; test_rdonly_buf_out_of_bound() local 1014 struct bpf_iter_test_kern6 *skel; test_buf_neg_offset() local [all...] |
H A D | ringbuf.c | 15 #include "test_ringbuf.skel.h" 61 static struct test_ringbuf *skel; variable 66 skel->bss->dropped = 0; in trigger_samples() 67 skel->bss->total = 0; in trigger_samples() 68 skel->bss->discarded = 0; in trigger_samples() 71 skel->bss->value = 333; in trigger_samples() 73 skel->bss->value = 777; in trigger_samples() 91 skel = test_ringbuf__open_and_load(); in test_ringbuf() 92 if (CHECK(!skel, "skel_open_load", "skeleton open&load failed\n")) in test_ringbuf() 96 skel in test_ringbuf() [all...] |
/kernel/linux/linux-5.10/samples/v4l/ |
H A D | v4l2-pci-skeleton.c | 133 struct skeleton *skel = dev_id; in skeleton_irq() local 140 spin_lock(&skel->qlock); in skeleton_irq() 142 spin_unlock(&skel->qlock); in skeleton_irq() 144 new_buf->vb.sequence = skel->sequence++; in skeleton_irq() 145 new_buf->vb.field = skel->field; in skeleton_irq() 146 if (skel->format.field == V4L2_FIELD_ALTERNATE) { in skeleton_irq() 147 if (skel->field == V4L2_FIELD_BOTTOM) in skeleton_irq() 148 skel->field = V4L2_FIELD_TOP; in skeleton_irq() 149 else if (skel->field == V4L2_FIELD_TOP) in skeleton_irq() 150 skel in skeleton_irq() 169 struct skeleton *skel = vb2_get_drv_priv(vq); queue_setup() local 198 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); buffer_prepare() local 217 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); buffer_queue() local 229 return_all_buffers(struct skeleton *skel, enum vb2_buffer_state state) return_all_buffers() argument 251 struct skeleton *skel = vb2_get_drv_priv(vq); start_streaming() local 274 struct skeleton *skel = vb2_get_drv_priv(vq); stop_streaming() local 304 struct skeleton *skel = video_drvdata(file); skeleton_querycap() local 319 skeleton_fill_pix_format(struct skeleton *skel, struct v4l2_pix_format *pix) skeleton_fill_pix_format() argument 354 struct skeleton *skel = video_drvdata(file); skeleton_try_fmt_vid_cap() local 372 struct skeleton *skel = video_drvdata(file); skeleton_s_fmt_vid_cap() local 394 struct skeleton *skel = video_drvdata(file); skeleton_g_fmt_vid_cap() local 412 struct skeleton *skel = video_drvdata(file); skeleton_s_std() local 444 struct skeleton *skel = video_drvdata(file); skeleton_g_std() local 463 struct skeleton *skel = video_drvdata(file); skeleton_querystd() local 491 struct skeleton *skel = video_drvdata(file); skeleton_s_dv_timings() local 530 struct skeleton *skel = video_drvdata(file); skeleton_g_dv_timings() local 543 struct skeleton *skel = video_drvdata(file); skeleton_enum_dv_timings() local 565 struct skeleton *skel = video_drvdata(file); skeleton_query_dv_timings() local 594 struct skeleton *skel = video_drvdata(file); skeleton_dv_timings_cap() local 624 struct skeleton *skel = video_drvdata(file); skeleton_s_input() local 651 struct skeleton *skel = video_drvdata(file); skeleton_g_input() local 759 struct skeleton *skel; skeleton_probe() local 900 struct skeleton *skel = container_of(v4l2_dev, struct skeleton, v4l2_dev); skeleton_remove() local [all...] |
/kernel/linux/linux-6.6/samples/v4l/ |
H A D | v4l2-pci-skeleton.c | 121 struct skeleton *skel = dev_id; in skeleton_irq() local 128 spin_lock(&skel->qlock); in skeleton_irq() 130 spin_unlock(&skel->qlock); in skeleton_irq() 132 new_buf->vb.sequence = skel->sequence++; in skeleton_irq() 133 new_buf->vb.field = skel->field; in skeleton_irq() 134 if (skel->format.field == V4L2_FIELD_ALTERNATE) { in skeleton_irq() 135 if (skel->field == V4L2_FIELD_BOTTOM) in skeleton_irq() 136 skel->field = V4L2_FIELD_TOP; in skeleton_irq() 137 else if (skel->field == V4L2_FIELD_TOP) in skeleton_irq() 138 skel in skeleton_irq() 157 struct skeleton *skel = vb2_get_drv_priv(vq); queue_setup() local 186 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); buffer_prepare() local 205 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); buffer_queue() local 217 return_all_buffers(struct skeleton *skel, enum vb2_buffer_state state) return_all_buffers() argument 239 struct skeleton *skel = vb2_get_drv_priv(vq); start_streaming() local 262 struct skeleton *skel = vb2_get_drv_priv(vq); stop_streaming() local 292 struct skeleton *skel = video_drvdata(file); skeleton_querycap() local 307 skeleton_fill_pix_format(struct skeleton *skel, struct v4l2_pix_format *pix) skeleton_fill_pix_format() argument 342 struct skeleton *skel = video_drvdata(file); skeleton_try_fmt_vid_cap() local 360 struct skeleton *skel = video_drvdata(file); skeleton_s_fmt_vid_cap() local 382 struct skeleton *skel = video_drvdata(file); skeleton_g_fmt_vid_cap() local 400 struct skeleton *skel = video_drvdata(file); skeleton_s_std() local 432 struct skeleton *skel = video_drvdata(file); skeleton_g_std() local 451 struct skeleton *skel = video_drvdata(file); skeleton_querystd() local 479 struct skeleton *skel = video_drvdata(file); skeleton_s_dv_timings() local 518 struct skeleton *skel = video_drvdata(file); skeleton_g_dv_timings() local 531 struct skeleton *skel = video_drvdata(file); skeleton_enum_dv_timings() local 553 struct skeleton *skel = video_drvdata(file); skeleton_query_dv_timings() local 582 struct skeleton *skel = video_drvdata(file); skeleton_dv_timings_cap() local 612 struct skeleton *skel = video_drvdata(file); skeleton_s_input() local 639 struct skeleton *skel = video_drvdata(file); skeleton_g_input() local 747 struct skeleton *skel; skeleton_probe() local 888 struct skeleton *skel = container_of(v4l2_dev, struct skeleton, v4l2_dev); skeleton_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/hid/bpf/entrypoints/ |
H A D | entrypoints.lskel.h | 22 entrypoints_bpf__hid_tail_call__attach(struct entrypoints_bpf *skel) in entrypoints_bpf__hid_tail_call__attach() argument 24 int prog_fd = skel->progs.hid_tail_call.prog_fd; in entrypoints_bpf__hid_tail_call__attach() 28 skel->links.hid_tail_call_fd = fd; in entrypoints_bpf__hid_tail_call__attach() 33 entrypoints_bpf__attach(struct entrypoints_bpf *skel) in entrypoints_bpf__attach() argument 37 ret = ret < 0 ? ret : entrypoints_bpf__hid_tail_call__attach(skel); in entrypoints_bpf__attach() 42 entrypoints_bpf__detach(struct entrypoints_bpf *skel) 44 skel_closenz(skel->links.hid_tail_call_fd); 47 entrypoints_bpf__destroy(struct entrypoints_bpf *skel) 49 if (!skel) 51 entrypoints_bpf__detach(skel); 59 struct entrypoints_bpf *skel; entrypoints_bpf__open() local 72 entrypoints_bpf__load(struct entrypoints_bpf *skel) entrypoints_bpf__load() argument 225 struct entrypoints_bpf *skel; entrypoints_bpf__open_and_load() local [all...] |
/kernel/linux/linux-6.6/kernel/bpf/preload/iterators/ |
H A D | iterators.lskel-little-endian.h | 24 iterators_bpf__dump_bpf_map__attach(struct iterators_bpf *skel) in iterators_bpf__dump_bpf_map__attach() argument 26 int prog_fd = skel->progs.dump_bpf_map.prog_fd; in iterators_bpf__dump_bpf_map__attach() 30 skel->links.dump_bpf_map_fd = fd; in iterators_bpf__dump_bpf_map__attach() 35 iterators_bpf__dump_bpf_prog__attach(struct iterators_bpf *skel) in iterators_bpf__dump_bpf_prog__attach() argument 37 int prog_fd = skel->progs.dump_bpf_prog.prog_fd; in iterators_bpf__dump_bpf_prog__attach() 41 skel->links.dump_bpf_prog_fd = fd; in iterators_bpf__dump_bpf_prog__attach() 46 iterators_bpf__attach(struct iterators_bpf *skel) in iterators_bpf__attach() argument 50 ret = ret < 0 ? ret : iterators_bpf__dump_bpf_map__attach(skel); in iterators_bpf__attach() 51 ret = ret < 0 ? ret : iterators_bpf__dump_bpf_prog__attach(skel); in iterators_bpf__attach() 56 iterators_bpf__detach(struct iterators_bpf *skel) 75 struct iterators_bpf *skel; iterators_bpf__open() local 88 iterators_bpf__load(struct iterators_bpf *skel) iterators_bpf__load() argument 412 struct iterators_bpf *skel; iterators_bpf__open_and_load() local [all...] |
H A D | iterators.lskel-big-endian.h | 24 iterators_bpf__dump_bpf_map__attach(struct iterators_bpf *skel) in iterators_bpf__dump_bpf_map__attach() argument 26 int prog_fd = skel->progs.dump_bpf_map.prog_fd; in iterators_bpf__dump_bpf_map__attach() 30 skel->links.dump_bpf_map_fd = fd; in iterators_bpf__dump_bpf_map__attach() 35 iterators_bpf__dump_bpf_prog__attach(struct iterators_bpf *skel) in iterators_bpf__dump_bpf_prog__attach() argument 37 int prog_fd = skel->progs.dump_bpf_prog.prog_fd; in iterators_bpf__dump_bpf_prog__attach() 41 skel->links.dump_bpf_prog_fd = fd; in iterators_bpf__dump_bpf_prog__attach() 46 iterators_bpf__attach(struct iterators_bpf *skel) in iterators_bpf__attach() argument 50 ret = ret < 0 ? ret : iterators_bpf__dump_bpf_map__attach(skel); in iterators_bpf__attach() 51 ret = ret < 0 ? ret : iterators_bpf__dump_bpf_prog__attach(skel); in iterators_bpf__attach() 56 iterators_bpf__detach(struct iterators_bpf *skel) 75 struct iterators_bpf *skel; iterators_bpf__open() local 88 iterators_bpf__load(struct iterators_bpf *skel) iterators_bpf__load() argument 396 struct iterators_bpf *skel; iterators_bpf__open_and_load() local [all...] |