aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/thread.h')
-rw-r--r--tools/perf/util/thread.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h
index 8702c6b4163a..373c055989ed 100644
--- a/tools/perf/util/thread.h
+++ b/tools/perf/util/thread.h
@@ -26,6 +26,7 @@ struct thread {
26}; 26};
27 27
28struct machine; 28struct machine;
29struct comm;
29 30
30struct thread *thread__new(pid_t pid, pid_t tid); 31struct thread *thread__new(pid_t pid, pid_t tid);
31void thread__delete(struct thread *self); 32void thread__delete(struct thread *self);
@@ -36,6 +37,7 @@ static inline void thread__exited(struct thread *thread)
36 37
37int thread__set_comm(struct thread *thread, const char *comm, u64 timestamp); 38int thread__set_comm(struct thread *thread, const char *comm, u64 timestamp);
38int thread__comm_len(struct thread *self); 39int thread__comm_len(struct thread *self);
40struct comm *thread__comm(const struct thread *thread);
39const char *thread__comm_str(const struct thread *thread); 41const char *thread__comm_str(const struct thread *thread);
40void thread__insert_map(struct thread *self, struct map *map); 42void thread__insert_map(struct thread *self, struct map *map);
41int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp); 43int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp);