diff options
author | David S. Miller <davem@davemloft.net> | 2010-05-19 02:01:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-19 02:01:55 -0400 |
commit | 2ec8c6bb5d8f3a62a79f463525054bae1e3d4487 (patch) | |
tree | fa7f8400ac685fb52e96f64997c7c682fc2aa021 /tools/perf/util/callchain.h | |
parent | 7b39f90fabcf9e2af0cd79d0a60440d821e22b56 (diff) | |
parent | 537b60d17894b7c19a6060feae40299d7109d6e7 (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Conflicts:
include/linux/mod_devicetable.h
scripts/mod/file2alias.c
Diffstat (limited to 'tools/perf/util/callchain.h')
-rw-r--r-- | tools/perf/util/callchain.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/perf/util/callchain.h b/tools/perf/util/callchain.h index ad4626de4c2b..1cba1f5504e7 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 <linux/list.h> | 5 | #include <linux/list.h> |
6 | #include <linux/rbtree.h> | 6 | #include <linux/rbtree.h> |
7 | #include "event.h" | ||
7 | #include "util.h" | 8 | #include "util.h" |
8 | #include "symbol.h" | 9 | #include "symbol.h" |
9 | 10 | ||
@@ -33,13 +34,14 @@ typedef void (*sort_chain_func_t)(struct rb_root *, struct callchain_node *, | |||
33 | 34 | ||
34 | struct callchain_param { | 35 | struct callchain_param { |
35 | enum chain_mode mode; | 36 | enum chain_mode mode; |
37 | u32 print_limit; | ||
36 | double min_percent; | 38 | double min_percent; |
37 | sort_chain_func_t sort; | 39 | sort_chain_func_t sort; |
38 | }; | 40 | }; |
39 | 41 | ||
40 | struct callchain_list { | 42 | struct callchain_list { |
41 | u64 ip; | 43 | u64 ip; |
42 | struct symbol *sym; | 44 | struct map_symbol ms; |
43 | struct list_head list; | 45 | struct list_head list; |
44 | }; | 46 | }; |
45 | 47 | ||
@@ -56,6 +58,8 @@ static inline u64 cumul_hits(struct callchain_node *node) | |||
56 | } | 58 | } |
57 | 59 | ||
58 | int register_callchain_param(struct callchain_param *param); | 60 | int register_callchain_param(struct callchain_param *param); |
59 | void append_chain(struct callchain_node *root, struct ip_callchain *chain, | 61 | int append_chain(struct callchain_node *root, struct ip_callchain *chain, |
60 | struct symbol **syms); | 62 | struct map_symbol *syms); |
63 | |||
64 | bool ip_callchain__valid(struct ip_callchain *chain, event_t *event); | ||
61 | #endif /* __PERF_CALLCHAIN_H */ | 65 | #endif /* __PERF_CALLCHAIN_H */ |