summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/mem-events.h
blob: 2995bae6ac335f799cbc8ef930c6e8b68b45a92e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef __PERF_MEM_EVENTS_H
#define __PERF_MEM_EVENTS_H

#include <stdbool.h>

struct perf_mem_event {
	bool		record;
	const char	*tag;
	const char	*name;
};

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];

int perf_mem_events__parse(const char *str);

#endif /* __PERF_MEM_EVENTS_H */
OpenPOWER on IntegriCloud