From: Christoph Hellwig Date: Tue, 29 Apr 2008 07:08:38 +0000 (+1000) Subject: [POWERPC] spufs: add context switch notification log X-Git-Tag: v2.6.26-rc1~108^2~2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5158e9b5218bd3799c9fa8c401ad24d7f0c0a0a1;p=pandora-kernel.git [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 Signed-off-by: Jeremy Kerr --- Reading git-diff-tree failed