diff options
author | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-07 23:49:35 (GMT) |
commit | 62b8c978ee6b8d135d9e7953221de58000dba986 (patch) | |
tree | 683b04b2e627f6710c22c151b23c8cc9a165315e /tools/perf/util/machine.h | |
parent | 78fd82238d0e5716578c326404184a27ba67fd6e (diff) | |
download | linux-fsl-qoriq-62b8c978ee6b8d135d9e7953221de58000dba986.tar.xz |
Rewind v3.13-rc3+ (78fd82238d0e5716) to v3.12
Diffstat (limited to 'tools/perf/util/machine.h')
-rw-r--r-- | tools/perf/util/machine.h | 41 |
1 files changed, 8 insertions, 33 deletions
diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h index 4771330..58a6be1 100644 --- a/tools/perf/util/machine.h +++ b/tools/perf/util/machine.h @@ -4,7 +4,6 @@ #include <sys/types.h> #include <linux/rbtree.h> #include "map.h" -#include "event.h" struct addr_location; struct branch_stack; @@ -41,20 +40,13 @@ struct map *machine__kernel_map(struct machine *machine, enum map_type type) struct thread *machine__find_thread(struct machine *machine, pid_t tid); -int machine__process_comm_event(struct machine *machine, union perf_event *event, - struct perf_sample *sample); -int machine__process_exit_event(struct machine *machine, union perf_event *event, - struct perf_sample *sample); -int machine__process_fork_event(struct machine *machine, union perf_event *event, - struct perf_sample *sample); -int machine__process_lost_event(struct machine *machine, union perf_event *event, - struct perf_sample *sample); -int machine__process_mmap_event(struct machine *machine, union perf_event *event, - struct perf_sample *sample); -int machine__process_mmap2_event(struct machine *machine, union perf_event *event, - struct perf_sample *sample); -int machine__process_event(struct machine *machine, union perf_event *event, - struct perf_sample *sample); +int machine__process_comm_event(struct machine *machine, union perf_event *event); +int machine__process_exit_event(struct machine *machine, union perf_event *event); +int machine__process_fork_event(struct machine *machine, union perf_event *event); +int machine__process_lost_event(struct machine *machine, union perf_event *event); +int machine__process_mmap_event(struct machine *machine, union perf_event *event); +int machine__process_mmap2_event(struct machine *machine, union perf_event *event); +int machine__process_event(struct machine *machine, union perf_event *event); typedef void (*machine__process_t)(struct machine *machine, void *data); @@ -82,7 +74,6 @@ char *machine__mmap_name(struct machine *machine, char *bf, size_t size); void machines__set_symbol_filter(struct machines *machines, symbol_filter_t symbol_filter); -struct machine *machine__new_host(void); int machine__init(struct machine *machine, const char *root_dir, pid_t pid); void machine__exit(struct machine *machine); void machine__delete_dead_threads(struct machine *machine); @@ -100,8 +91,7 @@ int machine__resolve_callchain(struct machine *machine, struct thread *thread, struct perf_sample *sample, struct symbol **parent, - struct addr_location *root_al, - int max_stack); + struct addr_location *root_al); /* * Default guest kernel is defined by parameter --guestkallsyms @@ -175,19 +165,4 @@ void machines__destroy_kernel_maps(struct machines *machines); size_t machine__fprintf_vmlinux_path(struct machine *machine, FILE *fp); -int machine__for_each_thread(struct machine *machine, - int (*fn)(struct thread *thread, void *p), - void *priv); - -int __machine__synthesize_threads(struct machine *machine, struct perf_tool *tool, - struct target *target, struct thread_map *threads, - perf_event__handler_t process, bool data_mmap); -static inline -int machine__synthesize_threads(struct machine *machine, struct target *target, - struct thread_map *threads, bool data_mmap) -{ - return __machine__synthesize_threads(machine, NULL, target, threads, - perf_event__process, data_mmap); -} - #endif /* __PERF_MACHINE_H */ |