diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2009-10-26 19:23:18 -0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-10-27 13:51:53 +0100 |
commit | 234fbbf508c58c5084292b11b242377553897459 (patch) | |
tree | ecda0e2b0aaa0e3ebd5cab7376817baacc7e2718 /tools/perf/util/event.h | |
parent | 7f3bedcc93f935631d2363f23de1cc80f04fdf3e (diff) | |
download | talos-obmc-linux-234fbbf508c58c5084292b11b242377553897459.tar.gz talos-obmc-linux-234fbbf508c58c5084292b11b242377553897459.zip |
perf tools: Generalize event synthesizing routines
Because we will need it in 'perf top' to support userspace
symbols for existing threads.
Now we pass a callback that will receive the synthesized event
and then write it to the output file in 'perf record' and in the
upcoming patch for 'perf top' we will just immediatelly create
the in memory representation of threads and maps.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Mike Galbraith <efault@gmx.de>
LKML-Reference: <1256592199-9608-2-git-send-email-acme@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/event.h')
-rw-r--r-- | tools/perf/util/event.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index d972b4b0d38c..2ae1177be40b 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h @@ -111,4 +111,7 @@ struct map *map__clone(struct map *self); int map__overlap(struct map *l, struct map *r); size_t map__fprintf(struct map *self, FILE *fp); +int event__synthesize_thread(pid_t pid, int (*process)(event_t *event)); +void event__synthesize_threads(int (*process)(event_t *event)); + #endif /* __PERF_RECORD_H */ |