Bug 643478 - [RFE] OProfile support for Intel Westmere processors
Summary: [RFE] OProfile support for Intel Westmere processors
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: oprofile
Version: 6.1
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: 6.1
Assignee: William Cohen
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On: 643484
Blocks: 492884 580566
TreeView+ depends on / blocked
 
Reported: 2010-10-15 17:45 UTC by William Cohen
Modified: 2018-11-14 16:49 UTC (History)
8 users (show)

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
Clone Of: 643476
Environment:
Last Closed: 2011-05-19 13:06:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:0566 0 normal SHIPPED_LIVE oprofile bug fix and enhancement update 2011-05-18 17:57:08 UTC

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


Note You need to log in before you can comment on or make changes to this bug.