diff options
author | Stephane Eranian <eranian@google.com> | 2011-01-25 17:32:01 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-27 19:21:53 +0100 |
commit | d038b12c6d773a4b9f69ca5243773bf6314f7ee9 (patch) | |
tree | c59c68b0e94c3a84d8ebd8fe48974c616f2ae303 /kernel/watchdog.c | |
parent | 88d4f0db7fa8785859c1d637f9aac210932b6216 (diff) | |
download | op-kernel-dev-d038b12c6d773a4b9f69ca5243773bf6314f7ee9.zip op-kernel-dev-d038b12c6d773a4b9f69ca5243773bf6314f7ee9.tar.gz |
perf: Fix Pentium4 raw event validation
This patch fixes some issues with raw event validation on
Pentium 4 (Netburst) based processors.
As I was testing libpfm4 Netburst support, I ran into two
problems in the p4_validate_raw_event() function:
- the shared field must be checked ONLY when HT is on
- the binding to ESCR register was missing
The second item was causing raw events to not be encoded
correctly compared to generic PMU events.
With this patch, I can now pass Netburst events to libpfm4
examples and get meaningful results:
$ task -e global_power_events:running:u noploop 1
noploop for 1 seconds
3,206,304,898 global_power_events:running
Signed-off-by: Stephane Eranian <eranian@google.com>
Acked-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: peterz@infradead.org
Cc: paulus@samba.org
Cc: davem@davemloft.net
Cc: fweisbec@gmail.com
Cc: perfmon2-devel@lists.sf.net
Cc: eranian@gmail.com
Cc: robert.richter@amd.com
Cc: acme@redhat.com
Cc: gorcunov@gmail.com
Cc: ming.m.lin@intel.com
LKML-Reference: <4d3efb2f.1252d80a.1a80.ffffc83f@mx.google.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/watchdog.c')
0 files changed, 0 insertions, 0 deletions