Home
last modified time | relevance | path

Searched refs:ref_ctr_offset (Results 1 – 16 of 16) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dattach_probe.c75 uprobe_opts.ref_ctr_offset = 0; in test_attach_probe_manual()
98 uprobe_opts.ref_ctr_offset = 0; in test_attach_probe_manual()
282 uprobe_opts.ref_ctr_offset = 0; in test_uprobe_sleepable()
500 ssize_t uprobe_offset, ref_ctr_offset;
506 ref_ctr_offset = get_rel_offset((uintptr_t)&uprobe_ref_ctr);
507 if (!ASSERT_GE(ref_ctr_offset, 0, "ref_ctr_offset"))
513 uprobe_opts.ref_ctr_offset = ref_ctr_offset;
527 uprobe_opts.ref_ctr_offset
199 ssize_t uprobe_offset, ref_ctr_offset; test_uprobe_ref_ctr() local
[all...]
H A Dfill_link_info.c57 ssize_t ref_ctr_offset = entry_offset /* ref_ctr_offset for uprobes */; in verify_perf_link_info() local
118 ASSERT_EQ(info.perf_event.uprobe.ref_ctr_offset, ref_ctr_offset, "uprobe_ref_ctr_offset"); in verify_perf_link_info()
266 __u64 *ref_ctr_offset; in test_uprobe_fill_link_info() local
271 (unsigned long **) &ref_ctr_offset, STT_OBJECT); in test_uprobe_fill_link_info()
275 opts.ref_ctr_offset = *ref_ctr_offset; in test_uprobe_fill_link_info()
284 err = verify_perf_link_info(link_fd, type, 0, uprobe_offset, *ref_ctr_offset); in test_uprobe_fill_link_info()
288 free(ref_ctr_offset); in test_uprobe_fill_link_info()
H A Duprobe_syscall.c849 opts.ref_ctr_offset = *ref;
/linux/kernel/trace/
H A Dtrace_uprobe.c67 unsigned long ref_ctr_offset; member
294 if (tu->ref_ctr_offset == 0) in trace_uprobe_match_command_head()
300 tu->ref_ctr_offset); in trace_uprobe_match_command_head()
489 new->ref_ctr_offset != tmp->ref_ctr_offset) { in validate_ref_ctr_offset()
549 unsigned long offset, ref_ctr_offset; in DEFINE_FREE() local
558 ref_ctr_offset = 0; in DEFINE_FREE()
626 ret = kstrtoul(rctr, 0, &ref_ctr_offset); in DEFINE_FREE()
696 tu->ref_ctr_offset = ref_ctr_offset; in DEFINE_FREE()
761 if (tu->ref_ctr_offset) in trace_uprobe_show()
762 seq_printf(m, "(0x%lx)", tu->ref_ctr_offset); in trace_uprobe_show()
[all …]
H A Dtrace_probe.h535 unsigned long ref_ctr_offset, bool is_return);
H A Dbpf_trace.c2956 unsigned long ref_ctr_offset; member
3065 put_user(umulti_link->uprobes[i].ref_ctr_offset, uref_ctr_offsets + i)) in bpf_uprobe_multi_link_fill_link_info()
3109 umulti_link->uprobes[i].ref_ctr_offset); in bpf_uprobe_multi_show_fdinfo()
3342 if (uref_ctr_offsets && __get_user(uprobes[i].ref_ctr_offset, uref_ctr_offsets + i)) { in bpf_uprobe_multi_link_attach()
3375 uprobes[i].ref_ctr_offset, in bpf_uprobe_multi_link_attach()
/linux/kernel/events/
H A Duprobes.c75 loff_t ref_ctr_offset; member
284 unsigned long vaddr = offset_to_vaddr(vma, uprobe->ref_ctr_offset); in valid_ref_ctr_vma()
286 return uprobe->ref_ctr_offset && in valid_ref_ctr_vma()
353 (unsigned long long) uprobe->ref_ctr_offset, mm); in update_ref_ctr_warn()
366 rc_vaddr = offset_to_vaddr(rc_vma, uprobe->ref_ctr_offset); in update_ref_ctr()
543 if (do_update_ref_ctr && !ref_ctr_updated && uprobe->ref_ctr_offset) { in uprobe_write()
991 (unsigned long long) cur_uprobe->ref_ctr_offset, in ref_ctr_mismatch_warn()
992 (unsigned long long) uprobe->ref_ctr_offset); in ref_ctr_mismatch_warn()
996 loff_t ref_ctr_offset) in alloc_uprobe() argument
1006 uprobe->ref_ctr_offset = ref_ctr_offset; in alloc_uprobe()
[all …]
H A Dcore.c11587 PMU_FORMAT_ATTR(ref_ctr_offset, "config:32-63");
11620 unsigned long ref_ctr_offset; in perf_kprobe_event_init()
11636 ref_ctr_offset = event->attr.config >> PERF_UPROBE_REF_CTR_OFFSET_SHIFT;
11637 err = perf_uprobe_init(event, ref_ctr_offset, is_retprobe);
11660 unsigned long ref_ctr_offset; perf_uprobe_event_init() local
/linux/tools/perf/util/
H A Dprobe-file.c815 unsigned long long ref_ctr_offset; in synthesize_sdt_probe_command()
826 ref_ctr_offset = sdt_note__get_ref_ctr_offset(note); in synthesize_sdt_probe_command()
827 if (ref_ctr_offset && err >= 0) in synthesize_sdt_probe_command()
828 err = strbuf_addf(&buf, "(0x%llx)", ref_ctr_offset); in synthesize_sdt_probe_command()
1106 DEFINE_TYPE(FTRACE_README_UPROBE_REF_CTR, "*ref_ctr_offset*"),
813 unsigned long long ref_ctr_offset; synthesize_sdt_probe_command() local
H A Dprobe-event.c1998 tp->ref_ctr_offset = strtoul(fmt2_str + 1, NULL, 0); in parse_probe_trace_command()
2232 if (err >= 0 && tp->ref_ctr_offset) { in synthesize_uprobe_trace_def()
2235 err = strbuf_addf(buf, "(0x%lx)", tp->ref_ctr_offset); in synthesize_uprobe_trace_def()
2872 if (tp->ref_ctr_offset && !uprobe_ref_ctr_is_supported()) { in warn_uprobe_event_compat()
/linux/tools/bpf/bpftool/
H A Dlink.c491 jsonw_uint_field(wtr, "ref_ctr_offset", info->perf_event.uprobe.ref_ctr_offset); in show_perf_event_uprobe_json()
983 if (info->perf_event.uprobe.ref_ctr_offset) in show_perf_event_uprobe_plain()
984 printf("ref_ctr_offset 0x%llx ", info->perf_event.uprobe.ref_ctr_offset); in show_perf_event_uprobe_plain()
/linux/kernel/bpf/
H A Dsyscall.c4072 u64 ref_ctr_offset, offset; in bpf_perf_link_fill_uprobe()
4079 err = bpf_perf_link_fill_common(event, uname, &ulen, &offset, &ref_ctr_offset, in bpf_perf_link_fdinfo_uprobe()
4091 info->perf_event.uprobe.ref_ctr_offset = ref_ctr_offset; in bpf_perf_link_fdinfo_uprobe()
4101 u64 offset, ref_ctr_offset; in bpf_perf_link_fdinfo_uprobe()
4105 &offset, &ref_ctr_offset, &missed); in bpf_perf_link_fill_probe()
4112 "ref_ctr_offset:\t%#llx\n" in bpf_perf_link_fill_probe()
4115 name, offset, ref_ctr_offset, in bpf_perf_link_fill_probe()
4055 u64 ref_ctr_offset, offset; bpf_perf_link_fill_uprobe() local
4084 u64 offset, ref_ctr_offset; bpf_perf_link_fdinfo_uprobe() local
/linux/tools/lib/bpf/
H A Dusdt.c1134 opts.ref_ctr_offset = target->sema_off; in usdt_manager_attach_usdt()
H A Dlibbpf.c13223 ref_ctr_off = OPTS_GET(opts, ref_ctr_offset, 0); in bpf_program__attach_uprobe_opts()
/linux/tools/include/uapi/linux/
H A Dbpf.h6935 __u64 ref_ctr_offset; member
/linux/include/uapi/linux/
H A Dbpf.h6935 __u64 ref_ctr_offset; member