Commit | Line | Data |
---|---|---|
acbe613e JO |
1 | #ifndef __PERF_MEM_EVENTS_H |
2 | #define __PERF_MEM_EVENTS_H | |
3 | ||
4 | #include <stdbool.h> | |
5 | ||
6 | struct perf_mem_event { | |
7 | bool record; | |
54fbad54 | 8 | bool supported; |
ce1e22b0 | 9 | const char *tag; |
acbe613e | 10 | const char *name; |
54fbad54 | 11 | const char *sysfs_name; |
acbe613e JO |
12 | }; |
13 | ||
14 | enum { | |
15 | PERF_MEM_EVENTS__LOAD, | |
16 | PERF_MEM_EVENTS__STORE, | |
17 | PERF_MEM_EVENTS__MAX, | |
18 | }; | |
19 | ||
20 | extern struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX]; | |
21 | ||
ce1e22b0 | 22 | int perf_mem_events__parse(const char *str); |
54fbad54 | 23 | int perf_mem_events__init(void); |
ce1e22b0 | 24 | |
2ba7ac58 | 25 | char *perf_mem_events__name(int i); |
acbe613e | 26 | #endif /* __PERF_MEM_EVENTS_H */ |