Home
last modified time | relevance | path

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

12345678910>>...16

/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"
7 #include "tracing_struct_int128.skel.h"
8 #include "tracing_struct_int128_tgt.skel.h"
9 #include "tracing_struct_int128_tracer.skel.h" in test_struct_args()
10 #include "tracing_stack_arg_tailcall_tgt.skel.h" in test_struct_args()
11 #include "tracing_stack_arg_tailcall_tracer.skel.h" in test_struct_args() local
15 struct tracing_struct *skel; in test_struct_args()
18 skel = tracing_struct__open_and_load(); in test_struct_args()
19 if (!ASSERT_OK_PTR(skel, "tracing_struct__open_and_loa in test_struct_args()
66 struct tracing_struct_many_args *skel; test_struct_many_args() local
125 struct tracing_struct_int128 *skel; test_int128_args() local
151 struct tracing_struct *skel; test_union_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"
6 #include "kprobe_write_ctx.skel.h"
44 struct test_attach_probe_manual *skel; in test_attach_probe_manual()
47 skel = test_attach_probe_manual__open_and_load(); in test_attach_probe_manual()
48 if (!ASSERT_OK_PTR(skel, "skel_kprobe_manual_open_and_load")) in test_attach_probe_manual()
58 kprobe_link = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in test_attach_probe_manual()
63 skel->links.handle_kprobe = kprobe_link; in test_attach_probe_manual()
66 kretprobe_link = bpf_program__attach_kprobe_opts(skel in test_attach_probe_manual()
43 struct test_attach_probe_manual *skel; test_attach_probe_manual() local
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
295 struct test_attach_probe *skel; test_attach_probe() local
[all...]
H A Dtracing_multi.c7 #include "tracing_multi.skel.h"
8 #include "tracing_multi_module.skel.h"
9 #include "tracing_multi_intersect.skel.h"
10 #include "tracing_multi_session.skel.h"
11 #include "tracing_multi_fail.skel.h"
12 #include "tracing_multi_verifier.skel.h"
13 #include "tracing_multi_bench.skel.h"
14 #include "tracing_multi_rollback.skel.h"
167 static void tracing_multi_test_run(struct tracing_multi *skel) in tracing_multi_test_run() argument
172 prog_fd = bpf_program__fd(skel in tracing_multi_test_run()
183 struct tracing_multi *skel; test_skel_api() local
204 struct tracing_multi *skel; test_link_api_pattern() local
241 struct tracing_multi *skel; test_link_api_ids() local
293 struct tracing_multi_module *skel = NULL; test_module_skel_api() local
316 struct tracing_multi_module *skel = NULL; test_module_link_api_pattern() local
346 struct tracing_multi_module *skel = NULL; test_module_link_api_ids() local
436 struct tracing_multi_intersect *skel; test_intersect() local
469 struct tracing_multi_intersect *skel = NULL; test_fentry_after_multi() local
533 struct tracing_multi_session *skel; test_session() local
578 struct tracing_multi_fail *skel = NULL; test_attach_api_fails() local
668 struct tracing_multi_bench *skel = NULL; serial_test_tracing_multi_bench_attach() local
788 tracing_multi_rollback_run(struct tracing_multi_rollback * skel) tracing_multi_rollback_run() argument
805 struct tracing_multi_rollback *skel = NULL; test_rollback_put() local
866 struct tracing_multi_rollback *skel; extra_load_and_link() local
892 struct tracing_multi_rollback **skels, *skel; fillers_load_and_link() local
924 struct tracing_multi_rollback *skel = NULL, *extra; test_rollback_unlink() 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; serial_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_struct_ops_module.c39 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 = struct_ops_module__open(); in test_struct_ops_load()
66 if (!ASSERT_OK_PTR(skel, "struct_ops_module_open")) in test_struct_ops_load()
69 skel->struct_ops.testmod_1->data = 13; in test_struct_ops_load()
70 skel->struct_ops.testmod_1->test_2 = skel->progs.test_3; in test_struct_ops_load()
74 bpf_program__set_autoload(skel->progs.test_2, false); in test_struct_ops_load()
75 bpf_map__set_autocreate(skel->maps.testmod_zeroed, false); in test_struct_ops_load()
[all …]
H A Dtest_strncmp.c6 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 = strncmp_test__open(); in test_strncmp_ret()
50 if (!ASSERT_OK_PTR(skel, "strncmp_test open")) in test_strncmp_ret()
[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
221 struct cgrp_ls_sleepable *skel; test_yes_rcu_lock() local
249 struct cgrp_ls_sleepable *skel; test_no_rcu_lock() local
267 struct cgrp_ls_sleepable *skel; test_cgrp1_no_rcu_lock() local
[all...]
H A Dbpf_loop.c8 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->bss->g_output, (500 * 499) / 2, "g_output"); in check_nr_loops()
34 skel->bss->nr_loops = -1; in check_nr_loops()
38 ASSERT_EQ(skel->bss->err, -E2BIG, "over max limit"); in check_nr_loops()
43 static void check_callback_fn_stop(struct bpf_loop *skel) in check_callback_fn_stop() argument
[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
410 struct bpf_iter_task_stack *skel; test_task_stack() local
427 struct bpf_iter_task_file *skel; test_task_file() local
475 do_btf_read(struct bpf_iter_task_btf * skel) do_btf_read() argument
515 struct bpf_iter_task_btf *skel; test_task_btf() local
539 struct bpf_iter_tcp4 *skel; test_tcp4() local
552 struct bpf_iter_tcp6 *skel; test_tcp6() local
565 struct bpf_iter_udp4 *skel; test_udp4() local
578 struct bpf_iter_udp6 *skel; test_udp6() local
591 struct bpf_iter_unix *skel; test_unix() local
628 struct bpf_iter_test_kern1 *skel; test_anon_iter() local
722 struct bpf_iter_test_kern4 *skel; test_overflow() local
845 struct bpf_iter_bpf_hash_map *skel; test_bpf_hash_map() local
938 struct bpf_iter_bpf_percpu_hash_map *skel; test_bpf_percpu_hash_map() local
1024 struct bpf_iter_bpf_array_map *skel; test_bpf_array_map() local
1105 struct bpf_iter_bpf_array_map *skel; test_bpf_array_map_iter_fd() local
1120 struct bpf_iter_bpf_percpu_array_map *skel; test_bpf_percpu_array_map() local
1194 struct bpf_iter_bpf_sk_storage_helpers *skel; test_bpf_sk_storage_delete() local
1264 struct bpf_iter_bpf_sk_storage_helpers *skel; test_bpf_sk_storage_get() local
1307 struct bpf_iter_bpf_sk_storage_map *skel; test_bpf_sk_storage_map_iter_fd() local
1323 struct bpf_iter_bpf_sk_storage_map *skel; test_bpf_sk_storage_map() local
1406 struct bpf_iter_test_kern5 *skel; test_rdonly_buf_out_of_bound() local
1427 struct bpf_iter_test_kern6 *skel; test_buf_neg_offset() local
1436 struct bpf_iter_bpf_link *skel; test_link_iter() local
1449 struct bpf_iter_ksym *skel; test_ksym_iter() local
1483 struct bpf_iter_task_vmas *skel; test_task_vma_common() local
1551 struct bpf_iter_task_vmas *skel; test_task_vma_dead_task() local
1622 struct bpf_iter_sockmap *skel; test_bpf_sockmap_map_iter_fd() local
1656 struct bpf_iter_vma_offset *skel; test_task_vma_offset_common() local
[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()
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->bss->test_1_result, 42, "test_1_result"); in check_test_1_link()
54 struct struct_ops_autocreate *skel; in can_load_partial_object() local
57 skel = struct_ops_autocreate__open(); in can_load_partial_object()
[all …]
H A Dkprobe_multi_test.c5 #include "kprobe_multi.skel.h"
7 #include "kprobe_multi_empty.skel.h"
8 #include "kprobe_multi_override.skel.h"
9 #include "kprobe_multi_session.skel.h"
10 #include "kprobe_multi_session_cookie.skel.h"
11 #include "kprobe_multi_verifier.skel.h"
12 #include "kprobe_write_ctx.skel.h"
13 #include "kprobe_multi_sleepable.skel.h"
17 static void kprobe_multi_test_run(struct kprobe_multi *skel, bool test_return) in kprobe_multi_test_run() argument
22 prog_fd = bpf_program__fd(skel in kprobe_multi_test_run()
50 struct kprobe_multi *skel = NULL; test_skel_api() local
71 struct kprobe_multi *skel = NULL; test_link_api() local
147 struct kprobe_multi *skel = NULL; test_attach_api() local
225 struct kprobe_multi *skel = NULL; test_attach_api_fails() local
394 struct kprobe_multi_session *skel = NULL; test_session_skel_api() local
435 struct kprobe_multi_session_cookie *skel = NULL; test_session_cookie_skel_api() local
468 struct kprobe_multi *skel = NULL; test_unique_match() local
490 do_bench_test(struct kprobe_multi_empty * skel,struct bpf_kprobe_multi_opts * opts) do_bench_test() argument
520 struct kprobe_multi_empty *skel = NULL; test_kprobe_multi_bench_attach() local
543 struct kprobe_multi_empty *skel = NULL; test_kprobe_multi_bench_attach_addr() local
573 struct kprobe_multi_override *skel = NULL; test_attach_override() local
607 struct kprobe_multi_override *skel = NULL; test_override() local
648 struct kprobe_write_ctx *skel = NULL; test_attach_write_ctx() local
679 struct kprobe_multi *skel = NULL; test_attach_probe_dup_sym() local
[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()
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->progs.non_sleepable_2, true); in test_success()
31 bpf_program__set_autoload(skel->progs.nested_rcu_region, true); in test_success()
[all …]
H A Dtc_links.c11 #include "test_tc_link.skel.h"
22 struct test_tc_link *skel; in serial_test_tc_links_basic() local
26 skel = test_tc_link__open_and_load(); in serial_test_tc_links_basic()
27 if (!ASSERT_OK_PTR(skel, "skel_load")) in serial_test_tc_links_basic()
30 pid1 = id_from_prog_fd(bpf_program__fd(skel->progs.tc1)); in serial_test_tc_links_basic()
31 pid2 = id_from_prog_fd(bpf_program__fd(skel->progs.tc2)); in serial_test_tc_links_basic()
38 ASSERT_EQ(skel->bss->seen_tc1, false, "seen_tc1"); in serial_test_tc_links_basic()
39 ASSERT_EQ(skel->bss->seen_tc2, false, "seen_tc2"); in serial_test_tc_links_basic()
41 link = bpf_program__attach_tcx(skel->progs.tc1, loopback, &optl); in serial_test_tc_links_basic()
45 skel in serial_test_tc_links_basic()
122 struct test_tc_link *skel; test_tc_links_before_target() local
276 struct test_tc_link *skel; test_tc_links_after_target() local
429 struct test_tc_link *skel; test_tc_links_revision_target() local
530 struct test_tc_link *skel; test_tc_chain_classic() local
635 struct test_tc_link *skel; test_tc_links_replace_target() local
860 struct test_tc_link *skel; test_tc_links_invalid_target() local
1174 struct test_tc_link *skel; test_tc_links_prepend_target() local
1330 struct test_tc_link *skel; test_tc_links_append_target() local
1484 struct test_tc_link *skel; test_tc_links_dev_cleanup_target() local
1582 struct test_tc_link *skel; test_tc_chain_mixed() local
1696 struct test_tc_link *skel; test_tc_links_ingress() local
1857 struct test_tc_link *skel; test_tc_links_dev_mixed() local
[all...]
H A Dmap_ops.c46 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 && *skel) in teardown()
73 test_map_ops__destroy(*skel); in teardown()
[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 Dbpf_cookie.c13 #include "test_bpf_cookie.skel.h"
14 #include "kprobe_multi.skel.h"
15 #include "uprobe_multi.skel.h"
23 static void kprobe_subtest(struct test_bpf_cookie *skel) in kprobe_subtest()
32 link1 = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in kprobe_subtest()
39 link2 = bpf_program__attach_kprobe_opts(skel->progs.handle_kprobe, in kprobe_subtest()
47 retlink1 = bpf_program__attach_kprobe_opts(skel->progs.handle_kretprobe, in kprobe_subtest()
54 retlink2 = bpf_program__attach_kprobe_opts(skel->progs.handle_kretprobe, in kprobe_subtest()
62 ASSERT_EQ(skel->bss->kprobe_res, 0x1 | 0x2, "kprobe_res"); in kprobe_subtest()
63 ASSERT_EQ(skel in kprobe_subtest()
22 kprobe_subtest(struct test_bpf_cookie * skel) kprobe_subtest() argument
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 Dfind_vma.c10 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->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()
41 static bool find_vma_pe_condition(struct find_vma *skel) in find_vma_pe_condition() argument
[all …]
H A Duprobe_multi_test.c7 #include "uprobe_multi.skel.h"
8 #include "uprobe_multi_bench.skel.h"
9 #include "uprobe_multi_usdt.skel.h"
10 #include "uprobe_multi_consumers.skel.h"
11 #include "uprobe_multi_pid_filter.skel.h"
12 #include "uprobe_multi_session.skel.h"
13 #include "uprobe_multi_session_single.skel.h"
14 #include "uprobe_multi_session_cookie.skel.h"
15 #include "uprobe_multi_session_recursive.skel.h"
16 #include "uprobe_multi_verifier.skel
196 uprobe_multi_test_run(struct uprobe_multi * skel,struct child * child) uprobe_multi_test_run() argument
251 struct uprobe_multi *skel = NULL; test_skel_api() local
273 struct uprobe_multi *skel = NULL; __test_attach_api() local
380 struct uprobe_multi *skel = NULL; test_attach_api_fails() local
566 attach_uprobe_fail_trap(struct uprobe_multi * skel) attach_uprobe_fail_trap() argument
587 attach_uprobe_fail_trap(struct uprobe_multi * skel) attach_uprobe_fail_trap() argument
592 attach_uprobe_fail_refctr(struct uprobe_multi * skel) attach_uprobe_fail_refctr() argument
648 struct uprobe_multi *skel = NULL; test_attach_uprobe_fails() local
668 struct uprobe_multi *skel = NULL; __test_link_api() local
761 get_program(struct uprobe_multi_consumers * skel,int prog) get_program() argument
779 get_link(struct uprobe_multi_consumers * skel,int link) get_link() argument
796 uprobe_attach(struct uprobe_multi_consumers * skel,int idx,unsigned long offset) uprobe_attach() argument
823 uprobe_detach(struct uprobe_multi_consumers * skel,int idx) uprobe_detach() argument
837 uprobe_consumer_test(struct uprobe_multi_consumers * skel,unsigned long before,unsigned long after,unsigned long offset) uprobe_consumer_test() argument
886 consumer_test(struct uprobe_multi_consumers * skel,unsigned long before,unsigned long after,test_t test,unsigned long offset) consumer_test() argument
981 struct uprobe_multi_consumers *skel; consumer_thread() local
1061 uprobe_multi_program(struct uprobe_multi_pid_filter * skel,int idx) uprobe_multi_program() argument
1073 run_pid_filter(struct uprobe_multi_pid_filter * skel,bool clone_vm,bool retprobe) run_pid_filter() argument
1113 struct uprobe_multi_pid_filter *skel; test_pid_filter_process() local
1127 struct uprobe_multi_session *skel = NULL; test_session_skel_api() local
1171 struct uprobe_multi_session_single *skel = NULL; test_session_single_skel_api() local
1201 struct uprobe_multi_session_cookie *skel = NULL; test_session_cookie_skel_api() local
1229 struct uprobe_multi_session_recursive *skel = NULL; test_session_recursive_skel_api() local
1278 struct uprobe_multi_bench *skel = NULL; test_bench_attach_uprobe() local
1314 struct uprobe_multi_usdt *skel = NULL; test_bench_attach_usdt() local
[all...]
H A Dcgroup1_hierarchy.c10 static void bpf_cgroup1(struct test_cgroup1_hierarchy *skel) in bpf_cgroup1() argument
16 lsm_link = bpf_program__attach_lsm(skel->progs.lsm_run); in bpf_cgroup1()
21 fentry_link = bpf_program__attach_trace(skel->progs.fentry_run); in bpf_cgroup1()
28 static void bpf_cgroup1_sleepable(struct test_cgroup1_hierarchy *skel) in bpf_cgroup1_sleepable() argument
34 lsm_link = bpf_program__attach_lsm(skel->progs.lsm_s_run); in bpf_cgroup1_sleepable()
39 fentry_link = bpf_program__attach_trace(skel->progs.fentry_run); in bpf_cgroup1_sleepable()
46 static void bpf_cgroup1_invalid_id(struct test_cgroup1_hierarchy *skel) in bpf_cgroup1_invalid_id() argument
52 lsm_link = bpf_program__attach_lsm(skel->progs.lsm_run); in bpf_cgroup1_invalid_id()
57 fentry_link = bpf_program__attach_trace(skel->progs.fentry_run); in bpf_cgroup1_invalid_id()
71 struct test_cgroup1_hierarchy *skel; in test_cgroup1_hierarchy() local
[all …]
H A Dbtf_tag.c17 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; in test_btf_type_tag() local
35 skel = btf_type_tag__open_and_load(); in test_btf_type_tag()
36 if (!ASSERT_OK_PTR(skel, "btf_type_tag")) in test_btf_type_tag()
39 if (skel->rodata->skip_tests) { in test_btf_type_tag()
44 btf_type_tag__destroy(skel); in test_btf_type_tag()
[all …]
H A Dglobal_map_resize.c22 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()
28 skel = test_global_map_resize__open(); in global_map_resize_bss_subtest()
29 if (!ASSERT_OK_PTR(skel, "test_global_map_resize__open")) in global_map_resize_bss_subtest()
36 skel->bss->array[0] = 1; in global_map_resize_bss_subtest()
39 map = skel->maps.bss; in global_map_resize_bss_subtest()
46 new_sz = sizeof(skel->data_percpu_arr->percpu_arr[0]) * libbpf_num_possible_cpus(); in global_map_resize_bss_subtest()
47 err = bpf_map__set_value_size(skel->maps.data_percpu_arr, new_sz); in global_map_resize_bss_subtest()
51 array_len = (desired_sz - sizeof(skel->bss->sum)) / sizeof(skel->bss->array[0]); in global_map_resize_bss_subtest()
55 skel->bss = bpf_map__initial_value(skel->maps.bss, &actual_sz); in global_map_resize_bss_subtest()
[all …]
/linux/tools/sched_ext/include/scx/
H A Denums.autogen.h8 #define SCX_ENUM_INIT(skel) do { \
9 SCX_ENUM_SET(skel, scx_public_consts, SCX_OPS_NAME_LEN); \
10 SCX_ENUM_SET(skel, scx_public_consts, SCX_SLICE_DFL); \
11 SCX_ENUM_SET(skel, scx_public_consts, SCX_SLICE_INF); \
12 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_ONLINE); \
13 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_CAN_STOP_TICK); \
14 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_BAL_PENDING); \
15 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_BAL_KEEP); \
16 SCX_ENUM_SET(skel, scx_rq_flags, SCX_RQ_BYPASSING); \
17 SCX_ENUM_SET(skel, scx_rq_flag
7 SCX_ENUM_INIT(skel) global() argument
[all...]
/linux/kernel/bpf/preload/iterators/
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
[all …]
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
[all …]

12345678910>>...16