2016-02-15 08:34:34 +00:00
|
|
|
#ifndef __PERF_MEM_EVENTS_H
|
|
|
|
#define __PERF_MEM_EVENTS_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
struct perf_mem_event {
|
|
|
|
bool record;
|
2016-02-24 08:46:42 +00:00
|
|
|
bool supported;
|
2016-02-15 08:34:35 +00:00
|
|
|
const char *tag;
|
2016-02-15 08:34:34 +00:00
|
|
|
const char *name;
|
2016-02-24 08:46:42 +00:00
|
|
|
const char *sysfs_name;
|
2016-02-15 08:34:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum {
|
|
|
|
PERF_MEM_EVENTS__LOAD,
|
|
|
|
PERF_MEM_EVENTS__STORE,
|
|
|
|
PERF_MEM_EVENTS__MAX,
|
|
|
|
};
|
|
|
|
|
|
|
|
extern struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX];
|
|
|
|
|
2016-02-15 08:34:35 +00:00
|
|
|
int perf_mem_events__parse(const char *str);
|
2016-02-24 08:46:42 +00:00
|
|
|
int perf_mem_events__init(void);
|
2016-02-15 08:34:35 +00:00
|
|
|
|
2016-02-24 08:46:43 +00:00
|
|
|
char *perf_mem_events__name(int i);
|
2016-02-15 08:34:34 +00:00
|
|
|
#endif /* __PERF_MEM_EVENTS_H */
|