public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: nick black <dank@qemfd.net>
To: Robert Richter <robert.richter@amd.com>, oprofile-list@lists.sf.net
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Nate Clark <ntclark@cc.gatech.edu>,
	trivial@kernel.org
Subject: [PATCH] support Model-30 Corei7 in Oprofile
Date: Tue, 4 May 2010 00:09:20 -0400	[thread overview]
Message-ID: <20100504040920.GA15516@qemfd.net> (raw)

Howdy! OProfile doesn't recognize my QM720 Core i7. It knows about Model 26,
but not Model 30. This one-liner, taken against 2.6.34-rc6, addresses that.

Signed-off-by: Nick Black <nickblack@acm.org>
---
I sent a very similar patch to DynamoRIO this weekend. Not many Model-30's
in use yet?

diff -uprN linux-2.6.34-rc6/arch/x86/oprofile/nmi_int.c /home/dank/local/linux-2.6.34-rc6//arch/x86/oprofile/nmi_int.c
--- linux-2.6.34-rc6/arch/x86/oprofile/nmi_int.c	2010-04-29 23:02:05.000000000 -0400
+++ /home/dank/local/linux-2.6.34-rc6//arch/x86/oprofile/nmi_int.c	2010-05-03 23:46:51.018835896 -0400
@@ -601,6 +601,7 @@ static int __init ppro_init(char **cpu_t
 		break;
 	case 0x2e:
 	case 26:
+	case 30:
 		spec = &op_arch_perfmon_spec;
 		*cpu_type = "i386/core_i7";
 		break;

-- 
                                       Nick Black <nickblack@linux.com>
                                  Grad student, GT College of Computing
                    "np: the class of dashed hopes, and idle dreams..."

                 reply	other threads:[~2010-05-04  4:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100504040920.GA15516@qemfd.net \
    --to=dank@qemfd.net \
    --cc=akpm@linux-foundation.org \
    --cc=ntclark@cc.gatech.edu \
    --cc=oprofile-list@lists.sf.net \
    --cc=robert.richter@amd.com \
    --cc=torvalds@linux-foundation.org \
    --cc=trivial@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox