Home
last modified time | relevance | path

Searched refs:pev (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/tools/perf/util/
Dprobe-event.c423 struct perf_probe_event *pev, in get_alternative_probe_event() argument
428 memcpy(tmp, &pev->point, sizeof(*tmp)); in get_alternative_probe_event()
429 memset(&pev->point, 0, sizeof(pev->point)); in get_alternative_probe_event()
430 ret = find_alternative_probe_point(dinfo, tmp, &pev->point, pev->target, in get_alternative_probe_event()
431 pev->nsi, pev->uprobes); in get_alternative_probe_event()
433 memcpy(&pev->point, tmp, sizeof(*tmp)); in get_alternative_probe_event()
869 arch__post_process_probe_trace_events(struct perf_probe_event *pev __maybe_unused, in arch__post_process_probe_trace_events()
875 static int post_process_probe_trace_events(struct perf_probe_event *pev, in post_process_probe_trace_events() argument
884 pev->nsi); in post_process_probe_trace_events()
893 arch__post_process_probe_trace_events(pev, ntevs); in post_process_probe_trace_events()
[all …]
Dbpf-loader.c70 struct perf_probe_event pev; member
283 struct perf_probe_event *pev; in close_prologue_programs() local
288 pev = &priv->pev; in close_prologue_programs()
289 for (i = 0; i < pev->ntevs; i++) { in close_prologue_programs()
303 cleanup_perf_probe_events(&priv->pev, 1); in clear_prog_priv()
379 prog_config__exec(const char *value, struct perf_probe_event *pev) in prog_config__exec() argument
381 pev->uprobes = true; in prog_config__exec()
382 pev->target = strdup(value); in prog_config__exec()
383 if (!pev->target) in prog_config__exec()
389 prog_config__module(const char *value, struct perf_probe_event *pev) in prog_config__module() argument
[all …]
Dprobe-file.c395 clear_perf_probe_event(&entry->pev); in probe_cache_entry__delete()
402 probe_cache_entry__new(struct perf_probe_event *pev) in probe_cache_entry__new() argument
411 else if (pev) { in probe_cache_entry__new()
412 entry->spev = synthesize_perf_probe_command(pev); in probe_cache_entry__new()
414 perf_probe_event__copy(&entry->pev, pev) < 0) { in probe_cache_entry__new()
544 &entry->pev); in probe_cache__load()
640 probe_cache__find(struct probe_cache *pcache, struct perf_probe_event *pev) in probe_cache__find() argument
643 char *cmd = synthesize_perf_probe_command(pev); in probe_cache__find()
649 if (pev->sdt) { in probe_cache__find()
650 if (entry->pev.event && in probe_cache__find()
[all …]
Dprobe-event.h133 int parse_perf_probe_command(const char *cmd, struct perf_probe_event *pev);
137 char *synthesize_perf_probe_command(struct perf_probe_event *pev);
145 bool perf_probe_with_var(struct perf_probe_event *pev);
148 bool perf_probe_event_need_dwarf(struct perf_probe_event *pev);
151 void clear_perf_probe_event(struct perf_probe_event *pev);
175 struct perf_probe_event *pev,
184 void arch__fix_tev_from_maps(struct perf_probe_event *pev,
199 void arch__post_process_probe_trace_events(struct perf_probe_event *pev,
Dprobe-finder.h45 struct perf_probe_event *pev,
60 struct perf_probe_event *pev,
68 struct perf_probe_event *pev; /* Target probe event */ member
Dprobe-file.h14 struct perf_probe_event pev; member
57 struct perf_probe_event *pev,
66 struct perf_probe_event *pev);
Dprobe-finder.c804 .function = pf->pev->point.function, in find_best_scope()
839 if (pf->pev->point.function) { in verify_representive_line()
843 && die_match_name(&die_mem, pf->pev->point.function) in verify_representive_line()
981 pf->pev->point.lazy_line); in find_probe_point_lazy()
992 struct perf_probe_point *pp = &pf->pev->point; in skip_prologue()
995 if (!pf->pev->uprobes) in skip_prologue()
1012 if (!perf_probe_with_var(pf->pev)) in skip_prologue()
1025 struct perf_probe_point *pp = &pf->pev->point; in probe_point_inline_cb()
1065 struct perf_probe_point *pp = &pf->pev->point; in probe_point_search_cb()
1161 struct perf_probe_point *pp = &pf->pev->point; in debuginfo__find_probe_location()
[all …]
Dprint-events.c191 !strglobmatch(ent->pev.group, subsys_glob)) in print_sdt_events()
194 !strglobmatch(ent->pev.event, event_glob)) in print_sdt_events()
196 ret = asprintf(&buf, "%s:%s@%s", ent->pev.group, in print_sdt_events()
197 ent->pev.event, nd->s); in print_sdt_events()
/linux-6.1.9/tools/perf/arch/powerpc/util/
Dsym-handling.c78 void arch__fix_tev_from_maps(struct perf_probe_event *pev, in arch__fix_tev_from_maps() argument
94 if (pev->point.offset || !map || !sym) in arch__fix_tev_from_maps()
98 if (!pev->uprobes && pev->point.retprobe) { in arch__fix_tev_from_maps()
110 if (pev->uprobes) in arch__fix_tev_from_maps()
118 void arch__post_process_probe_trace_events(struct perf_probe_event *pev, in arch__post_process_probe_trace_events() argument
127 map = get_target_map(pev->target, pev->nsi, pev->uprobes); in arch__post_process_probe_trace_events()
132 tev = &pev->tevs[i]; in arch__post_process_probe_trace_events()
135 arch__fix_tev_from_maps(pev, tev, map, sym); in arch__post_process_probe_trace_events()
/linux-6.1.9/arch/x86/kernel/
Dkgdb.c184 struct perf_event * __percpu *pev; member
208 bp = *per_cpu_ptr(breakinfo[breakno].pev, cpu); in kgdb_correct_hw_break()
237 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot()
249 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_reserve_slot()
264 pevent = per_cpu_ptr(breakinfo[breakno].pev, cpu); in hw_break_release_slot()
304 bp = *per_cpu_ptr(breakinfo[i].pev, cpu); in kgdb_remove_all_hw_break()
397 bp = *per_cpu_ptr(breakinfo[i].pev, cpu); in kgdb_disable_hw_debug()
655 if (breakinfo[i].pev) in kgdb_arch_late()
657 breakinfo[i].pev = register_wide_hw_breakpoint(&attr, NULL, NULL); in kgdb_arch_late()
658 if (IS_ERR((void * __force)breakinfo[i].pev)) { in kgdb_arch_late()
[all …]
/linux-6.1.9/arch/loongarch/kernel/
Dperf_event.c595 static unsigned int loongarch_pmu_perf_event_encode(const struct loongarch_perf_event *pev) in loongarch_pmu_perf_event_encode() argument
597 return (pev->event_id & 0xff); in loongarch_pmu_perf_event_encode()
602 const struct loongarch_perf_event *pev; in loongarch_pmu_map_general_event() local
604 pev = &(*loongarch_pmu.general_event_map)[idx]; in loongarch_pmu_map_general_event()
606 if (pev->event_id == HW_OP_UNSUPPORTED) in loongarch_pmu_map_general_event()
609 return pev; in loongarch_pmu_map_general_event()
615 const struct loongarch_perf_event *pev; in loongarch_pmu_map_cache_event() local
629 pev = &((*loongarch_pmu.cache_event_map) in loongarch_pmu_map_cache_event()
634 if (pev->event_id == CACHE_OP_UNSUPPORTED) in loongarch_pmu_map_cache_event()
637 return pev; in loongarch_pmu_map_cache_event()
[all …]
/linux-6.1.9/tools/perf/
Dbuiltin-probe.c55 struct perf_probe_event *pev = &params.events[params.nevents]; in parse_probe_event() local
64 pev->uprobes = params.uprobes; in parse_probe_event()
66 pev->target = strdup(params.target); in parse_probe_event()
67 if (!pev->target) in parse_probe_event()
72 pev->nsi = nsinfo__get(params.nsi); in parse_probe_event()
75 ret = parse_perf_probe_command(str, pev); in parse_probe_event()
76 pr_debug("%d arguments\n", pev->nargs); in parse_probe_event()
256 struct perf_probe_event *pev = &params.events[params.nevents]; in opt_show_vars() local
263 if (!ret && pev->nargs != 0) { in opt_show_vars()
366 struct perf_probe_event *pev = &pevs[i]; in perf_add_probe_events() local
[all …]
/linux-6.1.9/arch/mips/kernel/
Dperf_event_mipsxx.c700 static unsigned int mipspmu_perf_event_encode(const struct mips_perf_event *pev) in mipspmu_perf_event_encode() argument
708 return ((unsigned int)pev->range << 24) | in mipspmu_perf_event_encode()
709 (pev->cntr_mask & 0xffff00) | in mipspmu_perf_event_encode()
710 (pev->event_id & 0xff); in mipspmu_perf_event_encode()
715 return (pev->cntr_mask & 0xfffc00) | in mipspmu_perf_event_encode()
716 (pev->event_id & 0x3ff); in mipspmu_perf_event_encode()
718 return (pev->cntr_mask & 0xffff00) | in mipspmu_perf_event_encode()
719 (pev->event_id & 0xff); in mipspmu_perf_event_encode()
734 const struct mips_perf_event *pev; in mipspmu_map_cache_event() local
748 pev = &((*mipspmu.cache_event_map) in mipspmu_map_cache_event()
[all …]