diff options
Diffstat (limited to 'tools/perf/util/callchain.h')
| -rw-r--r-- | tools/perf/util/callchain.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/callchain.h b/tools/perf/util/callchain.h index f967aa47d0a1..b79ef2478a57 100644 --- a/tools/perf/util/callchain.h +++ b/tools/perf/util/callchain.h | |||
| @@ -122,7 +122,7 @@ struct callchain_list { | |||
| 122 | u64 iter_count; | 122 | u64 iter_count; |
| 123 | u64 iter_cycles; | 123 | u64 iter_cycles; |
| 124 | struct branch_type_stat brtype_stat; | 124 | struct branch_type_stat brtype_stat; |
| 125 | char *srcline; | 125 | const char *srcline; |
| 126 | struct list_head list; | 126 | struct list_head list; |
| 127 | }; | 127 | }; |
| 128 | 128 | ||
| @@ -136,6 +136,7 @@ struct callchain_cursor_node { | |||
| 136 | u64 ip; | 136 | u64 ip; |
| 137 | struct map *map; | 137 | struct map *map; |
| 138 | struct symbol *sym; | 138 | struct symbol *sym; |
| 139 | const char *srcline; | ||
| 139 | bool branch; | 140 | bool branch; |
| 140 | struct branch_flags branch_flags; | 141 | struct branch_flags branch_flags; |
| 141 | u64 branch_from; | 142 | u64 branch_from; |
| @@ -202,7 +203,8 @@ static inline void callchain_cursor_reset(struct callchain_cursor *cursor) | |||
| 202 | int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip, | 203 | int callchain_cursor_append(struct callchain_cursor *cursor, u64 ip, |
| 203 | struct map *map, struct symbol *sym, | 204 | struct map *map, struct symbol *sym, |
| 204 | bool branch, struct branch_flags *flags, | 205 | bool branch, struct branch_flags *flags, |
| 205 | int nr_loop_iter, u64 iter_cycles, u64 branch_from); | 206 | int nr_loop_iter, u64 iter_cycles, u64 branch_from, |
| 207 | const char *srcline); | ||
| 206 | 208 | ||
| 207 | /* Close a cursor writing session. Initialize for the reader */ | 209 | /* Close a cursor writing session. Initialize for the reader */ |
| 208 | static inline void callchain_cursor_commit(struct callchain_cursor *cursor) | 210 | static inline void callchain_cursor_commit(struct callchain_cursor *cursor) |
