-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Jiri Olsa
authored and
Arnaldo Carvalho de Melo
committed
Feb 23, 2016
1 parent
d392711
commit acbe613
Showing
4 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef __PERF_MEM_EVENTS_H | ||
#define __PERF_MEM_EVENTS_H | ||
|
||
#include <stdbool.h> | ||
|
||
struct perf_mem_event { | ||
bool record; | ||
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]; | ||
|
||
#endif /* __PERF_MEM_EVENTS_H */ |