]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf/x86: Export Sandy Bridge uncore clockticks event in sysfs
authorStephane Eranian <eranian@google.com>
Wed, 29 Aug 2012 13:01:22 +0000 (15:01 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 13 Sep 2012 14:59:46 +0000 (16:59 +0200)
commit35534b201c9f115c68962c095b5a9aad204d025f
tree1c89f2d0fd099149ea645ae10760d4b70466fa6c
parente4390fa632d7c592e68e8106b7daea923ac995f5
perf/x86: Export Sandy Bridge uncore clockticks event in sysfs

This patch exports the clockticks event and its encoding to user level.
The clockticks event was exported for Nehalem/Westmere but not for Sandy
Bridge (client). Given that it uses a special encoding, it needs to be
exported to user tools, so users can do:

  # perf stat -a -C 0 -e uncore_cbox_0/clockticks/ sleep 1

Signed-off-by: Stephane Eranian <eranian@google.com>
Acked-by: Yan, Zheng <zheng.z.yan@intel.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120829130122.GA32336@quad
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_intel_uncore.c