blob: 2a91b959de6272222a7bbb17843970a0cf9e617a [file] [log] [blame]
Jiri Olsaacbe6132016-02-15 09:34:34 +01001#ifndef __PERF_MEM_EVENTS_H
2#define __PERF_MEM_EVENTS_H
3
4#include <stdbool.h>
5
6struct perf_mem_event {
7 bool record;
Jiri Olsa54fbad52016-02-24 09:46:42 +01008 bool supported;
Jiri Olsace1e22b2016-02-15 09:34:35 +01009 const char *tag;
Jiri Olsaacbe6132016-02-15 09:34:34 +010010 const char *name;
Jiri Olsa54fbad52016-02-24 09:46:42 +010011 const char *sysfs_name;
Jiri Olsaacbe6132016-02-15 09:34:34 +010012};
13
14enum {
15 PERF_MEM_EVENTS__LOAD,
16 PERF_MEM_EVENTS__STORE,
17 PERF_MEM_EVENTS__MAX,
18};
19
20extern struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX];
21
Jiri Olsace1e22b2016-02-15 09:34:35 +010022int perf_mem_events__parse(const char *str);
Jiri Olsa54fbad52016-02-24 09:46:42 +010023int perf_mem_events__init(void);
Jiri Olsace1e22b2016-02-15 09:34:35 +010024
Jiri Olsa2ba7ac52016-02-24 09:46:43 +010025char *perf_mem_events__name(int i);
Jiri Olsaacbe6132016-02-15 09:34:34 +010026#endif /* __PERF_MEM_EVENTS_H */