mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 13:05:08 +07:00
0c877d759d
Move meminfo's tlb display function into mem-events.c object, so it could be reused later from script code. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1456303616-26926-6-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
30 lines
599 B
C
30 lines
599 B
C
#ifndef __PERF_MEM_EVENTS_H
|
|
#define __PERF_MEM_EVENTS_H
|
|
|
|
#include <stdbool.h>
|
|
|
|
struct perf_mem_event {
|
|
bool record;
|
|
bool supported;
|
|
const char *tag;
|
|
const char *name;
|
|
const char *sysfs_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);
|
|
int perf_mem_events__init(void);
|
|
|
|
char *perf_mem_events__name(int i);
|
|
|
|
struct mem_info;
|
|
void perf_mem__tlb_scnprintf(char *out, size_t sz, struct mem_info *mem_info);
|
|
#endif /* __PERF_MEM_EVENTS_H */
|