aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/perf_event.h
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2013-01-24 10:10:26 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-03-26 16:36:45 -0400
commit3a54aaa0a3ddb2cf2ec1b94a94024e9a8a8af962 (patch)
treeb9667eba20bd202f6bd6a6afeaeb18ba58ba24c2 /include/linux/perf_event.h
parent1a6461b12872e9622c231928e1620504d741cc79 (diff)
perf/x86: Improve sysfs event mapping with event string
This patch extends Jiri's changes to make generic events mapping visible via sysfs. The patch extends the mechanism to non-generic events by allowing the mappings to be hardcoded in strings. This mechanism will be used by the PEBS-LL patch later on. Signed-off-by: Stephane Eranian <eranian@google.com> Cc: peterz@infradead.org Cc: ak@linux.intel.com Cc: acme@redhat.com Cc: jolsa@redhat.com Cc: namhyung.kim@lge.com Link: http://lkml.kernel.org/r/1359040242-8269-3-git-send-email-eranian@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org> [ fixed up conflict with 2663960 "perf: Make EVENT_ATTR global" ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include/linux/perf_event.h')
-rw-r--r--include/linux/perf_event.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
index 8737e1cee8b2..1c592114c437 100644
--- a/include/linux/perf_event.h
+++ b/include/linux/perf_event.h
@@ -809,6 +809,7 @@ do { \
809struct perf_pmu_events_attr { 809struct perf_pmu_events_attr {
810 struct device_attribute attr; 810 struct device_attribute attr;
811 u64 id; 811 u64 id;
812 const char *event_str;
812}; 813};
813 814
814#define PMU_EVENT_ATTR(_name, _var, _id, _show) \ 815#define PMU_EVENT_ATTR(_name, _var, _id, _show) \