/linux-6.12.1/tools/testing/selftests/bpf/prog_tests/ |
D | fill_link_info.c | 273 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 …]
|
D | kprobe_multi_test.c | 12 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()
|
D | kprobe_multi_testmod_test.c | 9 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()
|
D | bpf_cookie.c | 71 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()
|
D | uprobe_multi_test.c | 676 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()
|
D | module_attach.c | 108 link = bpf_program__attach(skel->progs.kprobe_multi); in test_module_attach()
|
/linux-6.12.1/tools/bpf/bpftool/ |
D | link.c | 292 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/ |
D | bpf.c | 770 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()
|
D | bpf.h | 409 } kprobe_multi; member
|
D | libbpf.c | 11535 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/ |
D | DENYLIST.aarch64 | 5 module_attach # prog 'kprobe_multi': failed to auto-attach: -95
|
/linux-6.12.1/tools/testing/selftests/bpf/progs/ |
D | test_module_attach.c | 137 int BPF_PROG(kprobe_multi) in BPF_PROG() argument
|
/linux-6.12.1/kernel/trace/ |
D | bpf_trace.c | 2620 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/ |
D | bpf_types.h | 154 BPF_LINK_TYPE(BPF_LINK_TYPE_KPROBE_MULTI, kprobe_multi)
|
/linux-6.12.1/tools/testing/selftests/bpf/benchs/ |
D | bench_trigger.c | 475 BENCH_TRIG_KERNEL(kprobe_multi, "kprobe-multi");
|
/linux-6.12.1/include/uapi/linux/ |
D | bpf.h | 1742 } kprobe_multi; member 6686 } kprobe_multi; member
|
/linux-6.12.1/tools/include/uapi/linux/ |
D | bpf.h | 1742 } kprobe_multi; member 6686 } kprobe_multi; member
|