Home
last modified time | relevance | path

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

12345678910>>...14

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtracing_struct.c5 #include "tracing_struct.skel.h"
6 #include "tracing_struct_many_args.skel.h"
10 struct tracing_struct *skel; in test_struct_args() local
13 skel = tracing_struct__open_and_load(); in test_struct_args()
14 if (!ASSERT_OK_PTR(skel, "tracing_struct__open_and_load")) in test_struct_args()
17 err = tracing_struct__attach(skel); in test_struct_args()
23 ASSERT_EQ(skel->bss->t1_a_a, 2, "t1:a.a"); in test_struct_args()
24 ASSERT_EQ(skel->bss->t1_a_b, 3, "t1:a.b"); in test_struct_args()
25 ASSERT_EQ(skel->bss->t1_b, 1, "t1:b"); in test_struct_args()
26 ASSERT_EQ(skel in test_struct_args()
65 struct tracing_struct_many_args *skel; test_struct_many_args() local
[all...]
H A Dattach_probe.c3 #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()
130 struct test_attach_probe_manual *skel; test_attach_uprobe_long_event_name() local
176 struct test_attach_probe_manual *skel; test_attach_kprobe_long_event_name() local
204 test_attach_probe_auto(struct test_attach_probe * skel) test_attach_probe_auto() argument
238 test_uprobe_lib(struct test_attach_probe * skel) test_uprobe_lib() argument
274 test_uprobe_ref_ctr(struct test_attach_probe * skel) test_uprobe_ref_ctr() argument
317 struct test_attach_kprobe_sleepable *skel; test_kprobe_sleepable() local
340 test_uprobe_sleepable(struct test_attach_probe * skel) test_uprobe_sleepable() argument
374 struct test_attach_probe *skel; test_attach_probe() local
[all...]
H A Darena_atomics.c4 #include "arena_atomics.skel.h"
6 static void test_add(struct arena_atomics *skel) in test_add() argument
12 prog_fd = bpf_program__fd(skel->progs.add); in test_add()
19 ASSERT_EQ(skel->arena->add64_value, 3, "add64_value"); in test_add()
20 ASSERT_EQ(skel->arena->add64_result, 1, "add64_result"); in test_add()
22 ASSERT_EQ(skel->arena->add32_value, 3, "add32_value"); in test_add()
23 ASSERT_EQ(skel->arena->add32_result, 1, "add32_result"); in test_add()
25 ASSERT_EQ(skel->arena->add_stack_value_copy, 3, "add_stack_value"); in test_add()
26 ASSERT_EQ(skel->arena->add_stack_result, 1, "add_stack_result"); in test_add()
28 ASSERT_EQ(skel in test_add()
31 test_sub(struct arena_atomics * skel) test_sub() argument
56 test_and(struct arena_atomics * skel) test_and() argument
73 test_or(struct arena_atomics * skel) test_or() argument
90 test_xor(struct arena_atomics * skel) test_xor() argument
107 test_cmpxchg(struct arena_atomics * skel) test_cmpxchg() argument
129 test_xchg(struct arena_atomics * skel) test_xchg() argument
149 test_uaf(struct arena_atomics * skel) test_uaf() argument
165 test_load_acquire(struct arena_atomics * skel) test_load_acquire() argument
195 test_store_release(struct arena_atomics * skel) test_store_release() argument
227 struct arena_atomics *skel; test_arena_atomics() local
[all...]
H A Datomics.c7 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 Dtest_strncmp.c4 #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 Dtest_struct_ops_module.c8 #include "struct_ops_module.skel.h"
9 #include "struct_ops_nulled_out_cb.skel.h"
10 #include "struct_ops_forgotten_cb.skel.h"
11 #include "struct_ops_detach.skel.h"
12 #include "unsupported_ops.skel.h"
39 static int attach_ops_and_check(struct struct_ops_module *skel, in attach_ops_and_check() argument
51 ASSERT_EQ(skel->bss->test_1_result, 0xdeadbeef, "test_1_result"); in attach_ops_and_check()
52 ASSERT_EQ(skel->bss->test_2_result, expected_test_2_result, "test_2_result"); in attach_ops_and_check()
60 struct struct_ops_module *skel; in test_struct_ops_load() local
65 skel in test_struct_ops_load()
105 struct struct_ops_module *skel; test_struct_ops_not_zeroed() local
161 struct struct_ops_module *skel; test_struct_ops_incompatible() local
186 struct struct_ops_nulled_out_cb *skel; test_struct_ops_nulled_out_cb() local
212 struct struct_ops_forgotten_cb *skel; test_struct_ops_forgotten_cb() local
253 struct struct_ops_detach *skel; test_detach_link() local
[all...]
H A Dcgrp_local_storage.c9 #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"
25 #define CGROUP_MODE_SET(skel) \ argument
27 skel->bss->is_cgroup1 = is_cgroup1; \
28 skel->bss->target_hid = target_hid; \
39 struct cgrp_ls_tp_btf *skel; in test_tp_btf() local
43 skel in test_tp_btf()
89 struct cgrp_ls_attach_cgroup *skel; test_attach_cgroup() local
143 struct cgrp_ls_recursion *skel; test_recursion() local
165 struct cgrp_ls_negative *skel; test_negative() local
178 struct cgrp_ls_sleepable *skel; test_cgroup_iter_sleepable() local
219 struct cgrp_ls_sleepable *skel; test_yes_rcu_lock() local
247 struct cgrp_ls_sleepable *skel; test_no_rcu_lock() local
265 struct cgrp_ls_sleepable *skel; test_cgrp1_no_rcu_lock() local
[all...]
H A Dbpf_loop.c6 #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 Dstruct_ops_autocreate.c4 #include "struct_ops_autocreate.skel.h"
5 #include "struct_ops_autocreate2.skel.h"
9 struct struct_ops_autocreate *skel; in cant_load_full_object() local
13 skel = struct_ops_autocreate__open(); in cant_load_full_object()
14 if (!ASSERT_OK_PTR(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()
37 static int check_test_1_link(struct struct_ops_autocreate *skel, struct bpf_map *map) in check_test_1_link() argument
42 link = bpf_map__attach_struct_ops(skel->maps.testmod_1); in check_test_1_link()
47 err = ASSERT_EQ(skel in check_test_1_link()
54 struct struct_ops_autocreate *skel; can_load_partial_object() local
83 struct struct_ops_autocreate *skel; optional_maps() local
116 struct struct_ops_autocreate2 *skel = NULL; autoload_and_shadow_vars() local
[all...]
H A Dbpf_iter.c7 #include "bpf_iter_ipv6_route.skel.h"
8 #include "bpf_iter_netlink.skel.h"
9 #include "bpf_iter_bpf_map.skel.h"
10 #include "bpf_iter_tasks.skel.h"
11 #include "bpf_iter_task_stack.skel.h"
12 #include "bpf_iter_task_file.skel.h"
13 #include "bpf_iter_task_vmas.skel.h"
14 #include "bpf_iter_task_btf.skel.h"
15 #include "bpf_iter_tcp4.skel.h"
16 #include "bpf_iter_tcp6.skel
39 struct bpf_iter_test_kern3 *skel; test_btf_id_or_null() local
78 do_read_map_iter_fd(struct bpf_object_skeleton ** skel,struct bpf_program * prog,struct bpf_map * map) do_read_map_iter_fd() argument
140 struct bpf_iter_ipv6_route *skel; test_ipv6_route() local
153 struct bpf_iter_netlink *skel; test_netlink() local
166 struct bpf_iter_bpf_map *skel; test_bpf_map() local
216 struct bpf_iter_tasks *skel; test_task_common_nocheck() local
325 struct bpf_iter_tasks *skel; test_task_sleepable() local
411 struct bpf_iter_task_stack *skel; test_task_stack() local
428 struct bpf_iter_task_file *skel; test_task_file() local
476 do_btf_read(struct bpf_iter_task_btf * skel) do_btf_read() argument
516 struct bpf_iter_task_btf *skel; test_task_btf() local
540 struct bpf_iter_tcp4 *skel; test_tcp4() local
553 struct bpf_iter_tcp6 *skel; test_tcp6() local
566 struct bpf_iter_udp4 *skel; test_udp4() local
579 struct bpf_iter_udp6 *skel; test_udp6() local
592 struct bpf_iter_unix *skel; test_unix() local
629 struct bpf_iter_test_kern1 *skel; test_anon_iter() local
723 struct bpf_iter_test_kern4 *skel; test_overflow() local
846 struct bpf_iter_bpf_hash_map *skel; test_bpf_hash_map() local
939 struct bpf_iter_bpf_percpu_hash_map *skel; test_bpf_percpu_hash_map() local
1025 struct bpf_iter_bpf_array_map *skel; test_bpf_array_map() local
1106 struct bpf_iter_bpf_array_map *skel; test_bpf_array_map_iter_fd() local
1121 struct bpf_iter_bpf_percpu_array_map *skel; test_bpf_percpu_array_map() local
1195 struct bpf_iter_bpf_sk_storage_helpers *skel; test_bpf_sk_storage_delete() local
1265 struct bpf_iter_bpf_sk_storage_helpers *skel; test_bpf_sk_storage_get() local
1308 struct bpf_iter_bpf_sk_storage_map *skel; test_bpf_sk_storage_map_iter_fd() local
1324 struct bpf_iter_bpf_sk_storage_map *skel; test_bpf_sk_storage_map() local
1407 struct bpf_iter_test_kern5 *skel; test_rdonly_buf_out_of_bound() local
1428 struct bpf_iter_test_kern6 *skel; test_buf_neg_offset() local
1437 struct bpf_iter_bpf_link *skel; test_link_iter() local
1450 struct bpf_iter_ksym *skel; test_ksym_iter() local
1484 struct bpf_iter_task_vmas *skel; test_task_vma_common() local
1552 struct bpf_iter_task_vmas *skel; test_task_vma_dead_task() local
1623 struct bpf_iter_sockmap *skel; test_bpf_sockmap_map_iter_fd() local
1657 struct bpf_iter_vma_offset *skel; test_task_vma_offset_common() local
[all...]
H A Dmap_ops.c8 #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 Diters.c13 #include "iters.skel.h"
14 #include "iters_state_safety.skel.h"
15 #include "iters_looping.skel.h"
16 #include "iters_num.skel.h"
17 #include "iters_testmod.skel.h"
18 #include "iters_testmod_seq.skel.h"
19 #include "iters_task_vma.skel.h"
20 #include "iters_task.skel.h"
21 #include "iters_css_task.skel.h"
22 #include "iters_css.skel
27 struct iters_num *skel; subtest_num_iters() local
72 struct iters_testmod_seq *skel; subtest_testmod_seq_iters() local
109 struct iters_task_vma *skel; subtest_task_vma_iters() local
175 struct iters_task *skel = NULL; subtest_task_iters() local
209 struct iters_css_task *skel = NULL; subtest_css_task_iters() local
247 struct iters_css *skel = NULL; subtest_css_iters() local
[all...]
H A Dfind_vma.c6 #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 Drcu_read_lock.c10 #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 = 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()
54 struct rcu_read_lock *skel; test_rcuptr_acquire() local
91 struct rcu_read_lock *skel; test_inproper_region() local
118 struct rcu_read_lock *skel; test_rcuptr_misuse() local
[all...]
H A Dbpf_cookie.c12 #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
510 tracing_subtest(struct test_bpf_cookie * skel) tracing_subtest() argument
567 lsm_subtest(struct test_bpf_cookie * skel) lsm_subtest() argument
598 tp_btf_subtest(struct test_bpf_cookie * skel) tp_btf_subtest() argument
679 raw_tp_subtest(struct test_bpf_cookie * skel) raw_tp_subtest() argument
733 struct test_bpf_cookie *skel; test_bpf_cookie() local
[all...]
H A Dbtf_tag.c5 #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 Dfs_kfuncs.c10 #include "test_get_xattr.skel.h"
11 #include "test_set_remove_xattr.skel.h"
12 #include "test_fsverity.skel.h"
18 struct test_get_xattr *skel = NULL; in test_get_xattr() local
41 skel = test_get_xattr__open_and_load(); in test_get_xattr()
42 if (!ASSERT_OK_PTR(skel, "test_get_xattr__open_and_load")) in test_get_xattr()
45 skel->bss->monitored_pid = getpid(); in test_get_xattr()
46 err = test_get_xattr__attach(skel); in test_get_xattr()
62 ASSERT_EQ(skel->bss->found_xattr_from_file, 1, "found_xattr_from_file"); in test_get_xattr()
63 ASSERT_EQ(skel in test_get_xattr()
79 read_and_validate_foo(struct test_set_remove_xattr * skel) read_and_validate_foo() argument
89 set_foo(struct test_set_remove_xattr * skel) set_foo() argument
95 validate_bar_match(struct test_set_remove_xattr * skel) validate_bar_match() argument
106 validate_bar_removed(struct test_set_remove_xattr * skel) validate_bar_removed() argument
117 struct test_set_remove_xattr *skel = NULL; test_set_remove_xattr() local
204 struct test_fsverity *skel = NULL; test_fsverity() local
[all...]
H A Dglobal_map_resize.c6 #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 Duprobe_multi_test.c6 #include "uprobe_multi.skel.h"
7 #include "uprobe_multi_bench.skel.h"
8 #include "uprobe_multi_usdt.skel.h"
9 #include "uprobe_multi_consumers.skel.h"
10 #include "uprobe_multi_pid_filter.skel.h"
11 #include "uprobe_multi_session.skel.h"
12 #include "uprobe_multi_session_single.skel.h"
13 #include "uprobe_multi_session_cookie.skel.h"
14 #include "uprobe_multi_session_recursive.skel.h"
15 #include "uprobe_multi_verifier.skel
194 uprobe_multi_test_run(struct uprobe_multi * skel,struct child * child) uprobe_multi_test_run() argument
249 struct uprobe_multi *skel = NULL; test_skel_api() local
271 struct uprobe_multi *skel = NULL; __test_attach_api() local
376 struct uprobe_multi *skel = NULL; test_attach_api_fails() local
562 attach_uprobe_fail_trap(struct uprobe_multi * skel) attach_uprobe_fail_trap() argument
583 attach_uprobe_fail_trap(struct uprobe_multi * skel) attach_uprobe_fail_trap() argument
588 attach_uprobe_fail_refctr(struct uprobe_multi * skel) attach_uprobe_fail_refctr() argument
644 struct uprobe_multi *skel = NULL; test_attach_uprobe_fails() local
664 struct uprobe_multi *skel = NULL; __test_link_api() local
757 get_program(struct uprobe_multi_consumers * skel,int prog) get_program() argument
775 get_link(struct uprobe_multi_consumers * skel,int link) get_link() argument
792 uprobe_attach(struct uprobe_multi_consumers * skel,int idx,unsigned long offset) uprobe_attach() argument
819 uprobe_detach(struct uprobe_multi_consumers * skel,int idx) uprobe_detach() argument
833 uprobe_consumer_test(struct uprobe_multi_consumers * skel,unsigned long before,unsigned long after,unsigned long offset) uprobe_consumer_test() argument
882 consumer_test(struct uprobe_multi_consumers * skel,unsigned long before,unsigned long after,test_t test,unsigned long offset) consumer_test() argument
977 struct uprobe_multi_consumers *skel; consumer_thread() local
1057 uprobe_multi_program(struct uprobe_multi_pid_filter * skel,int idx) uprobe_multi_program() argument
1069 run_pid_filter(struct uprobe_multi_pid_filter * skel,bool clone_vm,bool retprobe) run_pid_filter() argument
1109 struct uprobe_multi_pid_filter *skel; test_pid_filter_process() local
1123 struct uprobe_multi_session *skel = NULL; test_session_skel_api() local
1167 struct uprobe_multi_session_single *skel = NULL; test_session_single_skel_api() local
1197 struct uprobe_multi_session_cookie *skel = NULL; test_session_cookie_skel_api() local
1225 struct uprobe_multi_session_recursive *skel = NULL; test_session_recursive_skel_api() local
1274 struct uprobe_multi_bench *skel = NULL; test_bench_attach_uprobe() local
1310 struct uprobe_multi_usdt *skel = NULL; test_bench_attach_usdt() local
[all...]
H A Drbtree.c7 #include "rbtree.skel.h"
8 #include "rbtree_fail.skel.h"
9 #include "rbtree_btf_fail__wrong_node_type.skel.h"
10 #include "rbtree_btf_fail__add_wrong_type.skel.h"
11 #include "rbtree_search.skel.h"
20 struct rbtree *skel; in test_rbtree_add_nodes() local
23 skel = rbtree__open_and_load(); in test_rbtree_add_nodes()
24 if (!ASSERT_OK_PTR(skel, "rbtree__open_and_load")) in test_rbtree_add_nodes()
27 ret = bpf_prog_test_run_opts(bpf_program__fd(skel->progs.rbtree_add_nodes), &opts); in test_rbtree_add_nodes()
30 ASSERT_EQ(skel in test_rbtree_add_nodes()
42 struct rbtree *skel; test_rbtree_add_nodes_nested() local
64 struct rbtree *skel; test_rbtree_add_and_remove() local
86 struct rbtree *skel; test_rbtree_add_and_remove_array() local
107 struct rbtree *skel; test_rbtree_first_and_remove() local
131 struct rbtree *skel; test_rbtree_api_release_aliasing() local
[all...]
/linux/tools/sched_ext/include/scx/
H A Denums.autogen.h7 #define SCX_ENUM_INIT(skel) do { \ argument
8 SCX_ENUM_SET(skel, scx_public_consts, SCX_OPS_NAME_LEN); \
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); \
12 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_CAN_STOP_TICK); \
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_flag
[all...]
/linux/samples/v4l/
H A Dv4l2-pci-skeleton.c121 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
187 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); buffer_prepare() local
206 struct skeleton *skel = vb2_get_drv_priv(vb->vb2_queue); buffer_queue() local
218 return_all_buffers(struct skeleton * skel,enum vb2_buffer_state state) return_all_buffers() argument
240 struct skeleton *skel = vb2_get_drv_priv(vq); start_streaming() local
263 struct skeleton *skel = vb2_get_drv_priv(vq); stop_streaming() local
289 struct skeleton *skel = video_drvdata(file); skeleton_querycap() local
304 skeleton_fill_pix_format(struct skeleton * skel,struct v4l2_pix_format * pix) skeleton_fill_pix_format() argument
339 struct skeleton *skel = video_drvdata(file); skeleton_try_fmt_vid_cap() local
357 struct skeleton *skel = video_drvdata(file); skeleton_s_fmt_vid_cap() local
379 struct skeleton *skel = video_drvdata(file); skeleton_g_fmt_vid_cap() local
397 struct skeleton *skel = video_drvdata(file); skeleton_s_std() local
429 struct skeleton *skel = video_drvdata(file); skeleton_g_std() local
448 struct skeleton *skel = video_drvdata(file); skeleton_querystd() local
476 struct skeleton *skel = video_drvdata(file); skeleton_s_dv_timings() local
515 struct skeleton *skel = video_drvdata(file); skeleton_g_dv_timings() local
528 struct skeleton *skel = video_drvdata(file); skeleton_enum_dv_timings() local
550 struct skeleton *skel = video_drvdata(file); skeleton_query_dv_timings() local
579 struct skeleton *skel = video_drvdata(file); skeleton_dv_timings_cap() local
609 struct skeleton *skel = video_drvdata(file); skeleton_s_input() local
636 struct skeleton *skel = video_drvdata(file); skeleton_g_input() local
744 struct skeleton *skel; skeleton_probe() local
885 struct skeleton *skel = container_of(v4l2_dev, struct skeleton, v4l2_dev); skeleton_remove() local
[all...]
/linux/kernel/bpf/preload/iterators/
H A Diterators.lskel-big-endian.h24 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) in iterators_bpf__detach() argument
62 iterators_bpf__destroy(struct iterators_bpf * skel) iterators_bpf__destroy() argument
75 struct iterators_bpf *skel; iterators_bpf__open() local
88 iterators_bpf__load(struct iterators_bpf * skel) iterators_bpf__load() argument
414 struct iterators_bpf *skel; iterators_bpf__open_and_load() local
[all...]
H A Diterators.lskel-little-endian.h24 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) in iterators_bpf__detach() argument
62 iterators_bpf__destroy(struct iterators_bpf * skel) iterators_bpf__destroy() argument
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...]
/linux/tools/sched_ext/
H A Dscx_qmap.c15 #include "scx_qmap.bpf.skel.h"
57 struct scx_qmap *skel; in main() local
65 skel = SCX_OPS_OPEN(qmap_ops, scx_qmap); in main()
67 skel->rodata->slice_ns = __COMPAT_ENUM_OR_ZERO("scx_public_consts", "SCX_SLICE_DFL"); in main()
72 skel->rodata->slice_ns = strtoull(optarg, NULL, 0) * 1000; in main()
75 skel->bss->test_error_cnt = strtoul(optarg, NULL, 0); in main()
78 skel->rodata->stall_user_nth = strtoul(optarg, NULL, 0); in main()
81 skel->rodata->stall_kernel_nth = strtoul(optarg, NULL, 0); in main()
84 skel->rodata->dsp_inf_loop_after = strtoul(optarg, NULL, 0); in main()
87 skel in main()
[all...]

12345678910>>...14