Skip to contentSkip to conversation

powerpc: Make 970MP detectable by oprofile

PATCH In review Mike Wolf 3 participants 6 messages Nov 21, 2006 – Nov 23, 2006 PowerPC

lore
Share & tools
lore

Mike Wolf

author
#0 lore raw

PATCH 1/1 powerpc: Make 970MP detectable by oprofile

Change the oprofile_cpu_type in cputables.c to be ppc64/970MP. Oprofile needs to distinquish the MP from other 970 processors so it can add some new counters specific to the 970MP

---diff --git a/arch/powerpc/kernel/cputable.c b/arch/powerpc/kernel/cputable.c index 911ac44..0b01faa 100644

arch/powerpc/kernel/cputable.c +1 -1
@@ -225,7 +225,7 @@ #ifdef CONFIG_PPC64
 		.num_pmcs		= 8,
 		.cpu_setup		= __setup_cpu_ppc970MP,
 		.cpu_restore		= __restore_cpu_ppc970,
-		.oprofile_cpu_type	= "ppc64/970",
+		.oprofile_cpu_type	= "ppc64/970MP",
 		.oprofile_type		= PPC_OPROFILE_POWER4,
 		.platform		= "ppc970",
 	},
#1 lore raw
Quoted 3 lines

Oprofile
needs to distinquish the MP from other 970 processors so it can add some new counters specific to the 970MP

Just out of curiosity, what are those? I never saw any, but I'd love to know :-)

Segher

author
#2 lore raw
In reply to Mike Wolf
Quoted 7 lines
Quoted 5 lines

Change the oprofile_cpu_type in cputables.c to be ppc64/970MP. Oprofile needs to distinquish the MP from other 970 processors so it can add some new counters specific to the 970MP

Just out of curiosity, what are those? I never saw any, but I'd love to know :-)

They are the IBM JS21 blades

#3 lore raw
Quoted 5 lines · On Wed, 22 Nov 2006 10:48:18 -0600 Mike Wolf <[email protected]> wrote:
Quoted 2 lines

Just out of curiosity, what are those? I never saw any, but I'd love to know :-)

They are the IBM JS21 blades

I think Segher might have had "what are the new counters" in mind when he asked that, not where the processors are used. :-)

-Olof

author
#4 lore raw
Quoted 6 lines · Olof Johansson
Quoted 4 lines · On Wed, 22 Nov 2006 10:48:18 -0600 Mike Wolf <[email protected]> wrote:
Quoted 2 lines

Just out of curiosity, what are those? I never saw any, but I'd love to know :-)

Quoted 6 lines
Quoted 1 line

They are the IBM JS21 blades

I think Segher might have had "what are the new counters" in mind when he asked that, not where the processors are used. :-)

-Olof

They are different MMCRx settings for counting certain events.

Mike

#5 lore raw
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Just out of curiosity, what are those? I never saw any, but I'd love to know :-)

They are the IBM JS21 blades

I think Segher might have had "what are the new counters" in mind when he asked that, not where the processors are used. :-)

Yes indeed :-)

Quoted 1 line

They are different MMCRx settings for counting certain events.

Heh of course. I meant _which_ events, of course.

But nm, I'll look it up myself :-)

Segher