Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 643478

Summary: [RFE] OProfile support for Intel Westmere processors
Product: Red Hat Enterprise Linux 6 Reporter: William Cohen <wcohen>
Component: oprofileAssignee: William Cohen <wcohen>
Status: CLOSED ERRATA QA Contact: qe-baseos-tools-bugs
Severity: low Docs Contact:
Priority: low    
Version: 6.1CC: fnadge, jane.lv, jvillalo, luyu, pmuller, rdassen, rdoty, snagar
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: 6.1   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: oprofile-0.9.6-12.el6 Doc Type: Enhancement
Doc Text:
Cause: The Intel Westmere processor has it own unique performance events sets in addition to the Intel architected performance events Consequence: OProfile was limited to the Intel Architected events Fix: Added code to identify the Intel Westmere processor and files listing the processor events Result: OProfile now provides Intel Westmere specific events
Story Points: ---
Clone Of: 643476 Environment:
Last Closed: 2011-05-19 13:06:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 643484    
Bug Blocks: 492884, 580566    

Description William Cohen 2010-10-15 17:45:14 UTC
+++ This bug was initially created as a clone of Bug #643476 +++

Description of problem:

For the Intel Westmere processors oprofile only provide the Intel architected performance monitoring events (i386/arch_perfmon). The Intel Westmere processors have events similar to the to Intel Nehalem processors and those events should be available in OProfile.

Comment 3 William Cohen 2010-11-16 16:02:25 UTC
Patches to support westmere have been proposed for upstream oprofile user-space package:

http://marc.info/?t=128923847600001&r=1&w=2

Comment 6 Florian Nadge 2011-02-03 11:53:20 UTC
Please be so kind and add a few key words to the Technical Note field of this
Bugzilla entry using the following structure:

Cause:

Consequence:

Fix:

Result:


For details, see:
https://bugzilla.redhat.com/page.cgi?id=fields.html#cf_release_notes

Thanks

Comment 7 Florian Nadge 2011-02-03 11:53:20 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause:

Consequence:

Fix:

Result:

Comment 8 William Cohen 2011-02-03 15:54:19 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,7 +1,7 @@
-Cause:
+Cause: The Intel Westmere processor has it own unique performance events sets in addition to the Intel architected performance events
 
-Consequence:
+Consequence: OProfile was limited to the Intel Architected events
 
-Fix:
+Fix: Added code to identify the Intel Westmere processor and files listing the processor events
 
-Result:+Result: OProfile now provides Intel Westmere specific events

Comment 9 John Villalovos 2011-02-23 15:37:34 UTC
Just now attempted to validate this on a Westmere-EP system and failed.

# cat /proc/cpu_info
<snip>
cpu family : 6
model : 44
model name : Intel(R) Xeon(R) CPU X5660 @ 2.80GHz
stepping : 1
<snip>

# opcontrol -l
oprofile: available events for CPU type "Intel Architectural Perfmon"

# rpm -q oprofile
oprofile-0.9.6-11.el6.x86_64

Comment 10 William Cohen 2011-02-23 18:46:14 UTC
An upstream patch for this has been suggested on the oprofile mailing list:

http://marc.info/?l=oprofile-list&m=129847950817265&w=2

Comment 11 Petr Muller 2011-03-11 12:30:58 UTC
Moving this to ASSIGNED, oprofile should respin for this one.

Comment 12 William Cohen 2011-03-11 14:17:25 UTC
The patch for the missing cpu models has been added to oprofile-0.9.6-12

Comment 13 Petr Muller 2011-03-14 18:21:52 UTC
Yes. Sorry for the noise.

Comment 15 Petr Muller 2011-03-15 16:13:40 UTC
cpu family	: 6
model		: 44
model name	: Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz

# diff -u ophelp-r.oprofile-0.9.6-7.el6.x86_64 ophelp-r.oprofile-0.9.6-12.el6.x86_64 
--- ophelp-r.oprofile-0.9.6-7.el6.x86_64	2011-03-15 12:09:19.339289854 -0400
+++ ophelp-r.oprofile-0.9.6-12.el6.x86_64	2011-03-15 12:09:43.757287207 -0400
@@ -1 +1 @@
-Intel Architectural Perfmon
+Intel Westmere microarchitecture

# diff -u ophelp.oprofile-0.9.6-7.el6.x86_64 ophelp.oprofile-0.9.6-12.el6.x86_64 | diffstat
 ophelp.oprofile-0.9.6-12.el6.x86_64 |  605 +++++++++++++++++++++++++++++++++++-
 1 file changed, 601 insertions(+), 4 deletions(-)

# diff -u ophelp.oprofile-0.9.6-7.el6.x86_64 ophelp.oprofile-0.9.6-12.el6.x86_64

--- ophelp.oprofile-0.9.6-7.el6.x86_64  2011-03-15 12:09:31.117321980 -0400
+++ ophelp.oprofile-0.9.6-12.el6.x86_64 2011-03-15 12:09:45.964312711 -0400
@@ -1,8 +1,8 @@
-oprofile: available events for CPU type "Intel Architectural Perfmon"
+oprofile: available events for CPU type "Intel Westmere microarchitecture"
+
+See Intel Architecture Developer's Manual Volume 3B, Appendix A and
+Intel Architecture Optimization Reference Manual (730795-001)
 
-See Intel 64 and IA-32 Architectures Software Developer's Manual
-Volume 3B (Document 253669) Chapter 18 for architectural perfmon events
-This is a limited set of fallback events because oprofile doesn't know your CPU

<snipped events additions>

Comment 18 errata-xmlrpc 2011-05-19 13:06:41 UTC
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.

http://rhn.redhat.com/errata/RHBA-2011-0566.html