Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling updated patch

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Milton Miller
Date: Sunday, February 11, 2007 - 3:46 pm

On Feb 9, 2007, at 10:17 AM, Carl Love wrote:



Well, its cacluate the rate from the count vs count from the rate.


That should be well commented.



Actually, the oprofile userspace fills out files in a file system to 
tell
the kernel what it needs to know.   The powerpc code defines the 
reources
needed to use the PMU hardware, which is (1) common mux selects, for
processors that need them, and (2) a set of directories, one for each 
of the
pmu counters, each of which contain the controls for that counter (such
as enable kernel space, enable user space, event timeout to interrupt or
sample collection, etc.   The ctr[i].count is one of these files.


I think I talked past you.  Your description of hadrware vs mine was
different in that the counter always ends at a specified point and is
loaded with the variable count, where mine had it comparing to the
count as it incremented.

However, I now see that you were referring to the fact that what the
user specifes, the count, has to be converted to a LFSR value.  My point
is this can be done in the user-space oprofile code.  It already has
to look up magic numbers for setting up event selection muxes for other
hardware, adding a lfsr calculation is not beyond resoon.  Nor is having
it provide two values in two files.


Well, its easy, its just order(N).







As far as I understand, you are providing access to a completely new
hardware that is related to the PMU hardware by the fact that it
collects a program counter.   It doesn't use the PMU counters nor the
PMU event selection.

In fact, why can the existing op_model_cell profiling not run while
the SPU profiling runs?   Is there a shared debug bus inside the
chip?   Or just the data stream with your buffer_sync code?


Well, I haven't worked with oprofile in the past, but I have worked
on the kernel.  And I stay by my statement.

milton

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [Cbe-oss-dev] [RFC, PATCH] CELL PPU Oprofile SPU profi ..., Benjamin Herrenschmidt, (Mon Feb 5, 5:49 pm)
Re: [Cbe-oss-dev] [RFC, PATCH] CELL Oprofile SPU profiling ..., Milton Miller, (Sun Feb 11, 3:46 pm)