summaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-gcd.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2011-12-15 17:56:36 +0100
committerIngo Molnar <mingo@elte.hu>2012-03-08 11:35:21 +0100
commit510419435c6948fb32959d691bf84eaba41ca474 (patch)
tree7ef449eebb611a41bdcbd987926fce9f33af7792 /lib/mpi/mpi-gcd.c
parent3f33ab1c0c741bfab2138c14ba1918a7905a1e8b (diff)
perf/x86: Implement IBS event configuration
This patch implements perf configuration for AMD IBS. The IBS pmu is selected using the type attribute in sysfs. There are two types of ibs pmus, for instruction fetch (IBS_FETCH) and for instruction execution (IBS_OP): /sys/bus/event_source/devices/ibs_fetch/type /sys/bus/event_source/devices/ibs_op/type Except for the sample period IBS can only be set up with raw config values and raw data samples. The event attributes for the syscall should be programmed like this (IBS_FETCH): type = get_pmu_type("/sys/bus/event_source/devices/ibs_fetch/type"); memset(&attr, 0, sizeof(attr)); attr.type = type; attr.sample_type = PERF_SAMPLE_CPU | PERF_SAMPLE_RAW; attr.config = IBS_FETCH_CONFIG_DEFAULT; This implementation does not yet support 64 bit counters. It is limited to the hardware counter bit width which is 20 bits. 64 bit support can be added later. Signed-off-by: Robert Richter <robert.richter@amd.com> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1323968199-9326-2-git-send-email-robert.richter@amd.com Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/mpi/mpi-gcd.c')
0 files changed, 0 insertions, 0 deletions