Bug 550183 - Make oprofile recognize Nehalem
Summary: Make oprofile recognize Nehalem
Keywords:
Status: CLOSED DUPLICATE of bug 509423
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.8
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: John Villalovos
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-23 23:00 UTC by Herbert van den Bergh
Modified: 2015-05-08 14:00 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 458441
Environment:
Last Closed: 2010-01-05 20:27:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed patch for bare metal oprofile (1.20 KB, patch)
2009-12-23 23:02 UTC, Herbert van den Bergh
no flags Details | Diff

Description Herbert van den Bergh 2009-12-23 23:00:29 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Herbert van den Bergh 2009-12-23 23:01:42 UTC
Description of problem:
Oprofile needs to recognize the CPU model to make use of its PMU; it can only
use timer interrupt otherwise.  It doesn't recognize Nehalem, yet.

Additional info:
Fixed in Linus's tree:

commit 4b9f12a3779c548b68bc9af7d94030868ad3aa1b
Author: Linus Torvalds <torvalds>
Date:   Thu Jul 24 17:29:00 2008 -0700

    x86/oprofile/nmi_int: add Nehalem to list of ppro cores

    ..otherwise oprofile will fall back on that poor timer interrupt.

    Also replace the unreadable chain of if-statements with a "switch()"
    statement instead. It generates better code, and is a lot clearer.

    Signed-off-by: Linus Torvalds <torvalds>

Comment 2 Herbert van den Bergh 2009-12-23 23:02:53 UTC
Created attachment 380098 [details]
Proposed patch for bare metal oprofile

Comment 3 John Villalovos 2010-01-05 20:27:03 UTC
The attached patch is not nearly enough to make it work.

I am going to close this bug as a duplicate of bug 509423

*** This bug has been marked as a duplicate of bug 509423 ***


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