]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Improve sysfs event mapping with event string
authorStephane Eranian <eranian@google.com>
Thu, 24 Jan 2013 15:10:26 +0000 (16:10 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Mar 2013 20:36:45 +0000 (17:36 -0300)
commit9a0ff171e19e01376a699746123d2b74333c6eb8
treeb9667eba20bd202f6bd6a6afeaeb18ba58ba24c2
parent51b68fb0007f54b4917a4feb148bbf38bcf7a5e3
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 1746309 "perf: Make EVENT_ATTR global" ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
arch/x86/kernel/cpu/perf_event.c
arch/x86/kernel/cpu/perf_event.h
include/linux/perf_event.h