comm.h 496 B

1234567891011121314151617181920212223
  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. bool exec;
  12. };
  13. void comm__free(struct comm *comm);
  14. struct comm *comm__new(const char *str, u64 timestamp, bool exec);
  15. const char *comm__str(const struct comm *comm);
  16. int comm__override(struct comm *comm, const char *str, u64 timestamp,
  17. bool exec);
  18. #endif /* __PERF_COMM_H */