[POWERPC] spufs: Add stat file to spufs

Export per-context statistics in spufs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Christoph Hellwig
2007-06-29 10:58:03 +10:00
committed by Paul Mackerras
parent 65de66f0b8
commit e9f8a0b65a
8 changed files with 178 additions and 5 deletions

View File

@@ -156,6 +156,12 @@ struct spu {
u64 shadow_int_mask_RW[3];
struct sys_device sysdev;
struct {
/* protected by interrupt reentrancy */
unsigned long long slb_flt;
unsigned long long class2_intr;
} stats;
};
struct spu *spu_alloc(void);