mem-events.h 466 B

12345678910111213141516171819202122232425
  1. #ifndef __PERF_MEM_EVENTS_H
  2. #define __PERF_MEM_EVENTS_H
  3. #include <stdbool.h>
  4. struct perf_mem_event {
  5. bool record;
  6. bool supported;
  7. const char *tag;
  8. const char *name;
  9. const char *sysfs_name;
  10. };
  11. enum {
  12. PERF_MEM_EVENTS__LOAD,
  13. PERF_MEM_EVENTS__STORE,
  14. PERF_MEM_EVENTS__MAX,
  15. };
  16. extern struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX];
  17. int perf_mem_events__parse(const char *str);
  18. int perf_mem_events__init(void);
  19. #endif /* __PERF_MEM_EVENTS_H */