data_map.h 913 B

1234567891011121314151617181920212223242526272829
  1. #ifndef __PERF_DATAMAP_H
  2. #define __PERF_DATAMAP_H
  3. #include "event.h"
  4. #include "header.h"
  5. #include "session.h"
  6. typedef int (*event_type_handler_t)(event_t *);
  7. struct perf_file_handler {
  8. event_type_handler_t process_sample_event;
  9. event_type_handler_t process_mmap_event;
  10. event_type_handler_t process_comm_event;
  11. event_type_handler_t process_fork_event;
  12. event_type_handler_t process_exit_event;
  13. event_type_handler_t process_lost_event;
  14. event_type_handler_t process_read_event;
  15. event_type_handler_t process_throttle_event;
  16. event_type_handler_t process_unthrottle_event;
  17. int (*sample_type_check)(u64 sample_type);
  18. unsigned long total_unknown;
  19. };
  20. void register_perf_file_handler(struct perf_file_handler *handler);
  21. int perf_session__process_events(struct perf_session *self,
  22. int full_paths, int *cwdlen, char **cwd);
  23. int perf_header__read_build_ids(int input, u64 offset, u64 file_size);
  24. #endif