public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Octavian Purdila <opurdila@ixiacom•com>
To: Benjamin Herrenschmidt <benh@kernel•crashing.org>
Cc: linuxppc-dev@ozlabs•org
Subject: Re: [PATCH 2/2] powerpc: oprofile: enable support for ppc750 processors
Date: Wed, 4 Mar 2009 14:02:42 +0200	[thread overview]
Message-ID: <200903041402.43130.opurdila@ixiacom.com> (raw)
In-Reply-To: <1236142078.6696.11.camel@pasglop>

From: Benjamin Herrenschmidt <benh@kernel•crashing.org>

> On Tue, 2009-01-06 at 14:55 +0200, Octavian Purdila wrote:
> > Signed-off-by: Octavian Purdila <opurdila@ixiacom•com>
>
> So I'm going to merge 1/2 but this one should really be changed to
> advertise ppc/750 in oprofile_cpu_type (ie. to userspace).
>

Sure. Here is the new patch which uses ppc/750. It enables oprofile for all 3 FX variants and GX as well.

Thanks!
tavi


commit 70f4865a614e9b0ff4594ebd52b95f78e998b79f
Author: Octavian Purdila <opurdila@ixiacom•com>
Date:   Tue Jan 6 12:51:43 2009 +0200

    powerpc: oprofile: enable support for ppc750 processors
    
    Signed-off-by: Octavian Purdila <opurdila@ixiacom•com>

diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c
index 923f87a..c3ea72b 100644
--- a/arch/powerpc/kernel/cputable.c
+++ b/arch/powerpc/kernel/cputable.c
@@ -726,6 +726,8 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_750,
 		.machine_check		= machine_check_generic,
 		.platform		= "ppc750",
+		.oprofile_cpu_type      = "ppc/750",
+		.oprofile_type		= PPC_OPROFILE_G4,
 	},
 	{	/* 750FX rev 2.0 must disable HID0[DPM] */
 		.pvr_mask		= 0xffffffff,
@@ -741,6 +743,8 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_750,
 		.machine_check		= machine_check_generic,
 		.platform		= "ppc750",
+		.oprofile_cpu_type      = "ppc/750",
+		.oprofile_type		= PPC_OPROFILE_G4,
 	},
 	{	/* 750FX (All revs except 2.0) */
 		.pvr_mask		= 0xffff0000,
@@ -756,6 +760,8 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_750fx,
 		.machine_check		= machine_check_generic,
 		.platform		= "ppc750",
+		.oprofile_cpu_type      = "ppc/750",
+		.oprofile_type		= PPC_OPROFILE_G4,
 	},
 	{	/* 750GX */
 		.pvr_mask		= 0xffff0000,
@@ -771,6 +777,8 @@ static struct cpu_spec __initdata cpu_specs[] = {
 		.cpu_setup		= __setup_cpu_750fx,
 		.machine_check		= machine_check_generic,
 		.platform		= "ppc750",
+		.oprofile_cpu_type      = "ppc/750",
+		.oprofile_type		= PPC_OPROFILE_G4,
 	},
 	{	/* 740/750 (L2CR bit need fixup for 740) */
 		.pvr_mask		= 0xffff0000,

  reply	other threads:[~2009-03-04 12:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-06 12:55 [PATCH 0/2] oprofile support for ppc750 Octavian Purdila
2009-01-06 12:55 ` [PATCH 1/2] powerpc: G4 oprofile: variable number of counters Octavian Purdila
2009-02-04  5:22   ` Benjamin Herrenschmidt
2009-02-24 12:09     ` Octavian Purdila
2009-02-24 12:09     ` [PATCH v2 " Octavian Purdila
2009-02-24 12:09     ` [PATCH v2 2/2] powerpc: oprofile: enable support for ppc750 processors Octavian Purdila
2009-02-26 22:30       ` Andy Fleming
2009-02-26 23:13         ` Benjamin Herrenschmidt
2009-02-27 11:57           ` Octavian Purdila
2009-01-06 12:55 ` [PATCH " Octavian Purdila
2009-03-04  4:47   ` Benjamin Herrenschmidt
2009-03-04 12:02     ` Octavian Purdila [this message]
2009-01-07  2:52 ` [PATCH 0/2] oprofile support for ppc750 Benjamin Herrenschmidt
2009-01-07 12:17   ` Octavian Purdila

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=200903041402.43130.opurdila@ixiacom.com \
    --to=opurdila@ixiacom$(echo .)com \
    --cc=benh@kernel$(echo .)crashing.org \
    --cc=linuxppc-dev@ozlabs$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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