Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 22 of 22) sorted by relevance

/tools/lib/bpf/
A Delf.c414 unsigned long *offsets; in elf_resolve_syms_offsets() local
422 offsets = calloc(cnt, sizeof(*offsets)); in elf_resolve_syms_offsets()
425 if (!offsets || !symbols) { in elf_resolve_syms_offsets()
459 offset = &offsets[found->idx]; in elf_resolve_syms_offsets()
490 *poffsets = offsets; in elf_resolve_syms_offsets()
495 free(offsets); in elf_resolve_syms_offsets()
509 unsigned long *offsets = NULL; in elf_resolve_pattern_offsets() local
532 err = libbpf_ensure_mem((void **) &offsets, &cap, sizeof(*offsets), in elf_resolve_pattern_offsets()
537 offsets[cnt++] = elf_sym_offset(sym); in elf_resolve_pattern_offsets()
548 *poffsets = offsets; in elf_resolve_pattern_offsets()
[all …]
A Dusdt.c962 unsigned long *offsets = NULL, *ref_ctr_offsets = NULL; in usdt_manager_attach_usdt() local
1016 offsets = calloc(target_cnt, sizeof(*offsets)); in usdt_manager_attach_usdt()
1020 if (!offsets || !ref_ctr_offsets || !cookies) { in usdt_manager_attach_usdt()
1071 offsets[i] = target->rel_ip; in usdt_manager_attach_usdt()
1095 .offsets = offsets, in usdt_manager_attach_usdt()
1109 free(offsets); in usdt_manager_attach_usdt()
1120 free(offsets); in usdt_manager_attach_usdt()
A Dfeatures.c385 link_opts.uprobe_multi.offsets = &offset; in probe_uprobe_multi_link()
415 link_opts.uprobe_multi.offsets = &offset; in probe_uprobe_multi_link()
A Dbpf.h417 const unsigned long *offsets; member
A Dbpf.c784 attr.link_create.uprobe_multi.offsets = ptr_to_u64(OPTS_GET(opts, uprobe_multi.offsets, 0)); in bpf_link_create()
A Dlibbpf.h588 const unsigned long *offsets; member
A Dlibbpf.c12115 const unsigned long *ref_ctr_offsets = NULL, *offsets = NULL; in bpf_program__attach_uprobe_multi() local
12138 offsets = OPTS_GET(opts, offsets, NULL); in bpf_program__attach_uprobe_multi()
12165 if (syms || offsets || ref_ctr_offsets || cookies || cnt) in bpf_program__attach_uprobe_multi()
12168 if (!!syms == !!offsets) in bpf_program__attach_uprobe_multi()
12190 offsets = resolved_offsets; in bpf_program__attach_uprobe_multi()
12195 offsets = resolved_offsets; in bpf_program__attach_uprobe_multi()
12201 lopts.uprobe_multi.offsets = offsets; in bpf_program__attach_uprobe_multi()
/tools/testing/selftests/bpf/progs/
A Dpyperf.h32 OffsetConfig offsets; member
94 frame_ptr + pidData->offsets.PyFrameObject_back); in get_frame_data()
97 frame_ptr + pidData->offsets.PyFrameObject_code); in get_frame_data()
104 frame->f_code + pidData->offsets.PyCodeObject_filename); in get_frame_data()
107 frame->f_code + pidData->offsets.PyCodeObject_name); in get_frame_data()
113 pidData->offsets.String_data); in get_frame_data()
118 pidData->offsets.String_data); in get_frame_data()
264 pidData->offsets.PyThreadState_thread);
279 pidData->offsets.PyThreadState_frame);
/tools/testing/selftests/bpf/prog_tests/
A Duprobe_multi_test.c388 opts.uprobe_multi.offsets = &offset; in test_attach_api_fails()
399 .uprobe_multi.offsets = (unsigned long *) &offset, in test_attach_api_fails()
435 .uprobe_multi.offsets = (unsigned long *) 1, in test_attach_api_fails()
448 .uprobe_multi.offsets = (unsigned long *) &offset, in test_attach_api_fails()
461 .uprobe_multi.offsets = (unsigned long *) &offset, in test_attach_api_fails()
591 unsigned long offsets[3], ref_ctr_offsets[3]; in attach_uprobe_fail_refctr() local
629 opts.uprobe_multi.offsets = (const unsigned long *) &offsets; in attach_uprobe_fail_refctr()
665 unsigned long *offsets = NULL; in __test_link_api() local
679 opts.uprobe_multi.offsets = offsets; in __test_link_api()
733 free(offsets); in __test_link_api()
[all …]
A Dfill_link_info.c424 verify_umulti_link_info(int fd, bool retprobe, __u64 *offsets, in verify_umulti_link_info() argument
457 info.uprobe_multi.offsets = ptr_to_u64(offsets_buf); in verify_umulti_link_info()
478 if (info.uprobe_multi.offsets) in verify_umulti_link_info()
479 ASSERT_EQ(offsets_buf[i], offsets[i], "info.uprobe_multi.offsets"); in verify_umulti_link_info()
522 info.uprobe_multi.offsets = ptr_to_u64(buf); in verify_umulti_invalid_user_buffer()
528 info.uprobe_multi.offsets = ptr_to_u64(buf); in verify_umulti_invalid_user_buffer()
535 info.uprobe_multi.offsets = 123; in verify_umulti_invalid_user_buffer()
562 __u64 *offsets = NULL, *ref_ctr_offsets; in test_uprobe_multi_fill_link_info() local
572 (unsigned long **) &offsets, STT_FUNC); in test_uprobe_multi_fill_link_info()
590 verify_umulti_link_info(link_fd, retprobe, offsets, cookies, ref_ctr_offsets); in test_uprobe_multi_fill_link_info()
[all …]
/tools/bpf/bpftool/
A Dlink.c353 u64_to_arr(info->uprobe_multi.offsets)[i]); in show_uprobe_multi_json()
784 u64_to_arr(info->uprobe_multi.offsets)[i], in show_uprobe_multi_plain()
985 __u64 *ref_ctr_offsets = NULL, *offsets = NULL, *cookies = NULL; in do_show_link() local
1039 !info.uprobe_multi.offsets) { in do_show_link()
1042 offsets = calloc(count, sizeof(__u64)); in do_show_link()
1043 if (!offsets) { in do_show_link()
1048 info.uprobe_multi.offsets = ptr_to_u64(offsets); in do_show_link()
1052 free(offsets); in do_show_link()
1061 free(offsets); in do_show_link()
1108 free(offsets); in do_show_link()
/tools/perf/tests/
A Ddso-data.c61 struct test_data_offset offsets[] = { variable
146 for (i = 0; i < ARRAY_SIZE(offsets); i++) { in test__dso_data()
147 struct test_data_offset *data = &offsets[i]; in test__dso_data()
/tools/testing/selftests/drivers/net/hw/
A Diou-zcrx.c172 rq_ring.khead = (unsigned int *)((char *)ring_ptr + reg.offsets.head); in setup_zcrx()
173 rq_ring.ktail = (unsigned int *)((char *)ring_ptr + reg.offsets.tail); in setup_zcrx()
174 rq_ring.rqes = (struct io_uring_zcrx_rqe *)((char *)ring_ptr + reg.offsets.rqes); in setup_zcrx()
/tools/perf/pmu-events/
A Djevents.py118 offsets: Dict[str, int]
175 self.offsets = {}
183 self.offsets[s] = big_string_offset
195 assert s not in self.offsets
197 self.offsets[s] = self.offsets[folded_s] + c_len(folded_s) - c_len(s)
/tools/gpio/
A Dgpio-utils.c82 req.offsets[i] = lines[i]; in gpiotools_request_line()
/tools/perf/Documentation/
A Dperf-c2c.txt191 2) offsets details for each cacheline
303 User can specify how to sort offsets for cacheline.
306 output fields set for cacheline offsets output:
331 - list of all accessed offsets for each cacheline
A Dperf-config.txt408 Default is '1', meaning just jump targets will have offsets show right beside
409 the instruction. When set to '2' 'call' instructions will also have its offsets
410 shown, 3 or higher will show offsets for all instructions.
A Dperf.data-file-format.txt13 format that does not rely on seeking to adjust data offsets. This
/tools/testing/selftests/gpio/
A Dgpio-mockup-cdev.c29 req.offsets[0] = offset; in request_line_v2()
/tools/mm/
A Dthpmaps108 offsets = vec[:, 0]
113 for offset, length in zip(offsets, lengths):
/tools/testing/selftests/bpf/benchs/
A Dbench_trigger.c380 .offsets = &uprobe_offset, in usetup()
/tools/include/uapi/linux/
A Dbpf.h1801 __aligned_u64 offsets; member
6751 __aligned_u64 offsets; member

Completed in 751 milliseconds