]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] spufs: add context switch notification log
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Apr 2008 07:08:38 +0000 (17:08 +1000)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 30 Apr 2008 05:01:54 +0000 (15:01 +1000)
commit5158e9b5218bd3799c9fa8c401ad24d7f0c0a0a1
tree4ed17672fe0582c46f594217ba410ec92aebfb45
parent14b3ca4022f050f8622ed282b734ddf445464583
[POWERPC] spufs: add context switch notification log

There are userspace instrumentation tools that need to monitor spu
context switches. This patch adds a new file called 'switch_log' to
each spufs context directory that can be used to monitor the context
switches.

Context switch in/out and exit from spu_run are monitored after the
file was first opened and can be read from it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
arch/powerpc/platforms/cell/spufs/context.c
arch/powerpc/platforms/cell/spufs/file.c
arch/powerpc/platforms/cell/spufs/run.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/powerpc/platforms/cell/spufs/spufs.h