perf tools: Add monitored events array
It will ease up configuration of memory events and addition of other memory events in following patches. 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/1455525293-8671-5-git-send-email-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
d392711095
commit
acbe613e0c
10
tools/perf/util/mem-events.c
Normal file
10
tools/perf/util/mem-events.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "mem-events.h"
|
||||
|
||||
#define E(n) { .name = n }
|
||||
|
||||
struct perf_mem_event perf_mem_events[PERF_MEM_EVENTS__MAX] = {
|
||||
E("cpu/mem-loads,ldlat=30/P"),
|
||||
E("cpu/mem-stores/P"),
|
||||
};
|
||||
|
||||
#undef E
|
Reference in New Issue
Block a user