aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/callchain.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/callchain.h')
-rw-r--r--tools/perf/util/callchain.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/util/callchain.h b/tools/perf/util/callchain.h
index fa1cd2f71fd3..c942daa712e6 100644
--- a/tools/perf/util/callchain.h
+++ b/tools/perf/util/callchain.h
@@ -4,6 +4,7 @@
4#include "../perf.h" 4#include "../perf.h"
5#include "list.h" 5#include "list.h"
6#include "rbtree.h" 6#include "rbtree.h"
7#include "symbol.h"
7 8
8 9
9struct callchain_node { 10struct callchain_node {
@@ -18,6 +19,7 @@ struct callchain_node {
18 19
19struct callchain_list { 20struct callchain_list {
20 unsigned long ip; 21 unsigned long ip;
22 struct symbol *sym;
21 struct list_head list; 23 struct list_head list;
22}; 24};
23 25
@@ -28,6 +30,7 @@ static inline void callchain_init(struct callchain_node *node)
28 INIT_LIST_HEAD(&node->val); 30 INIT_LIST_HEAD(&node->val);
29} 31}
30 32
31void append_chain(struct callchain_node *root, struct ip_callchain *chain); 33void append_chain(struct callchain_node *root, struct ip_callchain *chain,
34 struct symbol **syms);
32void sort_chain_to_rbtree(struct rb_root *rb_root, struct callchain_node *node); 35void sort_chain_to_rbtree(struct rb_root *rb_root, struct callchain_node *node);
33#endif 36#endif