[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)
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>

No differences found