diff options
Diffstat (limited to 'tools/perf/util/thread.h')
| -rw-r--r-- | tools/perf/util/thread.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 8c75fa774706..160fd066a7d1 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h | |||
| @@ -8,6 +8,8 @@ | |||
| 8 | #include "symbol.h" | 8 | #include "symbol.h" |
| 9 | #include <strlist.h> | 9 | #include <strlist.h> |
| 10 | 10 | ||
| 11 | struct thread_stack; | ||
| 12 | |||
| 11 | struct thread { | 13 | struct thread { |
| 12 | union { | 14 | union { |
| 13 | struct rb_node rb_node; | 15 | struct rb_node rb_node; |
| @@ -23,8 +25,10 @@ struct thread { | |||
| 23 | bool dead; /* if set thread has exited */ | 25 | bool dead; /* if set thread has exited */ |
| 24 | struct list_head comm_list; | 26 | struct list_head comm_list; |
| 25 | int comm_len; | 27 | int comm_len; |
| 28 | u64 db_id; | ||
| 26 | 29 | ||
| 27 | void *priv; | 30 | void *priv; |
| 31 | struct thread_stack *ts; | ||
| 28 | }; | 32 | }; |
| 29 | 33 | ||
| 30 | struct machine; | 34 | struct machine; |
| @@ -54,16 +58,15 @@ void thread__insert_map(struct thread *thread, struct map *map); | |||
| 54 | int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp); | 58 | int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp); |
| 55 | size_t thread__fprintf(struct thread *thread, FILE *fp); | 59 | size_t thread__fprintf(struct thread *thread, FILE *fp); |
| 56 | 60 | ||
| 57 | void thread__find_addr_map(struct thread *thread, struct machine *machine, | 61 | void thread__find_addr_map(struct thread *thread, |
| 58 | u8 cpumode, enum map_type type, u64 addr, | 62 | u8 cpumode, enum map_type type, u64 addr, |
| 59 | struct addr_location *al); | 63 | struct addr_location *al); |
| 60 | 64 | ||
| 61 | void thread__find_addr_location(struct thread *thread, struct machine *machine, | 65 | void thread__find_addr_location(struct thread *thread, |
| 62 | u8 cpumode, enum map_type type, u64 addr, | 66 | u8 cpumode, enum map_type type, u64 addr, |
| 63 | struct addr_location *al); | 67 | struct addr_location *al); |
| 64 | 68 | ||
| 65 | void thread__find_cpumode_addr_location(struct thread *thread, | 69 | void thread__find_cpumode_addr_location(struct thread *thread, |
| 66 | struct machine *machine, | ||
| 67 | enum map_type type, u64 addr, | 70 | enum map_type type, u64 addr, |
| 68 | struct addr_location *al); | 71 | struct addr_location *al); |
| 69 | 72 | ||
