Home
last modified time | relevance | path

Searched refs:kprobe_multi (Results 1 – 17 of 17) sorted by relevance

/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/
Dfill_link_info.c273 ASSERT_EQ(info.kprobe_multi.count, KMULTI_CNT, "func_cnt"); in verify_kmulti_link_info()
274 flags = info.kprobe_multi.flags & BPF_F_KPROBE_MULTI_RETURN; in verify_kmulti_link_info()
280 if (!info.kprobe_multi.addrs) { in verify_kmulti_link_info()
281 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_link_info()
282 info.kprobe_multi.cookies = ptr_to_u64(cookies); in verify_kmulti_link_info()
302 info.kprobe_multi.count = KMULTI_CNT; in verify_kmulti_invalid_user_buffer()
306 info.kprobe_multi.addrs = ptr_to_u64(addrs); in verify_kmulti_invalid_user_buffer()
307 info.kprobe_multi.count = 0; in verify_kmulti_invalid_user_buffer()
313 info.kprobe_multi.count = KMULTI_CNT - 1; in verify_kmulti_invalid_user_buffer()
322 info.kprobe_multi.count = KMULTI_CNT + 1; in verify_kmulti_invalid_user_buffer()
[all …]
Dkprobe_multi_test.c12 static void kprobe_multi_test_run(struct kprobe_multi *skel, bool test_return) in kprobe_multi_test_run()
45 struct kprobe_multi *skel = NULL; in test_skel_api()
66 struct kprobe_multi *skel = NULL; in test_link_api()
78 opts->kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN; in test_link_api()
114 opts.kprobe_multi.addrs = (const unsigned long*) addrs; in test_link_api_addrs()
115 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in test_link_api_addrs()
133 opts.kprobe_multi.syms = syms; in test_link_api_syms()
134 opts.kprobe_multi.cnt = ARRAY_SIZE(syms); in test_link_api_syms()
142 struct kprobe_multi *skel = NULL; in test_attach_api()
219 struct kprobe_multi *skel = NULL; in test_attach_api_fails()
Dkprobe_multi_testmod_test.c9 static void kprobe_multi_testmod_check(struct kprobe_multi *skel) in kprobe_multi_testmod_check()
22 struct kprobe_multi *skel = NULL; in test_testmod_attach_api()
Dbpf_cookie.c71 static void kprobe_multi_test_run(struct kprobe_multi *skel) in kprobe_multi_test_run()
103 struct kprobe_multi *skel = NULL; in kprobe_multi_link_api_subtest()
144 opts.kprobe_multi.addrs = (const unsigned long *) &addrs; in kprobe_multi_link_api_subtest()
145 opts.kprobe_multi.cnt = ARRAY_SIZE(addrs); in kprobe_multi_link_api_subtest()
146 opts.kprobe_multi.cookies = (const __u64 *) &cookies; in kprobe_multi_link_api_subtest()
162 opts.kprobe_multi.flags = BPF_F_KPROBE_MULTI_RETURN; in kprobe_multi_link_api_subtest()
182 struct kprobe_multi *skel = NULL; in kprobe_multi_attach_api_subtest()
Duprobe_multi_test.c676 opts.kprobe_multi.flags = 0; in __test_link_api()
682 opts.kprobe_multi.flags = BPF_F_UPROBE_MULTI_RETURN; in __test_link_api()
688 opts.kprobe_multi.flags = 0; in __test_link_api()
694 opts.kprobe_multi.flags = BPF_F_UPROBE_MULTI_RETURN; in __test_link_api()
700 opts.kprobe_multi.flags = 0; in __test_link_api()
Dmodule_attach.c108 link = bpf_program__attach(skel->progs.kprobe_multi); in test_module_attach()
/linux-6.12.1/tools/bpf/bpftool/
Dlink.c292 info->kprobe_multi.flags & BPF_F_KPROBE_MULTI_RETURN); in show_kprobe_multi_json()
293 jsonw_uint_field(json_wtr, "func_cnt", info->kprobe_multi.count); in show_kprobe_multi_json()
294 jsonw_uint_field(json_wtr, "missed", info->kprobe_multi.missed); in show_kprobe_multi_json()
297 data = get_addr_cookie_array(u64_to_ptr(info->kprobe_multi.addrs), in show_kprobe_multi_json()
298 u64_to_ptr(info->kprobe_multi.cookies), in show_kprobe_multi_json()
299 info->kprobe_multi.count); in show_kprobe_multi_json()
324 if (j++ == info->kprobe_multi.count) in show_kprobe_multi_json()
720 if (!info->kprobe_multi.count) in show_kprobe_multi_plain()
723 if (info->kprobe_multi.flags & BPF_F_KPROBE_MULTI_RETURN) in show_kprobe_multi_plain()
727 printf("func_cnt %u ", info->kprobe_multi.count); in show_kprobe_multi_plain()
[all …]
/linux-6.12.1/tools/lib/bpf/
Dbpf.c770 attr.link_create.kprobe_multi.flags = OPTS_GET(opts, kprobe_multi.flags, 0); in bpf_link_create()
771 attr.link_create.kprobe_multi.cnt = OPTS_GET(opts, kprobe_multi.cnt, 0); in bpf_link_create()
772 attr.link_create.kprobe_multi.syms = ptr_to_u64(OPTS_GET(opts, kprobe_multi.syms, 0)); in bpf_link_create()
773 attr.link_create.kprobe_multi.addrs = ptr_to_u64(OPTS_GET(opts, kprobe_multi.addrs, 0)); in bpf_link_create()
774 attr.link_create.kprobe_multi.cookies = ptr_to_u64(OPTS_GET(opts, kprobe_multi.cookies, 0)); in bpf_link_create()
775 if (!OPTS_ZEROED(opts, kprobe_multi)) in bpf_link_create()
Dbpf.h409 } kprobe_multi; member
Dlibbpf.c11535 lopts.kprobe_multi.syms = syms; in bpf_program__attach_kprobe_multi_opts()
11536 lopts.kprobe_multi.addrs = addrs; in bpf_program__attach_kprobe_multi_opts()
11537 lopts.kprobe_multi.cookies = cookies; in bpf_program__attach_kprobe_multi_opts()
11538 lopts.kprobe_multi.cnt = cnt; in bpf_program__attach_kprobe_multi_opts()
11539 lopts.kprobe_multi.flags = retprobe ? BPF_F_KPROBE_MULTI_RETURN : 0; in bpf_program__attach_kprobe_multi_opts()
/linux-6.12.1/tools/testing/selftests/bpf/
DDENYLIST.aarch645 module_attach # prog 'kprobe_multi': failed to auto-attach: -95
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_module_attach.c137 int BPF_PROG(kprobe_multi) in BPF_PROG() argument
/linux-6.12.1/kernel/trace/
Dbpf_trace.c2620 u64 __user *ucookies = u64_to_user_ptr(info->kprobe_multi.cookies); in bpf_kprobe_multi_link_fill_link_info()
2621 u64 __user *uaddrs = u64_to_user_ptr(info->kprobe_multi.addrs); in bpf_kprobe_multi_link_fill_link_info()
2623 u32 ucount = info->kprobe_multi.count; in bpf_kprobe_multi_link_fill_link_info()
2632 info->kprobe_multi.count = kmulti_link->cnt; in bpf_kprobe_multi_link_fill_link_info()
2633 info->kprobe_multi.flags = kmulti_link->flags; in bpf_kprobe_multi_link_fill_link_info()
2634 info->kprobe_multi.missed = kmulti_link->fp.nmissed; in bpf_kprobe_multi_link_fill_link_info()
2925 flags = attr->link_create.kprobe_multi.flags; in bpf_kprobe_multi_link_attach()
2929 uaddrs = u64_to_user_ptr(attr->link_create.kprobe_multi.addrs); in bpf_kprobe_multi_link_attach()
2930 usyms = u64_to_user_ptr(attr->link_create.kprobe_multi.syms); in bpf_kprobe_multi_link_attach()
2934 cnt = attr->link_create.kprobe_multi.cnt; in bpf_kprobe_multi_link_attach()
[all …]
/linux-6.12.1/include/linux/
Dbpf_types.h154 BPF_LINK_TYPE(BPF_LINK_TYPE_KPROBE_MULTI, kprobe_multi)
/linux-6.12.1/tools/testing/selftests/bpf/benchs/
Dbench_trigger.c475 BENCH_TRIG_KERNEL(kprobe_multi, "kprobe-multi");
/linux-6.12.1/include/uapi/linux/
Dbpf.h1742 } kprobe_multi; member
6686 } kprobe_multi; member
/linux-6.12.1/tools/include/uapi/linux/
Dbpf.h1742 } kprobe_multi; member
6686 } kprobe_multi; member