comm.h 561 B

123456789101112131415161718192021222324252627
  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. union { /* Tool specific area */
  13. void *priv;
  14. u64 db_id;
  15. };
  16. };
  17. void comm__free(struct comm *comm);
  18. struct comm *comm__new(const char *str, u64 timestamp, bool exec);
  19. const char *comm__str(const struct comm *comm);
  20. int comm__override(struct comm *comm, const char *str, u64 timestamp,
  21. bool exec);
  22. #endif /* __PERF_COMM_H */