Home
last modified time | relevance | path

Searched refs:tool (Results 1 – 25 of 102) sorted by relevance

12345

/tools/perf/util/
Dsynthetic-events.h29 typedef int (*perf_event__handler_t)(struct perf_tool *tool, union perf_event *event,
32 int perf_event__synthesize_attrs(struct perf_tool *tool, struct evlist *evlist, perf_event__handler…
33 int perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 …
34 int perf_event__synthesize_build_id(struct perf_tool *tool, struct dso *pos, u16 misc, perf_event__…
35 int perf_event__synthesize_cpu_map(struct perf_tool *tool, struct perf_cpu_map *cpus, perf_event__h…
36 int perf_event__synthesize_event_update_cpus(struct perf_tool *tool, struct evsel *evsel, perf_even…
37 int perf_event__synthesize_event_update_name(struct perf_tool *tool, struct evsel *evsel, perf_even…
38 int perf_event__synthesize_event_update_scale(struct perf_tool *tool, struct evsel *evsel, perf_eve…
39 int perf_event__synthesize_event_update_unit(struct perf_tool *tool, struct evsel *evsel, perf_even…
40 int perf_event__synthesize_extra_attr(struct perf_tool *tool, struct evlist *evsel_list, perf_event…
[all …]
Dsession.c100 struct perf_tool *tool,
183 session->tool, event->file_offset); in ordered_events__deliver_event()
187 bool repipe, struct perf_tool *tool) in perf_session__new() argument
196 session->tool = tool; in perf_session__new()
257 if ((!data || !data->is_pipe) && tool && tool->ordering_requires_timestamps && in perf_session__new()
258 tool->ordered_events && !evlist__sample_id_all(session->evlist)) { in perf_session__new()
260 tool->ordered_events = false; in perf_session__new()
316 static int process_event_synth_attr_stub(struct perf_tool *tool __maybe_unused, in process_event_synth_attr_stub()
325 static int process_event_synth_event_update_stub(struct perf_tool *tool __maybe_unused, in process_event_synth_event_update_stub()
337 static int process_event_sample_stub(struct perf_tool *tool __maybe_unused, in process_event_sample_stub()
[all …]
Dsynthetic-events.c50 int perf_tool__process_synth_event(struct perf_tool *tool, in perf_tool__process_synth_event() argument
65 return process(tool, event, &synth_sample, machine); in perf_tool__process_synth_event()
176 pid_t perf_event__synthesize_comm(struct perf_tool *tool, in perf_event__synthesize_comm() argument
186 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_comm()
205 int perf_event__synthesize_namespaces(struct perf_tool *tool, in perf_event__synthesize_namespaces() argument
214 if (!tool || !tool->namespace_events) in perf_event__synthesize_namespaces()
238 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_namespaces()
244 static int perf_event__synthesize_fork(struct perf_tool *tool, in perf_event__synthesize_fork() argument
271 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_fork()
350 int perf_event__synthesize_mmap_events(struct perf_tool *tool, in perf_event__synthesize_mmap_events() argument
[all …]
Devent.h298 int perf_event__process_comm(struct perf_tool *tool,
302 int perf_event__process_lost(struct perf_tool *tool,
306 int perf_event__process_lost_samples(struct perf_tool *tool,
310 int perf_event__process_aux(struct perf_tool *tool,
314 int perf_event__process_itrace_start(struct perf_tool *tool,
318 int perf_event__process_switch(struct perf_tool *tool,
322 int perf_event__process_namespaces(struct perf_tool *tool,
326 int perf_event__process_cgroup(struct perf_tool *tool,
330 int perf_event__process_mmap(struct perf_tool *tool,
334 int perf_event__process_mmap2(struct perf_tool *tool,
[all …]
Dtool.h18 typedef int (*event_sample)(struct perf_tool *tool, union perf_event *event,
22 typedef int (*event_op)(struct perf_tool *tool, union perf_event *event,
25 typedef int (*event_attr_op)(struct perf_tool *tool,
33 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
Devent.c192 int perf_event__process_comm(struct perf_tool *tool __maybe_unused, in perf_event__process_comm()
200 int perf_event__process_namespaces(struct perf_tool *tool __maybe_unused, in perf_event__process_namespaces()
208 int perf_event__process_cgroup(struct perf_tool *tool __maybe_unused, in perf_event__process_cgroup()
216 int perf_event__process_lost(struct perf_tool *tool __maybe_unused, in perf_event__process_lost()
224 int perf_event__process_aux(struct perf_tool *tool __maybe_unused, in perf_event__process_aux()
232 int perf_event__process_itrace_start(struct perf_tool *tool __maybe_unused, in perf_event__process_itrace_start()
240 int perf_event__process_lost_samples(struct perf_tool *tool __maybe_unused, in perf_event__process_lost_samples()
248 int perf_event__process_switch(struct perf_tool *tool __maybe_unused, in perf_event__process_switch()
256 int perf_event__process_ksymbol(struct perf_tool *tool __maybe_unused, in perf_event__process_ksymbol()
264 int perf_event__process_bpf(struct perf_tool *tool __maybe_unused, in perf_event__process_bpf()
[all …]
Dauxtrace.h185 struct perf_tool *tool);
188 struct perf_tool *tool);
195 struct perf_tool *tool);
493 typedef int (*process_auxtrace_t)(struct perf_tool *tool,
499 struct perf_tool *tool, process_auxtrace_t fn);
503 struct perf_tool *tool, process_auxtrace_t fn,
612 struct perf_sample *sample, struct perf_tool *tool);
615 int auxtrace__flush_events(struct perf_session *session, struct perf_tool *tool);
745 struct perf_tool *tool __maybe_unused) in auxtrace__process_event()
758 struct perf_tool *tool __maybe_unused) in auxtrace__flush_events()
Dbuild-id.h32 int build_id__mark_dso_hit(struct perf_tool *tool, union perf_event *event,
38 int perf_event__inject_buildid(struct perf_tool *tool, union perf_event *event,
Dsession.h38 struct perf_tool *tool; member
58 bool repipe, struct perf_tool *tool);
78 void perf_tool__fill_defaults(struct perf_tool *tool);
Dbpf-event.c172 struct perf_tool *tool = session->tool; in perf_event__synthesize_one_bpf_prog() local
256 err = perf_tool__process_synth_event(tool, event, in perf_event__synthesize_one_bpf_prog()
290 err = perf_tool__process_synth_event(tool, event, in perf_event__synthesize_one_bpf_prog()
304 struct perf_tool *tool; member
333 return perf_tool__process_synth_event(data->tool, event, machine, in process_bpf_image()
427 .tool = session->tool, in perf_event__synthesize_bpf_events()
Djitdump.c65 struct perf_tool tool; member
72 #define get_jit_tool(t) (container_of(tool, struct jit_tool, tool))
405 struct perf_tool *tool = jd->session->tool; in jit_repipe_code_load() local
503 ret = perf_event__process_mmap2(tool, event, &sample, jd->machine); in jit_repipe_code_load()
512 build_id__mark_dso_hit(tool, event, &sample, NULL, jd->machine); in jit_repipe_code_load()
521 struct perf_tool *tool = jd->session->tool; in jit_repipe_code_move() local
595 ret = perf_event__process_mmap2(tool, event, &sample, jd->machine); in jit_repipe_code_move()
601 build_id__mark_dso_hit(tool, event, &sample, NULL, jd->machine); in jit_repipe_code_move()
Dtsc.c73 struct perf_tool *tool, in perf_event__synth_time_conv() argument
106 return process(tool, &event, NULL, machine); in perf_event__synth_time_conv()
Dheader.h138 int perf_event__process_attr(struct perf_tool *tool, union perf_event *event,
140 int perf_event__process_event_update(struct perf_tool *tool,
/tools/perf/
Dbuiltin-inject.c38 struct perf_tool tool; member
61 static int dso__inject_build_id(struct dso *dso, struct perf_tool *tool,
76 static int perf_event__repipe_synth(struct perf_tool *tool, in perf_event__repipe_synth() argument
79 struct perf_inject *inject = container_of(tool, struct perf_inject, in perf_event__repipe_synth()
80 tool); in perf_event__repipe_synth()
85 static int perf_event__repipe_oe_synth(struct perf_tool *tool, in perf_event__repipe_oe_synth() argument
89 return perf_event__repipe_synth(tool, event); in perf_event__repipe_oe_synth()
93 static int perf_event__drop_oe(struct perf_tool *tool __maybe_unused, in perf_event__drop_oe()
104 return perf_event__repipe_synth(session->tool, event); in perf_event__repipe_op2_synth()
111 return perf_event__repipe_synth(session->tool, event); in perf_event__repipe_op4_synth()
[all …]
Dbuiltin-record.c89 struct perf_tool tool; member
509 static int process_synthesized_event(struct perf_tool *tool, in process_synthesized_event() argument
514 struct record *rec = container_of(tool, struct record, tool); in process_synthesized_event()
518 static int process_locked_synthesized_event(struct perf_tool *tool, in process_locked_synthesized_event() argument
527 ret = process_synthesized_event(tool, event, sample, machine); in process_locked_synthesized_event()
593 static int record__process_auxtrace(struct perf_tool *tool, in record__process_auxtrace() argument
598 struct record *rec = container_of(tool, struct record, tool); in record__process_auxtrace()
636 ret = auxtrace_mmap__read(map, rec->itr, &rec->tool, in record__auxtrace_mmap_read()
652 ret = auxtrace_mmap__read_snapshot(map, rec->itr, &rec->tool, in record__auxtrace_mmap_read_snapshot()
967 static int process_sample_event(struct perf_tool *tool, in process_sample_event() argument
[all …]
Dbuiltin-script.c121 struct perf_tool tool; member
2102 static int process_sample_event(struct perf_tool *tool, in process_sample_event() argument
2108 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_sample_event()
2152 static int process_attr(struct perf_tool *tool, union perf_event *event, in process_attr() argument
2155 struct perf_script *scr = container_of(tool, struct perf_script, tool); in process_attr()
2161 err = perf_event__process_attr(tool, event, pevlist); in process_attr()
2218 static int print_event_with_time(struct perf_tool *tool, in print_event_with_time() argument
2224 struct perf_script *script = container_of(tool, struct perf_script, tool); in print_event_with_time()
2254 static int print_event(struct perf_tool *tool, union perf_event *event, in print_event() argument
2258 return print_event_with_time(tool, event, sample, machine, pid, tid, 0); in print_event()
[all …]
Dbuiltin-report.c71 struct perf_tool tool; member
220 struct report *rep = container_of(session->tool, struct report, tool); in process_feature_event()
240 static int process_sample_event(struct perf_tool *tool, in process_sample_event() argument
246 struct report *rep = container_of(tool, struct report, tool); in process_sample_event()
314 static int process_read_event(struct perf_tool *tool, in process_read_event() argument
320 struct report *rep = container_of(tool, struct report, tool); in process_read_event()
732 memset(&rep->tool, 0, sizeof(rep->tool)); in stats_setup()
733 rep->tool.no_warn = true; in stats_setup()
746 memset(&rep->tool, 0, sizeof(rep->tool)); in tasks_setup()
747 rep->tool.ordered_events = true; in tasks_setup()
[all …]
Dbuiltin-mem.c26 struct perf_tool tool; member
143 dump_raw_samples(struct perf_tool *tool, in dump_raw_samples() argument
148 struct perf_mem *mem = container_of(tool, struct perf_mem, tool); in dump_raw_samples()
223 static int process_sample_event(struct perf_tool *tool, in process_sample_event() argument
229 return dump_raw_samples(tool, event, sample, machine); in process_sample_event()
241 &mem->tool); in report_raw_events()
382 .tool = { in cmd_mem()
Dbuiltin-sched.c181 struct perf_tool tool; member
1484 static int process_sched_wakeup_event(struct perf_tool *tool, in process_sched_wakeup_event() argument
1489 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in process_sched_wakeup_event()
1669 static int process_sched_switch_event(struct perf_tool *tool, in process_sched_switch_event() argument
1674 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in process_sched_switch_event()
1695 static int process_sched_runtime_event(struct perf_tool *tool, in process_sched_runtime_event() argument
1700 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in process_sched_runtime_event()
1708 static int perf_sched__process_fork_event(struct perf_tool *tool, in perf_sched__process_fork_event() argument
1713 struct perf_sched *sched = container_of(tool, struct perf_sched, tool); in perf_sched__process_fork_event()
1716 perf_event__process_fork(tool, event, sample, machine); in perf_sched__process_fork_event()
[all …]
Dbuiltin-kvm.c657 static int process_lost_event(struct perf_tool *tool, in process_lost_event() argument
662 struct perf_kvm_stat *kvm = container_of(tool, struct perf_kvm_stat, tool); in process_lost_event()
678 static int process_sample_event(struct perf_tool *tool, in process_sample_event() argument
686 struct perf_kvm_stat *kvm = container_of(tool, struct perf_kvm_stat, in process_sample_event()
687 tool); in process_sample_event()
1095 kvm->tool = eops; in read_events()
1096 kvm->session = perf_session__new(&file, false, &kvm->tool); in read_events()
1386 kvm->tool.sample = process_sample_event; in kvm_events_live()
1387 kvm->tool.comm = perf_event__process_comm; in kvm_events_live()
1388 kvm->tool.exit = perf_event__process_exit; in kvm_events_live()
[all …]
/tools/perf/tests/
Devent_update.c15 static int process_event_unit(struct perf_tool *tool __maybe_unused, in process_event_unit()
28 static int process_event_scale(struct perf_tool *tool __maybe_unused, in process_event_scale()
45 struct perf_tool tool; member
49 static int process_event_name(struct perf_tool *tool, in process_event_name() argument
54 struct event_name *tmp = container_of(tool, struct event_name, tool); in process_event_name()
63 static int process_event_cpus(struct perf_tool *tool __maybe_unused, in process_event_cpus()
115 !perf_event__synthesize_event_update_name(&tmp.tool, evsel, process_event_name)); in test__event_update()
120 !perf_event__synthesize_event_update_cpus(&tmp.tool, evsel, process_event_cpus)); in test__event_update()
Dstat.c24 static int process_stat_config_event(struct perf_tool *tool __maybe_unused, in process_stat_config_event()
64 static int process_stat_event(struct perf_tool *tool __maybe_unused, in process_stat_event()
94 static int process_stat_round_event(struct perf_tool *tool __maybe_unused, in process_stat_round_event()
Dcpumap.c14 static int process_event_mask(struct perf_tool *tool __maybe_unused, in process_event_mask()
48 static int process_event_cpus(struct perf_tool *tool __maybe_unused, in process_event_cpus()
/tools/perf/arch/x86/util/
Devent.c15 int perf_event__synthesize_extra_kmaps(struct perf_tool *tool, in perf_event__synthesize_extra_kmaps() argument
66 if (perf_tool__process_synth_event(tool, event, machine, in perf_event__synthesize_extra_kmaps()
/tools/power/pm-graph/config/
Dcgskip.txt10 # The sleepgraph tool automatically pulls this file in when
12 # the tool is called with "-cgskip off".

12345