Home
last modified time | relevance | path

Searched refs:ref_ctr_offsets (Results 1 – 8 of 8) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dfill_link_info.c660 __u64 *cookies, __u64 *ref_ctr_offsets) in verify_umulti_link_info() argument
696 info.uprobe_multi.ref_ctr_offsets = ptr_to_u64(ref_ctr_offsets_buf); in verify_umulti_link_info()
717 if (info.uprobe_multi.ref_ctr_offsets) { in verify_umulti_link_info()
718 ASSERT_EQ(ref_ctr_offsets_buf[i], ref_ctr_offsets[i], in verify_umulti_link_info()
797 __u64 *offsets = NULL, *ref_ctr_offsets; in test_uprobe_multi_fill_link_info() local
802 (unsigned long **) &ref_ctr_offsets, STT_OBJECT); in test_uprobe_multi_fill_link_info()
813 opts.ref_ctr_offsets = (unsigned long *) &ref_ctr_offsets[0]; in test_uprobe_multi_fill_link_info()
825 verify_umulti_link_info(link_fd, retprobe, offsets, cookies, ref_ctr_offsets); in test_uprobe_multi_fill_link_info()
829 free(ref_ctr_offsets); in test_uprobe_multi_fill_link_info()
H A Duprobe_multi_test.c503 /* wrong ref_ctr_offsets pointer */ in test_attach_api_fails()
508 .uprobe_multi.ref_ctr_offsets = (unsigned long *) 1, in test_attach_api_fails()
626 unsigned long offsets[3], ref_ctr_offsets[3]; in attach_uprobe_fail_refctr()
659 ref_ctr_offsets[0] = tmp_ref_ctr_offsets[0]; /* sema_1 */ in test_attach_uprobe_fails()
660 ref_ctr_offsets[1] = tmp_ref_ctr_offsets[1]; /* sema_2 */ in test_attach_uprobe_fails()
661 ref_ctr_offsets[2] = tmp_ref_ctr_offsets[0]; /* sema_1, error */ in test_attach_uprobe_fails()
665 opts.uprobe_multi.ref_ctr_offsets = (const unsigned long *) &ref_ctr_offsets; in __test_link_api()
595 unsigned long offsets[3], ref_ctr_offsets[3]; attach_uprobe_fail_refctr() local
/linux/tools/bpf/bpftool/
H A Dlink.c417 u64_to_arr(info->uprobe_multi.ref_ctr_offsets)[i]); in show_uprobe_multi_json()
899 u64_to_arr(info->uprobe_multi.ref_ctr_offsets)[i], in show_uprobe_multi_plain()
1142 __u64 *ref_ctr_offsets = NULL, *offsets = NULL, *cookies = NULL; in do_show_link() local
1207 ref_ctr_offsets = calloc(count, sizeof(__u64)); in do_show_link()
1208 if (!ref_ctr_offsets) { in do_show_link()
1214 info.uprobe_multi.ref_ctr_offsets = ptr_to_u64(ref_ctr_offsets); in do_show_link()
1218 free(ref_ctr_offsets); in do_show_link()
1284 free(ref_ctr_offsets); in do_show_link()
/linux/tools/lib/bpf/
H A Dusdt.c1021 unsigned long *offsets = NULL, *ref_ctr_offsets = NULL; in usdt_manager_attach_usdt() local
1077 ref_ctr_offsets = calloc(target_cnt, sizeof(*ref_ctr_offsets)); in usdt_manager_attach_usdt()
1079 if (!offsets || !ref_ctr_offsets || !cookies) { in usdt_manager_attach_usdt()
1131 ref_ctr_offsets[i] = target->sema_off; in usdt_manager_attach_usdt()
1153 .ref_ctr_offsets = ref_ctr_offsets, in usdt_manager_attach_usdt()
1169 free(ref_ctr_offsets); in usdt_manager_attach_usdt()
1180 free(ref_ctr_offsets); in usdt_manager_attach_usdt()
H A Dlibbpf.c13074 const unsigned long *ref_ctr_offsets = NULL, *offsets = NULL; in bpf_program__attach_uprobe_multi() local
13098 ref_ctr_offsets = OPTS_GET(opts, ref_ctr_offsets, NULL); in bpf_program__attach_uprobe_multi()
13124 if (syms || offsets || ref_ctr_offsets || cookies || cnt) in bpf_program__attach_uprobe_multi()
13161 lopts.uprobe_multi.ref_ctr_offsets = ref_ctr_offsets; in bpf_program__attach_uprobe_multi()
/linux/tools/include/uapi/linux/
H A Dbpf.h1866 __aligned_u64 ref_ctr_offsets; member
6910 __aligned_u64 ref_ctr_offsets; member
/linux/include/uapi/linux/
H A Dbpf.h1866 __aligned_u64 ref_ctr_offsets; member
6910 __aligned_u64 ref_ctr_offsets; member
/linux/kernel/trace/
H A Dbpf_trace.c3011 u64 __user *uref_ctr_offsets = u64_to_user_ptr(info->uprobe_multi.ref_ctr_offsets); in bpf_uprobe_multi_link_fill_link_info()
3293 uref_ctr_offsets = u64_to_user_ptr(attr->link_create.uprobe_multi.ref_ctr_offsets); in bpf_uprobe_multi_link_attach()