blob: fac5bd51befc4c4a2b6aafe5cd21220829334673 [file] [log] [blame]
Frederic Weisbecker1902efe2013-09-11 16:56:44 +02001#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
8struct comm_str;
9
10struct comm {
11 struct comm_str *comm_str;
12 u64 start;
13 struct list_head list;
14};
15
16void comm__free(struct comm *comm);
17struct comm *comm__new(const char *str, u64 timestamp);
18const char *comm__str(const struct comm *comm);
Frederic Weisbecker3178f582014-01-14 16:37:14 +010019int comm__override(struct comm *comm, const char *str, u64 timestamp);
Frederic Weisbecker1902efe2013-09-11 16:56:44 +020020
21#endif /* __PERF_COMM_H */