0001
0002 #ifndef __PERF_COMM_H
0003 #define __PERF_COMM_H
0004
0005 #include <linux/list.h>
0006 #include <linux/types.h>
0007 #include <stdbool.h>
0008
0009 struct comm_str;
0010
0011 struct comm {
0012 struct comm_str *comm_str;
0013 u64 start;
0014 struct list_head list;
0015 bool exec;
0016 union {
0017 void *priv;
0018 u64 db_id;
0019 };
0020 };
0021
0022 void comm__free(struct comm *comm);
0023 struct comm *comm__new(const char *str, u64 timestamp, bool exec);
0024 const char *comm__str(const struct comm *comm);
0025 int comm__override(struct comm *comm, const char *str, u64 timestamp,
0026 bool exec);
0027
0028 #endif