Frederic Weisbecker | 1902efe | 2013-09-11 16:56:44 +0200 | [diff] [blame] | 1 | #ifndef __PERF_COMM_H |
| 2 | #define __PERF_COMM_H |
| 3 | |
| 4 | #include "../perf.h" |
| 5 | #include <linux/rbtree.h> |
| 6 | #include <linux/list.h> |
| 7 | |
| 8 | struct comm_str; |
| 9 | |
| 10 | struct comm { |
| 11 | struct comm_str *comm_str; |
| 12 | u64 start; |
| 13 | struct list_head list; |
Adrian Hunter | 65de51f | 2014-07-31 09:00:44 +0300 | [diff] [blame^] | 14 | bool exec; |
Frederic Weisbecker | 1902efe | 2013-09-11 16:56:44 +0200 | [diff] [blame] | 15 | }; |
| 16 | |
| 17 | void comm__free(struct comm *comm); |
Adrian Hunter | 65de51f | 2014-07-31 09:00:44 +0300 | [diff] [blame^] | 18 | struct comm *comm__new(const char *str, u64 timestamp, bool exec); |
Frederic Weisbecker | 1902efe | 2013-09-11 16:56:44 +0200 | [diff] [blame] | 19 | const char *comm__str(const struct comm *comm); |
Adrian Hunter | 65de51f | 2014-07-31 09:00:44 +0300 | [diff] [blame^] | 20 | int comm__override(struct comm *comm, const char *str, u64 timestamp, |
| 21 | bool exec); |
Frederic Weisbecker | 1902efe | 2013-09-11 16:56:44 +0200 | [diff] [blame] | 22 | |
| 23 | #endif /* __PERF_COMM_H */ |