aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/session.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-12-14 11:22:59 -0500
committerIngo Molnar <mingo@elte.hu>2009-12-14 11:34:55 -0500
commita328626b61aeda1a7d00a80c475c76ca1b815e0d (patch)
tree784f964c8c8950d58bccccaf3802a5a20efb4672 /tools/perf/util/session.h
parent4e4f06e4c8f17ea96f7dd76251cab99511026401 (diff)
perf session: Adopt resolve_callchain
This is really a generic library routine, so declutter builtin-report.c a bit by moving it to the library. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1260807780-19377-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r--tools/perf/util/session.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h
index 759d96022a39..a8f3a49ca43a 100644
--- a/tools/perf/util/session.h
+++ b/tools/perf/util/session.h
@@ -6,7 +6,9 @@
6#include "thread.h" 6#include "thread.h"
7#include <linux/rbtree.h> 7#include <linux/rbtree.h>
8 8
9struct ip_callchain;
9struct thread; 10struct thread;
11struct symbol;
10struct symbol_conf; 12struct symbol_conf;
11 13
12struct perf_session { 14struct perf_session {
@@ -50,6 +52,11 @@ void perf_session__delete(struct perf_session *self);
50int perf_session__process_events(struct perf_session *self, 52int perf_session__process_events(struct perf_session *self,
51 struct perf_event_ops *event_ops); 53 struct perf_event_ops *event_ops);
52 54
55struct symbol **perf_session__resolve_callchain(struct perf_session *self,
56 struct thread *thread,
57 struct ip_callchain *chain,
58 struct symbol **parent);
59
53int perf_header__read_build_ids(int input, u64 offset, u64 file_size); 60int perf_header__read_build_ids(int input, u64 offset, u64 file_size);
54 61
55#endif /* __PERF_SESSION_H */ 62#endif /* __PERF_SESSION_H */