Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux...
[linux/fpc-iii.git] / tools / perf / util / mem-events.h
blob5d6d93066a6e80e492634d6add9ad85f153211e6
1 #ifndef __PERF_MEM_EVENTS_H
2 #define __PERF_MEM_EVENTS_H
4 #include <stdbool.h>
6 struct perf_mem_event {
7 bool record;
8 bool supported;
9 const char *tag;
10 const char *name;
11 const char *sysfs_name;
14 enum {
15 PERF_MEM_EVENTS__LOAD,
16 PERF_MEM_EVENTS__STORE,
17 PERF_MEM_EVENTS__MAX,
20 extern struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX];
22 int perf_mem_events__parse(const char *str);
23 int perf_mem_events__init(void);
25 char *perf_mem_events__name(int i);
27 struct mem_info;
28 int perf_mem__tlb_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
29 int perf_mem__lvl_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
30 int perf_mem__snp_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
31 int perf_mem__lck_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
33 int perf_script__meminfo_scnprintf(char *bf, size_t size, struct mem_info *mem_info);
35 #endif /* __PERF_MEM_EVENTS_H */