/kernel/linux/linux-5.10/tools/perf/ |
H A D | builtin-inject.c | 18 #include "util/tool.h" 38 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, even in perf_event__repipe_op2_synth() 114 perf_event__repipe_attr(struct perf_tool *tool, union perf_event *event, struct evlist **pevlist) perf_event__repipe_attr() argument 132 perf_event__repipe_event_update(struct perf_tool *tool, union perf_event *event, struct evlist **pevlist __maybe_unused) perf_event__repipe_event_update() argument 163 struct perf_tool *tool = session->tool; perf_event__repipe_auxtrace() local 210 perf_event__repipe(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused) perf_event__repipe() argument 226 perf_event__drop_aux(struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_sample *sample, struct machine *machine __maybe_unused) perf_event__drop_aux() argument 267 perf_event__repipe_sample(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) perf_event__repipe_sample() argument 289 perf_event__repipe_mmap(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_mmap() argument 303 perf_event__jit_repipe_mmap(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__jit_repipe_mmap() argument 371 perf_event__repipe_buildid_mmap(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_buildid_mmap() argument 390 perf_event__repipe_mmap2(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_mmap2() argument 404 perf_event__jit_repipe_mmap2(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__jit_repipe_mmap2() argument 428 perf_event__repipe_buildid_mmap2(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_buildid_mmap2() argument 456 perf_event__repipe_fork(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_fork() argument 469 perf_event__repipe_comm(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_comm() argument 482 perf_event__repipe_namespaces(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_namespaces() argument 494 perf_event__repipe_exit(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_exit() argument 533 dso__inject_build_id(struct dso *dso, struct perf_tool *tool, struct machine *machine, u8 cpumode, u32 flags) dso__inject_build_id() argument 558 perf_event__inject_buildid(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel __maybe_unused, struct machine *machine) perf_event__inject_buildid() argument 587 perf_inject__sched_process_exit(struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_sample *sample, struct evsel *evsel __maybe_unused, struct machine *machine __maybe_unused) perf_inject__sched_process_exit() argument 607 perf_inject__sched_switch(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) perf_inject__sched_switch() argument 631 perf_inject__sched_stat(struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) perf_inject__sched_stat() argument [all...] |
H A D | builtin-script.c | 12 #include "util/tool.h" 121 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 2254 print_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine, pid_t pid, pid_t tid) print_event() argument 2261 process_comm_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_comm_event() argument 2273 process_namespaces_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_namespaces_event() argument 2285 process_cgroup_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_cgroup_event() argument 2297 process_fork_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_fork_event() argument 2309 process_exit_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_exit_event() argument 2322 process_mmap_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_mmap_event() argument 2334 process_mmap2_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_mmap2_event() argument 2346 process_switch_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_switch_event() argument 2367 process_lost_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_lost_event() argument 2399 process_text_poke_events(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) process_text_poke_events() argument 3326 struct perf_tool *tool = session->tool; process_thread_map_event() local 3345 struct perf_tool *tool = session->tool; process_cpu_map_event() local 3372 struct perf_tool *tool = session->tool; perf_script__process_auxtrace_info() local [all...] |
H A D | builtin-report.c | 36 #include "util/tool.h" 71 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() [all...] |
H A D | builtin-mem.c | 11 #include "util/tool.h" 26 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()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | synthetic-events.h | 43 typedef int (*perf_event__handler_t)(struct perf_tool *tool, union perf_event *event, 46 int perf_event__synthesize_attrs(struct perf_tool *tool, struct evlist *evlist, perf_event__handler_t process); 47 int perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 *id, perf_event__handler_t process); 48 int perf_event__synthesize_build_id(struct perf_tool *tool, struct dso *pos, u16 misc, perf_event__handler_t process, struct machine *machine); 49 int perf_event__synthesize_cpu_map(struct perf_tool *tool, const struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine); 50 int perf_event__synthesize_event_update_cpus(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 51 int perf_event__synthesize_event_update_name(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 52 int perf_event__synthesize_event_update_scale(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 53 int perf_event__synthesize_event_update_unit(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 54 int perf_event__synthesize_extra_attr(struct perf_tool *tool, struc [all...] |
H A D | session.c | 26 #include "tool.h" 105 struct perf_tool *tool, 189 session->tool, event->file_offset, in ordered_events__deliver_event() 195 struct perf_tool *tool) in __perf_session__new() 204 session->tool = tool; in __perf_session__new() 267 if ((!data || !data->is_pipe) && tool && tool->ordering_requires_timestamps && in __perf_session__new() 268 tool->ordered_events && !evlist__sample_id_all(session->evlist)) { in __perf_session__new() 270 tool in __perf_session__new() 193 __perf_session__new(struct perf_data *data, bool repipe, int repipe_fd, struct perf_tool *tool) __perf_session__new() argument 478 perf_tool__fill_defaults(struct perf_tool *tool) perf_tool__fill_defaults() argument 1456 deliver_sample_value(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct sample_read_value *v, struct machine *machine) deliver_sample_value() argument 1488 deliver_sample_group(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine, u64 read_format) deliver_sample_group() argument 1508 evlist__deliver_sample(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) evlist__deliver_sample() argument 1529 machines__deliver_event(struct machines *machines, struct evlist *evlist, union perf_event *event, struct perf_sample *sample, struct perf_tool *tool, u64 file_offset, const char *file_path) machines__deliver_event() argument 1619 perf_session__deliver_event(struct perf_session *session, union perf_event *event, struct perf_tool *tool, u64 file_offset, const char *file_path) perf_session__deliver_event() argument 1654 struct perf_tool *tool = session->tool; perf_session__process_user_event() local 1741 struct perf_tool *tool = session->tool; perf_session__deliver_synth_event() local 1849 struct perf_tool *tool = session->tool; perf_session__process_event() local 2036 struct perf_tool *tool = session->tool; __perf_session__process_pipe_events() local 2450 struct perf_tool *tool = session->tool; __perf_session__process_events() local 2502 struct perf_tool *tool = session->tool; __perf_session__process_dir_events() local [all...] |
H A D | event.h | 270 int perf_event__process_comm(struct perf_tool *tool, 274 int perf_event__process_lost(struct perf_tool *tool, 278 int perf_event__process_lost_samples(struct perf_tool *tool, 282 int perf_event__process_aux(struct perf_tool *tool, 286 int perf_event__process_itrace_start(struct perf_tool *tool, 290 int perf_event__process_aux_output_hw_id(struct perf_tool *tool, 294 int perf_event__process_switch(struct perf_tool *tool, 298 int perf_event__process_namespaces(struct perf_tool *tool, 302 int perf_event__process_cgroup(struct perf_tool *tool, 306 int perf_event__process_mmap(struct perf_tool *tool, [all...] |
H A D | synthetic-events.c | 50 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() 190 pid_t perf_event__synthesize_comm(struct perf_tool *tool, in perf_event__synthesize_comm() argument 202 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_comm() 221 int perf_event__synthesize_namespaces(struct perf_tool *tool, in perf_event__synthesize_namespaces() argument 230 if (!tool || !tool->namespace_events) in perf_event__synthesize_namespaces() 254 if (perf_tool__process_synth_event(tool, event, machine, process) != 0) in perf_event__synthesize_namespaces() 260 static int perf_event__synthesize_fork(struct perf_tool *tool, in perf_event__synthesize_fork() argument 287 if (perf_tool__process_synth_event(tool, even in perf_event__synthesize_fork() 421 perf_event__synthesize_mmap_events(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_data) perf_event__synthesize_mmap_events() argument 545 perf_event__synthesize_cgroup(struct perf_tool *tool, union perf_event *event, char *path, size_t mount_len, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_cgroup() argument 585 perf_event__walk_cgroup_tree(struct perf_tool *tool, union perf_event *event, char *path, size_t mount_len, perf_event__handler_t process, struct machine *machine) perf_event__walk_cgroup_tree() argument 633 perf_event__synthesize_cgroups(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_cgroups() argument 668 perf_event__synthesize_modules(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_modules() argument 745 __event__synthesize_thread(union perf_event *comm_event, union perf_event *mmap_event, union perf_event *fork_event, union perf_event *namespaces_event, pid_t pid, int full, perf_event__handler_t process, struct perf_tool *tool, struct machine *machine, bool needs_mmap, bool mmap_data) __event__synthesize_thread() argument 839 perf_event__synthesize_thread_map(struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine, bool needs_mmap, bool mmap_data) perf_event__synthesize_thread_map() argument 916 __perf_event__synthesize_threads(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine, bool needs_mmap, bool mmap_data, struct dirent **dirent, int start, int num) __perf_event__synthesize_threads() argument 980 struct perf_tool *tool; global() member 1002 perf_event__synthesize_threads(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine, bool needs_mmap, bool mmap_data, unsigned int nr_threads_synthesize) perf_event__synthesize_threads() argument 1098 __perf_event__synthesize_kernel_mmap(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) __perf_event__synthesize_kernel_mmap() argument 1170 perf_event__synthesize_kernel_mmap(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_kernel_mmap() argument 1183 perf_event__synthesize_thread_map2(struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_thread_map2() argument 1333 perf_event__synthesize_cpu_map(struct perf_tool *tool, const struct perf_cpu_map *map, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_cpu_map() argument 1351 perf_event__synthesize_stat_config(struct perf_tool *tool, struct perf_stat_config *config, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_stat_config() argument 1390 perf_event__synthesize_stat(struct perf_tool *tool, struct perf_cpu cpu, u32 thread, u64 id, struct perf_counts_values *count, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_stat() argument 1412 perf_event__synthesize_stat_round(struct perf_tool *tool, u64 evtime, u64 type, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_stat_round() argument 1813 __perf_event__synthesize_id_index(struct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine, size_t from) __perf_event__synthesize_id_index() argument 1905 perf_event__synthesize_id_index(struct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine) perf_event__synthesize_id_index() argument 1911 __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool, struct target *target, struct perf_thread_map *threads, perf_event__handler_t process, bool needs_mmap, bool data_mmap, unsigned int nr_threads_synthesize) __machine__synthesize_threads() argument 1972 perf_event__synthesize_event_update_unit(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_unit() argument 1989 perf_event__synthesize_event_update_scale(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_scale() argument 2006 perf_event__synthesize_event_update_name(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_name() argument 2023 perf_event__synthesize_event_update_cpus(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_cpus() argument 2046 perf_event__synthesize_attrs(struct perf_tool *tool, struct evlist *evlist, perf_event__handler_t process) perf_event__synthesize_attrs() argument 2074 perf_event__synthesize_extra_attr(struct perf_tool *tool, struct evlist *evsel_list, perf_event__handler_t process, bool is_pipe) perf_event__synthesize_extra_attr() argument 2130 perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 *id, perf_event__handler_t process) perf_event__synthesize_attr() argument 2164 perf_event__synthesize_tracing_data(struct perf_tool *tool, int fd, struct evlist *evlist, perf_event__handler_t process) perf_event__synthesize_tracing_data() argument 2212 perf_event__synthesize_build_id(struct perf_tool *tool, struct dso *pos, u16 misc, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_build_id() argument 2236 perf_event__synthesize_stat_events(struct perf_stat_config *config, struct perf_tool *tool, struct evlist *evlist, perf_event__handler_t process, bool attrs) perf_event__synthesize_stat_events() argument 2273 perf_event__synthesize_features(struct perf_tool *tool, struct perf_session *session, struct evlist *evlist, perf_event__handler_t process) perf_event__synthesize_features() argument 2336 perf_event__synthesize_for_pipe(struct perf_tool *tool, struct perf_session *session, struct perf_data *data, perf_event__handler_t process) perf_event__synthesize_for_pipe() argument [all...] |
H A D | session.h | 46 struct perf_tool *tool; member 68 struct perf_tool *tool); 71 struct perf_tool *tool) in perf_session__new() 73 return __perf_session__new(data, false, -1, tool); in perf_session__new() 95 void perf_tool__fill_defaults(struct perf_tool *tool); 160 int perf_event__process_finished_round(struct perf_tool *tool, 70 perf_session__new(struct perf_data *data, struct perf_tool *tool) perf_session__new() argument
|
H A D | tool.h | 18 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, 34 typedef int (*event_oe)(struct perf_tool *tool, union perf_event *event,
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | synthetic-events.h | 29 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_t process); 33 int perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 *id, perf_event__handler_t process); 34 int perf_event__synthesize_build_id(struct perf_tool *tool, struct dso *pos, u16 misc, perf_event__handler_t process, struct machine *machine); 35 int perf_event__synthesize_cpu_map(struct perf_tool *tool, struct perf_cpu_map *cpus, perf_event__handler_t process, struct machine *machine); 36 int perf_event__synthesize_event_update_cpus(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 37 int perf_event__synthesize_event_update_name(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 38 int perf_event__synthesize_event_update_scale(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 39 int perf_event__synthesize_event_update_unit(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process); 40 int perf_event__synthesize_extra_attr(struct perf_tool *tool, struc [all...] |
H A D | session.c | 24 #include "tool.h" 100 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() 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 in perf_session__new() 186 perf_session__new(struct perf_data *data, bool repipe, struct perf_tool *tool) perf_session__new() argument 461 perf_tool__fill_defaults(struct perf_tool *tool) perf_tool__fill_defaults() argument 1373 deliver_sample_value(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct sample_read_value *v, struct machine *machine) deliver_sample_value() argument 1405 deliver_sample_group(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) deliver_sample_group() argument 1426 perf_evlist__deliver_sample(struct evlist *evlist, struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) perf_evlist__deliver_sample() argument 1450 machines__deliver_event(struct machines *machines, struct evlist *evlist, union perf_event *event, struct perf_sample *sample, struct perf_tool *tool, u64 file_offset) machines__deliver_event() argument 1533 perf_session__deliver_event(struct perf_session *session, union perf_event *event, struct perf_tool *tool, u64 file_offset) perf_session__deliver_event() argument 1567 struct perf_tool *tool = session->tool; perf_session__process_user_event() local 1647 struct perf_tool *tool = session->tool; perf_session__deliver_synth_event() local 1754 struct perf_tool *tool = session->tool; perf_session__process_event() local 1953 struct perf_tool *tool = session->tool; __perf_session__process_pipe_events() local 2283 struct perf_tool *tool = session->tool; __perf_session__process_events() local [all...] |
H A D | synthetic-events.c | 50 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, even in perf_event__synthesize_fork() 350 perf_event__synthesize_mmap_events(struct perf_tool *tool, union perf_event *event, pid_t pid, pid_t tgid, perf_event__handler_t process, struct machine *machine, bool mmap_data) perf_event__synthesize_mmap_events() argument 471 perf_event__synthesize_cgroup(struct perf_tool *tool, union perf_event *event, char *path, size_t mount_len, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_cgroup() argument 511 perf_event__walk_cgroup_tree(struct perf_tool *tool, union perf_event *event, char *path, size_t mount_len, perf_event__handler_t process, struct machine *machine) perf_event__walk_cgroup_tree() argument 559 perf_event__synthesize_cgroups(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_cgroups() argument 594 perf_event__synthesize_modules(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_modules() argument 647 __event__synthesize_thread(union perf_event *comm_event, union perf_event *mmap_event, union perf_event *fork_event, union perf_event *namespaces_event, pid_t pid, int full, perf_event__handler_t process, struct perf_tool *tool, struct machine *machine, bool mmap_data) __event__synthesize_thread() argument 737 perf_event__synthesize_thread_map(struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine, bool mmap_data) perf_event__synthesize_thread_map() argument 814 __perf_event__synthesize_threads(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine, bool mmap_data, struct dirent **dirent, int start, int num) __perf_event__synthesize_threads() argument 877 struct perf_tool *tool; global() member 897 perf_event__synthesize_threads(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine, bool mmap_data, unsigned int nr_threads_synthesize) perf_event__synthesize_threads() argument 991 __perf_event__synthesize_kernel_mmap(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) __perf_event__synthesize_kernel_mmap() argument 1047 perf_event__synthesize_kernel_mmap(struct perf_tool *tool, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_kernel_mmap() argument 1060 perf_event__synthesize_thread_map2(struct perf_tool *tool, struct perf_thread_map *threads, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_thread_map2() argument 1210 perf_event__synthesize_cpu_map(struct perf_tool *tool, struct perf_cpu_map *map, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_cpu_map() argument 1228 perf_event__synthesize_stat_config(struct perf_tool *tool, struct perf_stat_config *config, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_stat_config() argument 1266 perf_event__synthesize_stat(struct perf_tool *tool, u32 cpu, u32 thread, u64 id, struct perf_counts_values *count, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_stat() argument 1288 perf_event__synthesize_stat_round(struct perf_tool *tool, u64 evtime, u64 type, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_stat_round() argument 1602 perf_event__synthesize_id_index(struct perf_tool *tool, perf_event__handler_t process, struct evlist *evlist, struct machine *machine) perf_event__synthesize_id_index() argument 1670 __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool, struct target *target, struct perf_thread_map *threads, perf_event__handler_t process, bool data_mmap, unsigned int nr_threads_synthesize) __machine__synthesize_threads() argument 1711 perf_event__synthesize_event_update_unit(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_unit() argument 1728 perf_event__synthesize_event_update_scale(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_scale() argument 1746 perf_event__synthesize_event_update_name(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_name() argument 1763 perf_event__synthesize_event_update_cpus(struct perf_tool *tool, struct evsel *evsel, perf_event__handler_t process) perf_event__synthesize_event_update_cpus() argument 1791 perf_event__synthesize_attrs(struct perf_tool *tool, struct evlist *evlist, perf_event__handler_t process) perf_event__synthesize_attrs() argument 1819 perf_event__synthesize_extra_attr(struct perf_tool *tool, struct evlist *evsel_list, perf_event__handler_t process, bool is_pipe) perf_event__synthesize_extra_attr() argument 1875 perf_event__synthesize_attr(struct perf_tool *tool, struct perf_event_attr *attr, u32 ids, u64 *id, perf_event__handler_t process) perf_event__synthesize_attr() argument 1908 perf_event__synthesize_tracing_data(struct perf_tool *tool, int fd, struct evlist *evlist, perf_event__handler_t process) perf_event__synthesize_tracing_data() argument 1955 perf_event__synthesize_build_id(struct perf_tool *tool, struct dso *pos, u16 misc, perf_event__handler_t process, struct machine *machine) perf_event__synthesize_build_id() argument 1978 perf_event__synthesize_stat_events(struct perf_stat_config *config, struct perf_tool *tool, struct evlist *evlist, perf_event__handler_t process, bool attrs) perf_event__synthesize_stat_events() argument 2015 perf_event__synthesize_features(struct perf_tool *tool, struct perf_session *session, struct evlist *evlist, perf_event__handler_t process) perf_event__synthesize_features() argument [all...] |
H A D | event.h | 298 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...] |
H A D | tool.h | 18 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,
|
/kernel/linux/linux-6.6/tools/tracing/rtla/src/ |
H A D | osnoise_hist.c | 125 static void osnoise_hist_update_multiple(struct osnoise_tool *tool, int cpu, in osnoise_hist_update_multiple() argument 128 struct osnoise_hist_params *params = tool->params; in osnoise_hist_update_multiple() 129 struct osnoise_hist_data *data = tool->data; in osnoise_hist_update_multiple() 157 static void osnoise_destroy_trace_hist(struct osnoise_tool *tool) in osnoise_destroy_trace_hist() argument 159 struct osnoise_hist_data *data = tool->data; in osnoise_destroy_trace_hist() 161 tracefs_hist_pause(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 162 tracefs_hist_destroy(tool->trace.inst, data->trace_hist); in osnoise_destroy_trace_hist() 168 static int osnoise_init_trace_hist(struct osnoise_tool *tool) in osnoise_init_trace_hist() argument 170 struct osnoise_hist_params *params = tool->params; in osnoise_init_trace_hist() 171 struct osnoise_hist_data *data = tool in osnoise_init_trace_hist() 205 osnoise_read_trace_hist(struct osnoise_tool *tool) osnoise_read_trace_hist() argument 253 osnoise_hist_header(struct osnoise_tool *tool) osnoise_hist_header() argument 372 osnoise_print_stats(struct osnoise_hist_params *params, struct osnoise_tool *tool) osnoise_print_stats() argument 703 osnoise_hist_apply_config(struct osnoise_tool *tool, struct osnoise_hist_params *params) osnoise_hist_apply_config() argument 782 struct osnoise_tool *tool; osnoise_init_hist() local 827 struct osnoise_tool *tool = NULL; osnoise_hist_main() local [all...] |
H A D | timerlat_aa.c | 114 struct osnoise_tool *tool; member 123 * For now keep it simple. If needed, store it in the tool, add the *context 482 function = tep_find_function(taa_ctx->tool->trace.tep, caller[i]); in timerlat_aa_stack_handler() 691 struct trace_instance *trace = &taa_ctx->tool->trace; in timerlat_auto_analysis_collect_trace() 756 tep = taa_ctx->tool->trace.tep; in timerlat_auto_analysis() 881 static void timerlat_aa_unregister_events(struct osnoise_tool *tool, int dump_tasks) in timerlat_aa_unregister_events() argument 884 tep_unregister_event_handler(tool->trace.tep, -1, "ftrace", "timerlat", in timerlat_aa_unregister_events() 885 timerlat_aa_handler, tool); in timerlat_aa_unregister_events() 887 tracefs_event_disable(tool->trace.inst, "osnoise", NULL); in timerlat_aa_unregister_events() 889 tep_unregister_event_handler(tool in timerlat_aa_unregister_events() 920 timerlat_aa_register_events(struct osnoise_tool *tool, int dump_tasks) timerlat_aa_register_events() argument 1008 timerlat_aa_init(struct osnoise_tool *tool, int dump_tasks) timerlat_aa_init() argument [all...] |
H A D | osnoise_top.c | 112 struct osnoise_tool *tool; in osnoise_top_handler() local 118 tool = container_of(trace, struct osnoise_tool, trace); in osnoise_top_handler() 120 data = tool->data; in osnoise_top_handler() 154 * osnoise_top_header - print the header of the tool output 209 static void osnoise_top_print(struct osnoise_tool *tool, int cpu) in osnoise_top_print() argument 211 struct osnoise_top_params *params = tool->params; in osnoise_top_print() 212 struct trace_seq *s = tool->trace.seq; in osnoise_top_print() 218 data = tool->data; in osnoise_top_print() 528 * osnoise_top_apply_config - apply the top configs to the initialized tool 531 osnoise_top_apply_config(struct osnoise_tool *tool, struc argument 617 struct osnoise_tool *tool; osnoise_init_top() local 665 struct osnoise_tool *tool = NULL; osnoise_top_main() local [all...] |
H A D | timerlat_hist.c | 168 timerlat_hist_update(struct osnoise_tool *tool, int cpu, in timerlat_hist_update() argument 172 struct timerlat_hist_params *params = tool->params; in timerlat_hist_update() 173 struct timerlat_hist_data *data = tool->data; in timerlat_hist_update() 218 struct osnoise_tool *tool; in timerlat_hist_handler() local 221 tool = container_of(trace, struct osnoise_tool, trace); in timerlat_hist_handler() 226 timerlat_hist_update(tool, cpu, context, latency); in timerlat_hist_handler() 234 static void timerlat_hist_header(struct osnoise_tool *tool) in timerlat_hist_header() argument 236 struct timerlat_hist_params *params = tool->params; in timerlat_hist_header() 237 struct timerlat_hist_data *data = tool->data; in timerlat_hist_header() 238 struct trace_seq *s = tool in timerlat_hist_header() 407 timerlat_print_stats(struct timerlat_hist_params *params, struct osnoise_tool *tool) timerlat_print_stats() argument 811 timerlat_hist_apply_config(struct osnoise_tool *tool, struct timerlat_hist_params *params) timerlat_hist_apply_config() argument 899 struct osnoise_tool *tool; timerlat_init_hist() local 948 struct osnoise_tool *tool = NULL; timerlat_hist_main() local [all...] |
/kernel/linux/linux-6.6/tools/perf/ |
H A D | builtin-inject.c | 18 #include "util/tool.h" 81 struct perf_tool tool; member 107 struct perf_tool tool; member 137 static int dso__inject_build_id(struct dso *dso, struct perf_tool *tool, 152 static int perf_event__repipe_synth(struct perf_tool *tool, in perf_event__repipe_synth() argument 155 struct perf_inject *inject = container_of(tool, struct perf_inject, in perf_event__repipe_synth() 156 tool); in perf_event__repipe_synth() 161 static int perf_event__repipe_oe_synth(struct perf_tool *tool, in perf_event__repipe_oe_synth() argument 165 return perf_event__repipe_synth(tool, event); in perf_event__repipe_oe_synth() 169 static int perf_event__drop_oe(struct perf_tool *tool __maybe_unuse 191 perf_event__repipe_attr(struct perf_tool *tool, union perf_event *event, struct evlist **pevlist) perf_event__repipe_attr() argument 209 perf_event__repipe_event_update(struct perf_tool *tool, union perf_event *event, struct evlist **pevlist __maybe_unused) perf_event__repipe_event_update() argument 240 struct perf_tool *tool = session->tool; perf_event__repipe_auxtrace() local 287 perf_event__repipe(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused) perf_event__repipe() argument 303 perf_event__drop_aux(struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_sample *sample, struct machine *machine __maybe_unused) perf_event__drop_aux() argument 350 perf_event__repipe_sample(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) perf_event__repipe_sample() argument 375 perf_event__repipe_mmap(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_mmap() argument 389 perf_event__jit_repipe_mmap(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__jit_repipe_mmap() argument 459 perf_event__repipe_buildid_mmap(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_buildid_mmap() argument 478 perf_event__repipe_mmap2(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_mmap2() argument 504 perf_event__jit_repipe_mmap2(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__jit_repipe_mmap2() argument 528 perf_event__repipe_buildid_mmap2(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_buildid_mmap2() argument 569 perf_event__repipe_fork(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_fork() argument 582 perf_event__repipe_comm(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_comm() argument 595 perf_event__repipe_namespaces(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_namespaces() argument 607 perf_event__repipe_exit(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) perf_event__repipe_exit() argument 716 dso__inject_build_id(struct dso *dso, struct perf_tool *tool, struct machine *machine, u8 cpumode, u32 flags) dso__inject_build_id() argument 747 perf_event__inject_buildid(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel __maybe_unused, struct machine *machine) perf_event__inject_buildid() argument 780 perf_inject__sched_process_exit(struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_sample *sample, struct evsel *evsel __maybe_unused, struct machine *machine __maybe_unused) perf_inject__sched_process_exit() argument 800 perf_inject__sched_switch(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) perf_inject__sched_switch() argument 825 perf_inject__sched_stat(struct perf_tool *tool, union perf_event *event __maybe_unused, struct perf_sample *sample, struct evsel *evsel, struct machine *machine) perf_inject__sched_stat() argument 870 guest_session__repipe(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused) guest_session__repipe() argument 1036 process_attr(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused) process_attr() argument 1164 process_build_id(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused) process_build_id() argument 1209 guest_session__ksymbol_event(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample __maybe_unused, struct machine *machine __maybe_unused) guest_session__ksymbol_event() argument 1573 host__repipe(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) host__repipe() argument 1646 host__finished_round(struct perf_tool *tool, union perf_event *event, struct ordered_events *oe) host__finished_round() argument 1664 host__context_switch(struct perf_tool *tool, union perf_event *event, struct perf_sample *sample, struct machine *machine) host__context_switch() argument [all...] |
/foundation/ability/ability_lite/services/abilitymgr_lite/tools/src/ |
H A D | main.cpp | 47 static void SetOptions(int argc, char *argv[], const option *options, AbilityTool &tool) in SetOptions() argument 60 tool.SetDumpAll(); in SetOptions() 64 tool.SetBundleName(optarg); in SetOptions() 68 tool.SetAbilityName(optarg); in SetOptions() 72 tool.SetExtra(optarg); in SetOptions() 80 if (!tool.SetCommand(command)) { in SetOptions() 101 AbilityTool tool = AbilityTool(); in main() local 102 SetOptions(argc, argv, options, tool); in main() 103 bool ret = tool.RunCommand(); in main()
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | event_update.c | 11 #include "tool.h" 15 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, evse in test__event_update() [all...] |
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | event_update.c | 11 #include "tool.h" 15 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() 42 struct perf_tool tool; member 46 static int process_event_name(struct perf_tool *tool, in process_event_name() argument 51 struct event_name *tmp = container_of(tool, struct event_name, tool); in process_event_name() 60 static int process_event_cpus(struct perf_tool *tool __maybe_unused, in process_event_cpus() 109 !perf_event__synthesize_event_update_name(&tmp.tool, evsel, process_event_name)); in test__event_update() 114 !perf_event__synthesize_event_update_cpus(&tmp.tool, evse in test__event_update() [all...] |
/kernel/linux/linux-5.10/drivers/input/tablet/ |
H A D | wacom_serial4.c | 70 * bit 6 Sign of pressure data; or wheel-rel for cursor tool 71 * bit 5 P7; or REL1 for cursor tool 72 * bit 4 P6; or REL0 for cursor tool 173 unsigned int tool; member 312 unsigned int tool; in wacom_handle_packet() local 333 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; in wacom_handle_packet() 335 tool = CURSOR; in wacom_handle_packet() 337 if (tool != wacom->tool && wacom->tool ! in wacom_handle_packet() [all...] |
/kernel/linux/linux-6.6/drivers/input/tablet/ |
H A D | wacom_serial4.c | 70 * bit 6 Sign of pressure data; or wheel-rel for cursor tool 71 * bit 5 P7; or REL1 for cursor tool 72 * bit 4 P6; or REL0 for cursor tool 173 unsigned int tool; member 312 unsigned int tool; in wacom_handle_packet() local 333 tool = (button & wacom->eraser_mask) ? ERASER : STYLUS; in wacom_handle_packet() 335 tool = CURSOR; in wacom_handle_packet() 337 if (tool != wacom->tool && wacom->tool ! in wacom_handle_packet() [all...] |