]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
powerpc/oprofile: IBM CELL: add SPU event profiling support
authorCarl Love <cel@us.ibm.com>
Tue, 2 Dec 2008 00:18:36 +0000 (16:18 -0800)
committerRobert Richter <robert.richter@amd.com>
Thu, 8 Jan 2009 14:51:55 +0000 (15:51 +0100)
commit883823291d22e06736f1056da6d8303291d6bbf9
treedfa8a4bba8599b8887b66048532e6360bfc6e870
parent014cef91ecef9d5e85f9c98a2efbf8a8c4710510
powerpc/oprofile: IBM CELL: add SPU event profiling support

This patch adds the SPU event based profiling funcitonality for the
IBM Cell processor.  Previously, the CELL OProfile kernel code supported
PPU event, PPU cycle profiling and SPU cycle profiling.   The addition of
SPU event profiling allows the users to identify where in their SPU code
various SPU evnets are occuring.  This should help users further identify
issues with their code.  Note, SPU profiling has some limitations due to HW
constraints.  Only one event at a time can be used for profiling and SPU event
profiling must be time sliced across all of the SPUs in a node.

The patch adds a new arch specific file to the OProfile file system. The
file has bit 0 set to indicate that the kernel supports SPU event profiling.
The user tool must check this file/bit to make sure the kernel supports
SPU event profiling before trying to do SPU event profiling.  The user tool
check is part of the user tool patch for SPU event profiling.

Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Robert Richter <robert.richter@amd.com>
arch/powerpc/include/asm/cell-pmu.h
arch/powerpc/include/asm/oprofile_impl.h
arch/powerpc/oprofile/cell/pr_util.h
arch/powerpc/oprofile/cell/spu_profiler.c
arch/powerpc/oprofile/common.c
arch/powerpc/oprofile/op_model_cell.c