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



On Sun, 2007-02-11 at 16:46 -0600, Milton Miller wrote:

[cut]


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?


There are two reasons you cannot do SPU profiling and profiling on non
SPU events at the sametime. 1) the SPU PC values are routed on the
debug bus. You cannot also route the signals for other non SPU events
on the debug bus since they will conflict. Specifically, the signals
would get logically OR'd on the bus. The exception is PPU cycles which
does not use the debug bus. 2) the hardware that captures the SPU
program counters has some shared components with the HW performance
counters. To use the SPU program counter hardware, the performance
counter hardware must be disabled.

In summary, we cannot do SPU cycle profiling and non SPU event profiling
at the same time due to limitations in the hardware.


[cut]


milton


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: General profiling approaches
    ... Even if you have hardware ... level out-of-order execution that might affect your speed, ... inserting measurements that will perturb the result. ... When I worked on the ATOM profiling tools, ...
    (comp.compilers)
  • Re: hardware errors, do C and Forth need different things in hardware?
    ... Some can be detected by hardware or ... I recommend a simple concept, at minimum, of a program counter watch ... lock detection, ... without preventing the compiliation of such, if, in deed, ANY compiler, ...
    (comp.lang.forth)
  • Re: [PATCH 00/11] generic software counters -v2
    ... allowing sample based profiling without hardware ... support -- obviously this has limited functionality for kernal ... based profiling since we disable interrupts quite frequently, ... Especially for pagefaults we have a number of callbacks there: ...
    (Linux-Kernel)