aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephane Eranian <eranian@google.com>2013-01-24 10:10:33 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-04-01 11:16:49 -0400
commita63fcab45273174e665e6a8c9fa1a79a9046d0d5 (patch)
tree9e226f2d0b16af00e07762cef783c7cae2b27b15
parentf20093eef5f7843a25adfc0512617d4b1ff1aa6e (diff)
perf/x86: Export PEBS load latency threshold register to sysfs
Make the PEBS Load Latency threshold register layout and encoding visible to user level tools. 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-10-git-send-email-eranian@google.com Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--arch/x86/kernel/cpu/perf_event_intel.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
index d5ea5a03cd37..ae6096b175b9 100644
--- a/arch/x86/kernel/cpu/perf_event_intel.c
+++ b/arch/x86/kernel/cpu/perf_event_intel.c
@@ -1781,6 +1781,8 @@ static void intel_pmu_flush_branch_stack(void)
1781 1781
1782PMU_FORMAT_ATTR(offcore_rsp, "config1:0-63"); 1782PMU_FORMAT_ATTR(offcore_rsp, "config1:0-63");
1783 1783
1784PMU_FORMAT_ATTR(ldlat, "config1:0-15");
1785
1784static struct attribute *intel_arch3_formats_attr[] = { 1786static struct attribute *intel_arch3_formats_attr[] = {
1785 &format_attr_event.attr, 1787 &format_attr_event.attr,
1786 &format_attr_umask.attr, 1788 &format_attr_umask.attr,
@@ -1791,6 +1793,7 @@ static struct attribute *intel_arch3_formats_attr[] = {
1791 &format_attr_cmask.attr, 1793 &format_attr_cmask.attr,
1792 1794
1793 &format_attr_offcore_rsp.attr, /* XXX do NHM/WSM + SNB breakout */ 1795 &format_attr_offcore_rsp.attr, /* XXX do NHM/WSM + SNB breakout */
1796 &format_attr_ldlat.attr, /* PEBS load latency */
1794 NULL, 1797 NULL,
1795}; 1798};
1796 1799