Red Hat Bugzilla – Bug 458824
Oprofile need to enable/disable all the counters for intel family 6
Last modified: 2009-01-20 15:21:28 EST
From Linus's tree:
Author: Arun Sharma <email@example.com>
Date: Fri Sep 29 02:00:01 2006 -0700
[PATCH] oprofile: ppro: need to enable/disable all the counters
Need to enable/disable all the counters instead of just counter 0.
This affects all cpus with family=6, including i386/core. Usual symptom:
only counter 0 provides samples. Other counters don't produce samples.
Signed-off-by: Arun Sharma <firstname.lastname@example.org>
Cc: Philippe Elie <email@example.com>
Cc: John Levon <firstname.lastname@example.org>
Signed-off-by: Andrew Morton <email@example.com>
Signed-off-by: Linus Torvalds <firstname.lastname@example.org>
The upstream commit mentioned in comment#1 does not apply cleanly, because it depends on this one:
Author: Don Zickus <email@example.com>
Date: Tue Sep 26 10:52:26 2006 +0200
[PATCH] i386: Utilize performance counter reservation framework in oprofile
Incorporates the new performance counter reservation system in oprofile.
Also cleans up a lot of the initialization code. The code original zero'd
out every register associated with performance counters regardless if those
registers were used or not. This causes issues with the nmi watchdog.
Now oprofile tries to reserve registers and gives up if it can't get them.
Signed-off-by: Don Zickus <firstname.lastname@example.org>
Signed-off-by: Andi Kleen <email@example.com>
which is just one part of a fairly invasive rework of the NMI watchdog. I figure we just need parts of the initialization cleanup here.
Created attachment 314216 [details]
Make oprofile enable all perf counters on intel family 6
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
A fix for the bugzilla is included in the latest RHEL-5 kernel package. The binary packages can be found at
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.