Home
last modified time | relevance | path

Searched refs:skel (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dtracing_struct.c10 struct tracing_struct *skel; in test_struct_args() local
13 skel = tracing_struct__open_and_load(); in test_struct_args()
17 err = tracing_struct__attach(skel); in test_struct_args()
25 ASSERT_EQ(skel->bss->t1_b, 1, "t1:b"); in test_struct_args()
26 ASSERT_EQ(skel->bss->t1_c, 4, "t1:c"); in test_struct_args()
35 ASSERT_EQ(skel->bss->t2_a, 1, "t2:a"); in test_struct_args()
38 ASSERT_EQ(skel->bss->t2_c, 4, "t2:c"); in test_struct_args()
41 ASSERT_EQ(skel->bss->t3_a, 1, "t3:a"); in test_struct_args()
42 ASSERT_EQ(skel->bss->t3_b, 4, "t3:b"); in test_struct_args()
48 ASSERT_EQ(skel->bss->t4_b, 1, "t4:b"); in test_struct_args()
[all …]
H A Dattach_probe.c98 skel->links.handle_uprobe_byname = in test_attach_probe_manual()
130 skel->links.handle_kprobe_auto = bpf_program__attach(skel->progs.handle_kprobe_auto); in test_attach_probe_auto()
133 skel->links.handle_kretprobe_auto = bpf_program__attach(skel->progs.handle_kretprobe_auto); in test_attach_probe_auto()
254 skel->links.handle_kprobe_sleepable = bpf_program__attach(skel->progs.handle_kprobe_sleepable); in test_kprobe_sleepable()
268 skel->links.handle_uprobe_byname3 = bpf_program__attach(skel->progs.handle_uprobe_byname3); in test_uprobe_sleepable()
280 skel->bss->user_ptr = test_data; in test_uprobe_sleepable()
295 struct test_attach_probe *skel; in test_attach_probe() local
316 test_attach_probe_auto(skel); in test_attach_probe()
320 test_uprobe_lib(skel); in test_attach_probe()
322 test_uprobe_sleepable(skel); in test_attach_probe()
[all …]
H A Darena_atomics.c243 skel->bss->pid = getpid(); in test_arena_atomics()
246 test_add(skel); in test_arena_atomics()
248 test_sub(skel); in test_arena_atomics()
250 test_and(skel); in test_arena_atomics()
252 test_or(skel); in test_arena_atomics()
254 test_xor(skel); in test_arena_atomics()
256 test_cmpxchg(skel); in test_arena_atomics()
258 test_xchg(skel); in test_arena_atomics()
260 test_uaf(skel); in test_arena_atomics()
262 test_load_acquire(skel); in test_arena_atomics()
[all …]
H A Datomics.c13 prog_fd = skel->progs.add.prog_fd; in test_add()
167 struct atomics_lskel *skel; in test_atomics() local
173 if (skel->data->skip_tests) { in test_atomics()
179 skel->bss->pid = getpid(); in test_atomics()
182 test_add(skel); in test_atomics()
184 test_sub(skel); in test_atomics()
186 test_and(skel); in test_atomics()
188 test_or(skel); in test_atomics()
190 test_xor(skel); in test_atomics()
192 test_cmpxchg(skel); in test_atomics()
[all …]
H A Dtest_strncmp.c12 cmp = skel->bss->cmp_ret; in trigger_strncmp()
28 char *str = skel->bss->str; 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 = strncmp_test__open(); in test_strncmp_ret()
66 skel->bss->str[0] = '\0'; in test_strncmp_ret()
71 memcpy(skel->bss->str, skel->rodata->target, sizeof(skel->bss->str)); in test_strncmp_ret()
76 memcpy(skel->bss->str, skel->rodata->target, sizeof(skel->bss->str)); in test_strncmp_ret()
77 skel->bss->str[sizeof(skel->bss->str) - 1] = 'A'; in test_strncmp_ret()
89 struct strncmp_test *skel; in test_strncmp_bad_not_const_str_size() local
[all …]
H A Dtest_struct_ops_module.c60 struct struct_ops_module *skel; in test_struct_ops_load() local
65 skel = struct_ops_module__open(); in test_struct_ops_load()
70 skel->struct_ops.testmod_1->test_2 = skel->progs.test_3; in test_struct_ops_load()
94 if (!attach_ops_and_check(skel, skel->maps.testmod_1, 20)) in test_struct_ops_load()
96 if (!attach_ops_and_check(skel, skel->maps.testmod_2, 12)) in test_struct_ops_load()
100 struct_ops_module__destroy(skel); in test_struct_ops_load()
105 struct struct_ops_module *skel; in test_struct_ops_not_zeroed() local
146 skel->struct_ops.testmod_zeroed->zeroed_op = skel->progs.test_3; in test_struct_ops_not_zeroed()
161 struct struct_ops_module *skel; in test_struct_ops_incompatible() local
239 skel->struct_ops.ops->test_1 = skel->progs.test_1_forgotten; /* not anymore */ in test_struct_ops_forgotten_cb()
[all …]
H A Dcgrp_local_storage.c25 #define CGROUP_MODE_SET(skel) \ argument
39 struct cgrp_ls_tp_btf *skel; in test_tp_btf() local
47 CGROUP_MODE_SET(skel); in test_tp_btf()
75 skel->bss->target_pid = 0; in test_tp_btf()
82 cgrp_ls_tp_btf__destroy(skel); in test_tp_btf()
150 CGROUP_MODE_SET(skel); in test_recursion()
165 struct cgrp_ls_negative *skel; in test_negative() local
187 CGROUP_MODE_SET(skel); in test_cgroup_iter_sleepable()
226 CGROUP_MODE_SET(skel); in test_yes_rcu_lock()
254 CGROUP_MODE_SET(skel); in test_no_rcu_lock()
[all …]
H A Dbpf_loop.c17 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()
34 skel->bss->nr_loops = -1; in check_nr_loops()
57 ASSERT_EQ(skel->bss->nr_loops_returned, skel->data->stop_index + 1, in check_callback_fn_stop()
74 skel->bss->nr_loops = 10; in check_null_callback_ctx()
78 ASSERT_EQ(skel->bss->nr_loops_returned, skel->bss->nr_loops, in check_null_callback_ctx()
183 struct bpf_loop *skel; in test_bpf_loop() local
192 check_nr_loops(skel); in test_bpf_loop()
[all …]
H A Dstruct_ops_autocreate.c9 struct struct_ops_autocreate *skel; in cant_load_full_object() local
13 skel = struct_ops_autocreate__open(); in cant_load_full_object()
24 err = struct_ops_autocreate__load(skel); in cant_load_full_object()
34 struct_ops_autocreate__destroy(skel); in cant_load_full_object()
54 struct struct_ops_autocreate *skel; in can_load_partial_object() local
57 skel = struct_ops_autocreate__open(); in can_load_partial_object()
75 check_test_1_link(skel, skel->maps.testmod_1); in can_load_partial_object()
78 struct_ops_autocreate__destroy(skel); in can_load_partial_object()
83 struct struct_ops_autocreate *skel; in optional_maps() local
105 check_test_1_link(skel, skel->maps.optional_map2); in optional_maps()
[all …]
H A Dbpf_iter.c104 *skel = NULL; in do_read_map_iter_fd()
216 struct bpf_iter_tasks *skel; in test_task_common_nocheck() local
385 skel->bss->pid = pid; in test_task_sleepable()
454 skel->bss->last_tgid = 0; in test_task_file()
455 skel->bss->count = 0; in test_task_file()
523 bss = skel->bss; in test_task_btf()
525 ret = do_btf_read(skel); in test_task_btf()
826 ASSERT_EQ(skel->bss->map2_seqnum1, skel->bss->map2_seqnum2, "map2_seqnum"); in test_overflow()
1112 do_read_map_iter_fd(&skel->skeleton, skel->progs.dump_bpf_array_map, in test_bpf_array_map_iter_fd()
1314 do_read_map_iter_fd(&skel->skeleton, skel->progs.rw_bpf_sk_storage_map, in test_bpf_sk_storage_map_iter_fd()
[all …]
H A Dbpf_cookie.c404 skel->bss->tp_res = 0; in tp_subtest()
476 skel->bss->pe_res = 0; in pe_subtest()
553 skel->bss->lsm_res = 0; in lsm_subtest()
696 kprobe_subtest(skel); in test_bpf_cookie()
702 uprobe_subtest(skel); in test_bpf_cookie()
706 tp_subtest(skel); in test_bpf_cookie()
708 pe_subtest(skel); in test_bpf_cookie()
710 tracing_subtest(skel); in test_bpf_cookie()
712 lsm_subtest(skel); in test_bpf_cookie()
714 tp_btf_subtest(skel); in test_bpf_cookie()
[all …]
H A Dmap_ops.c50 if (!skel) in setup()
72 if (skel && *skel) in teardown()
78 struct test_map_ops *skel; in map_ops_update_delete_subtest() local
80 if (setup(&skel)) in map_ops_update_delete_subtest()
98 teardown(&skel); in map_ops_update_delete_subtest()
103 struct test_map_ops *skel; in map_ops_push_peek_pop_subtest() local
105 if (setup(&skel)) in map_ops_push_peek_pop_subtest()
130 teardown(&skel); in map_ops_push_peek_pop_subtest()
135 struct test_map_ops *skel; in map_ops_for_each_subtest() local
137 if (setup(&skel)) in map_ops_for_each_subtest()
[all …]
H A Diters.c27 struct iters_num *skel; in subtest_num_iters() local
34 err = iters_num__attach(skel); in subtest_num_iters()
39 iters_num__detach(skel); in subtest_num_iters()
67 iters_num__destroy(skel); in subtest_num_iters()
109 struct iters_task_vma *skel; in subtest_task_vma_iters() local
126 iters_task_vma__detach(skel); in subtest_task_vma_iters()
193 iters_task__detach(skel); in subtest_task_iters()
202 iters_task__destroy(skel); in subtest_task_iters()
229 skel->bss->cg_id = cg_id; in subtest_css_task_iters()
288 iters_css__detach(skel); in subtest_css_iters()
[all …]
H A Dfind_vma.c19 skel->bss->found_vm_exec = 0; in test_and_reset_skel()
20 skel->data->find_addr_ret = -1; in test_and_reset_skel()
21 skel->data->find_zero_ret = -1; in test_and_reset_skel()
22 skel->bss->d_iname[0] = 0; in test_and_reset_skel()
84 err = find_vma__attach(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
121 test_find_vma_pe(skel); in serial_test_find_vma()
122 test_find_vma_kprobe(skel); in serial_test_find_vma()
[all …]
H A Dtc_links.c22 struct test_tc_link *skel; in test_ns_tc_links_basic() local
45 skel->links.tc1 = link; in test_ns_tc_links_basic()
80 skel->links.tc2 = link; in test_ns_tc_links_basic()
158 skel->links.tc1 = link; in test_tc_links_before_target()
168 skel->links.tc2 = link; in test_tc_links_before_target()
211 skel->links.tc3 = link; in test_tc_links_before_target()
224 skel->links.tc4 = link; in test_tc_links_before_target()
312 skel->links.tc1 = link; in test_tc_links_after_target()
759 err = bpf_link__update_program(skel->links.tc2, skel->progs.tc3); in test_tc_links_replace_target()
817 err = bpf_link__update_program(skel->links.tc1, skel->progs.tc1); in test_tc_links_replace_target()
[all …]
H A Drcu_read_lock.c17 struct rcu_read_lock *skel; in test_success() local
20 skel = rcu_read_lock__open(); in test_success()
36 err = rcu_read_lock__load(skel); in test_success()
49 rcu_read_lock__destroy(skel); in test_success()
54 struct rcu_read_lock *skel; in test_rcuptr_acquire() local
57 skel = rcu_read_lock__open(); in test_rcuptr_acquire()
71 rcu_read_lock__destroy(skel); in test_rcuptr_acquire()
91 struct rcu_read_lock *skel; in test_inproper_region() local
96 skel = rcu_read_lock__open(); in test_inproper_region()
107 rcu_read_lock__destroy(skel); in test_inproper_region()
[all …]
H A Dcgroup1_hierarchy.c108 skel->bss->target_hid = hid; in test_cgroup1_hierarchy()
112 bpf_cgroup1(skel); in test_cgroup1_hierarchy()
118 bpf_cgroup1(skel); in test_cgroup1_hierarchy()
124 bpf_cgroup1_invalid_id(skel); in test_cgroup1_hierarchy()
129 bpf_cgroup1_invalid_id(skel); in test_cgroup1_hierarchy()
135 skel->bss->target_hid = -1; in test_cgroup1_hierarchy()
136 bpf_cgroup1_invalid_id(skel); in test_cgroup1_hierarchy()
142 bpf_cgroup1_invalid_id(skel); in test_cgroup1_hierarchy()
148 bpf_cgroup1_invalid_id(skel); in test_cgroup1_hierarchy()
152 skel->bss->target_hid = hid; in test_cgroup1_hierarchy()
[all …]
H A Dbtf_tag.c17 struct test_btf_decl_tag *skel; in test_btf_decl_tag() local
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; in test_btf_type_tag() local
39 if (skel->rodata->skip_tests) { in test_btf_type_tag()
44 btf_type_tag__destroy(skel); in test_btf_type_tag()
113 struct btf_type_tag_user *skel; in test_btf_type_tag_mod_user() local
119 skel = btf_type_tag_user__open(); in test_btf_type_tag_mod_user()
132 btf_type_tag_user__destroy(skel); in test_btf_type_tag_mod_user()
141 struct btf_type_tag_user *skel; in test_btf_type_tag_vmlinux_user() local
[all …]
H A Dfs_kfuncs.c18 struct test_get_xattr *skel = NULL; in test_get_xattr() local
72 test_get_xattr__destroy(skel); in test_get_xattr()
102 ASSERT_EQ(strncmp(value_out, skel->data->value_bar, sizeof(skel->data->value_bar)), 0, in validate_bar_match()
154 read_and_validate_foo(skel); in test_set_remove_xattr()
155 validate_bar_match(skel); in test_set_remove_xattr()
160 read_and_validate_foo(skel); in test_set_remove_xattr()
161 validate_bar_removed(skel); in test_set_remove_xattr()
173 set_foo(skel); in test_set_remove_xattr()
174 validate_bar_match(skel); in test_set_remove_xattr()
179 set_foo(skel); in test_set_remove_xattr()
[all …]
H A Dpercpu_alloc.c9 struct percpu_alloc_array *skel; in test_array() local
13 skel = percpu_alloc_array__open(); in test_array()
22 skel->bss->my_pid = getpid(); in test_array()
25 err = percpu_alloc_array__load(skel); in test_array()
40 percpu_alloc_array__destroy(skel); in test_array()
45 struct percpu_alloc_array *skel; in test_array_sleepable() local
49 skel = percpu_alloc_array__open(); in test_array_sleepable()
55 skel->bss->my_pid = getpid(); in test_array_sleepable()
58 err = percpu_alloc_array__load(skel); in test_array_sleepable()
73 percpu_alloc_array__destroy(skel); in test_array_sleepable()
[all …]
/linux-6.15/tools/sched_ext/include/scx/
H A Denums.autogen.h7 #define SCX_ENUM_INIT(skel) do { \ argument
9 SCX_ENUM_SET(skel, scx_public_consts, SCX_SLICE_DFL); \
10 SCX_ENUM_SET(skel, scx_public_consts, SCX_SLICE_INF); \
11 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_ONLINE); \
13 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_BAL_PENDING); \
14 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_BAL_KEEP); \
15 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_BYPASSING); \
16 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_CLK_VALID); \
17 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_IN_WAKEUP); \
43 SCX_ENUM_SET(skel, scx_enq_flags, SCX_ENQ_HEAD); \
[all …]
/linux-6.15/samples/v4l/
H A Dv4l2-pci-skeleton.c160 skel->field = skel->format.field; in queue_setup()
400 if (skel->input) in skeleton_s_std()
420 skel->std = std; in skeleton_s_std()
423 skeleton_fill_pix_format(skel, &skel->format); in skeleton_s_std()
432 if (skel->input) in skeleton_g_std()
451 if (skel->input) in skeleton_querystd()
508 skeleton_fill_pix_format(skel, &skel->format); in skeleton_s_dv_timings()
621 skel->input = i; in skeleton_s_input()
630 skeleton_fill_pix_format(skel, &skel->format); in skeleton_s_input()
762 if (!skel) { in skeleton_probe()
[all …]
/linux-6.15/kernel/bpf/preload/iterators/
H A Diterators.lskel-little-endian.h64 if (!skel) in iterators_bpf__destroy()
66 iterators_bpf__detach(skel); in iterators_bpf__destroy()
70 skel_free(skel); in iterators_bpf__destroy()
75 struct iterators_bpf *skel; in iterators_bpf__open() local
77 skel = skel_alloc(sizeof(*skel)); in iterators_bpf__open()
78 if (!skel) in iterators_bpf__open()
80 skel->ctx.sz = (void *)&skel->links - (void *)skel; in iterators_bpf__open()
81 return skel; in iterators_bpf__open()
83 iterators_bpf__destroy(skel); in iterators_bpf__open()
415 if (!skel) in iterators_bpf__open_and_load()
[all …]
H A Diterators.lskel-big-endian.h64 if (!skel) in iterators_bpf__destroy()
66 iterators_bpf__detach(skel); in iterators_bpf__destroy()
70 skel_free(skel); in iterators_bpf__destroy()
75 struct iterators_bpf *skel; in iterators_bpf__open() local
77 skel = skel_alloc(sizeof(*skel)); in iterators_bpf__open()
78 if (!skel) in iterators_bpf__open()
80 skel->ctx.sz = (void *)&skel->links - (void *)skel; in iterators_bpf__open()
81 return skel; in iterators_bpf__open()
83 iterators_bpf__destroy(skel); in iterators_bpf__open()
399 if (!skel) in iterators_bpf__open_and_load()
[all …]
/linux-6.15/tools/sched_ext/
H A Dscx_qmap.c57 struct scx_qmap *skel; in main() local
97 if (skel->rodata->disallow_tgid < 0) in main()
104 skel->rodata->suppress_dump = true; in main()
127 skel->bss->nr_reenqueued, skel->bss->nr_dequeued, in main()
129 skel->bss->nr_ddsp_from_enq); in main()
131 skel->bss->nr_expedited_local, in main()
137 skel->bss->cpuperf_min, in main()
138 skel->bss->cpuperf_avg, in main()
139 skel->bss->cpuperf_max, in main()
148 UEI_REPORT(skel, uei); in main()
[all …]

12345678910>>...14