diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2009-11-10 22:51:04 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-11 01:30:18 -0500 |
commit | 57f395a7eabb913d3605d7392be5bdb0837c9f3d (patch) | |
tree | 141135524cbdb9fa27b48f361443a91b10726f7d /tools/perf/util/event.h | |
parent | 8671dab9d5b2f0b444b8d09792384dccbfd43d14 (diff) |
perf tools: Split up build id saving into fetch and write
We are saving the build id once we stop the profiling. And only
after doing that we know if we need to set that feature in the
header through the feature bitmap.
But if we want a proper feature support in the headers, using a
rule of offset/size pairs in sections, we need to know in
advance how many features we need to set in the headers, so that
we can reserve rooms for their section headers.
The current state doesn't allow that, as it forces us to first
save the build-ids to the file right after the datas instead of
planning any structured layout.
That's why this splits up the build-ids processing in two parts:
one that fetches the build-ids from the Dso objects, and one
that saves them into the file.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp>
LKML-Reference: <1257911467-28276-3-git-send-email-fweisbec@gmail.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 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/event.h b/tools/perf/util/event.h index 34c6fcb82d92..1f771ce3a957 100644 --- a/tools/perf/util/event.h +++ b/tools/perf/util/event.h | |||
@@ -69,6 +69,13 @@ struct build_id_event { | |||
69 | char filename[]; | 69 | char filename[]; |
70 | }; | 70 | }; |
71 | 71 | ||
72 | struct build_id_list { | ||
73 | struct build_id_event event; | ||
74 | struct list_head list; | ||
75 | const char *dso_name; | ||
76 | int len; | ||
77 | }; | ||
78 | |||
72 | typedef union event_union { | 79 | typedef union event_union { |
73 | struct perf_event_header header; | 80 | struct perf_event_header header; |
74 | struct ip_event ip; | 81 | struct ip_event ip; |