diff options
Diffstat (limited to 'tools/perf/util/machine.h')
-rw-r--r-- | tools/perf/util/machine.h | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h index 58a6be1fc739..2389ba81fafe 100644 --- a/tools/perf/util/machine.h +++ b/tools/perf/util/machine.h | |||
@@ -40,13 +40,20 @@ struct map *machine__kernel_map(struct machine *machine, enum map_type type) | |||
40 | 40 | ||
41 | struct thread *machine__find_thread(struct machine *machine, pid_t tid); | 41 | struct thread *machine__find_thread(struct machine *machine, pid_t tid); |
42 | 42 | ||
43 | int machine__process_comm_event(struct machine *machine, union perf_event *event); | 43 | int machine__process_comm_event(struct machine *machine, union perf_event *event, |
44 | int machine__process_exit_event(struct machine *machine, union perf_event *event); | 44 | struct perf_sample *sample); |
45 | int machine__process_fork_event(struct machine *machine, union perf_event *event); | 45 | int machine__process_exit_event(struct machine *machine, union perf_event *event, |
46 | int machine__process_lost_event(struct machine *machine, union perf_event *event); | 46 | struct perf_sample *sample); |
47 | int machine__process_mmap_event(struct machine *machine, union perf_event *event); | 47 | int machine__process_fork_event(struct machine *machine, union perf_event *event, |
48 | int machine__process_mmap2_event(struct machine *machine, union perf_event *event); | 48 | struct perf_sample *sample); |
49 | int machine__process_event(struct machine *machine, union perf_event *event); | 49 | int machine__process_lost_event(struct machine *machine, union perf_event *event, |
50 | struct perf_sample *sample); | ||
51 | int machine__process_mmap_event(struct machine *machine, union perf_event *event, | ||
52 | struct perf_sample *sample); | ||
53 | int machine__process_mmap2_event(struct machine *machine, union perf_event *event, | ||
54 | struct perf_sample *sample); | ||
55 | int machine__process_event(struct machine *machine, union perf_event *event, | ||
56 | struct perf_sample *sample); | ||
50 | 57 | ||
51 | typedef void (*machine__process_t)(struct machine *machine, void *data); | 58 | typedef void (*machine__process_t)(struct machine *machine, void *data); |
52 | 59 | ||
@@ -74,6 +81,7 @@ char *machine__mmap_name(struct machine *machine, char *bf, size_t size); | |||
74 | void machines__set_symbol_filter(struct machines *machines, | 81 | void machines__set_symbol_filter(struct machines *machines, |
75 | symbol_filter_t symbol_filter); | 82 | symbol_filter_t symbol_filter); |
76 | 83 | ||
84 | struct machine *machine__new_host(void); | ||
77 | int machine__init(struct machine *machine, const char *root_dir, pid_t pid); | 85 | int machine__init(struct machine *machine, const char *root_dir, pid_t pid); |
78 | void machine__exit(struct machine *machine); | 86 | void machine__exit(struct machine *machine); |
79 | void machine__delete_dead_threads(struct machine *machine); | 87 | void machine__delete_dead_threads(struct machine *machine); |
@@ -91,7 +99,8 @@ int machine__resolve_callchain(struct machine *machine, | |||
91 | struct thread *thread, | 99 | struct thread *thread, |
92 | struct perf_sample *sample, | 100 | struct perf_sample *sample, |
93 | struct symbol **parent, | 101 | struct symbol **parent, |
94 | struct addr_location *root_al); | 102 | struct addr_location *root_al, |
103 | int max_stack); | ||
95 | 104 | ||
96 | /* | 105 | /* |
97 | * Default guest kernel is defined by parameter --guestkallsyms | 106 | * Default guest kernel is defined by parameter --guestkallsyms |
@@ -165,4 +174,8 @@ void machines__destroy_kernel_maps(struct machines *machines); | |||
165 | 174 | ||
166 | size_t machine__fprintf_vmlinux_path(struct machine *machine, FILE *fp); | 175 | size_t machine__fprintf_vmlinux_path(struct machine *machine, FILE *fp); |
167 | 176 | ||
177 | int machine__for_each_thread(struct machine *machine, | ||
178 | int (*fn)(struct thread *thread, void *p), | ||
179 | void *priv); | ||
180 | |||
168 | #endif /* __PERF_MACHINE_H */ | 181 | #endif /* __PERF_MACHINE_H */ |