Mercurial > hg > Members > kono > Cerium
diff include/TaskManager/CellDmaManager.h @ 242:8382f0f8c0b4
dma_wait
author | e065746@localhost.localdomain |
---|---|
date | Sun, 31 May 2009 15:55:00 +0900 |
parents | f8182c7058b5 |
children | e19d2c9e85b0 6bb8725e60ae |
line wrap: on
line diff
--- a/include/TaskManager/CellDmaManager.h Sat May 30 16:21:42 2009 +0900 +++ b/include/TaskManager/CellDmaManager.h Sun May 31 15:55:00 2009 +0900 @@ -11,6 +11,8 @@ #include <spu_mfcio.h> +#define SPU_PROFILE 1 + class CellDmaManager : public DmaManager { public: BASE_NEW_DELETE(CellDmaManager); @@ -21,11 +23,15 @@ } DmaList, *DmaListPtr; /* variables */ + unsigned int wait_time, busy_time; + unsigned long long global_busy_time, global_wait_time; /* functions */ void dma_load(void *buf, uint32 addr, uint32 size, uint32 mask); void dma_store(void *buf, uint32 addr, uint32 size, uint32 mask); void dma_wait(uint32 mask) ; + void start_dmawait_profile(); + void end_dmawait_profile(); void mail_write(uint32 data); uint32 mail_read(void);