comm.h 458 B

123456789101112131415161718192021
  1. #ifndef __PERF_COMM_H
  2. #define __PERF_COMM_H
  3. #include "../perf.h"
  4. #include <linux/rbtree.h>
  5. #include <linux/list.h>
  6. struct comm_str;
  7. struct comm {
  8. struct comm_str *comm_str;
  9. u64 start;
  10. struct list_head list;
  11. };
  12. void comm__free(struct comm *comm);
  13. struct comm *comm__new(const char *str, u64 timestamp);
  14. const char *comm__str(const struct comm *comm);
  15. void comm__override(struct comm *comm, const char *str, u64 timestamp);
  16. #endif /* __PERF_COMM_H */