diff options
Diffstat (limited to 'drivers/gpu/pvr/perproc.c')
-rw-r--r-- | drivers/gpu/pvr/perproc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/pvr/perproc.c b/drivers/gpu/pvr/perproc.c index 52d9980b489..7eb46a14484 100644 --- a/drivers/gpu/pvr/perproc.c +++ b/drivers/gpu/pvr/perproc.c | |||
@@ -29,6 +29,9 @@ | |||
29 | #include "handle.h" | 29 | #include "handle.h" |
30 | #include "perproc.h" | 30 | #include "perproc.h" |
31 | #include "osperproc.h" | 31 | #include "osperproc.h" |
32 | #if defined(TTRACE) | ||
33 | #include "ttrace.h" | ||
34 | #endif | ||
32 | 35 | ||
33 | #define HASH_TAB_INIT_SIZE 32 | 36 | #define HASH_TAB_INIT_SIZE 32 |
34 | 37 | ||
@@ -207,6 +210,9 @@ PVRSRV_ERROR PVRSRVPerProcessDataConnect(IMG_UINT32 ui32PID, IMG_UINT32 ui32Flag | |||
207 | PVR_DPF((PVR_DBG_ERROR, "PVRSRVPerProcessDataConnect: Couldn't register with the resource manager")); | 210 | PVR_DPF((PVR_DBG_ERROR, "PVRSRVPerProcessDataConnect: Couldn't register with the resource manager")); |
208 | goto failure; | 211 | goto failure; |
209 | } | 212 | } |
213 | #if defined (TTRACE) | ||
214 | PVRSRVTimeTraceBufferCreate(ui32PID); | ||
215 | #endif | ||
210 | } | 216 | } |
211 | 217 | ||
212 | psPerProc->ui32RefCount++; | 218 | psPerProc->ui32RefCount++; |
@@ -242,6 +248,10 @@ IMG_VOID PVRSRVPerProcessDataDisconnect(IMG_UINT32 ui32PID) | |||
242 | PVR_DPF((PVR_DBG_MESSAGE, "PVRSRVPerProcessDataDisconnect: " | 248 | PVR_DPF((PVR_DBG_MESSAGE, "PVRSRVPerProcessDataDisconnect: " |
243 | "Last close from process 0x%x received", ui32PID)); | 249 | "Last close from process 0x%x received", ui32PID)); |
244 | 250 | ||
251 | #if defined (TTRACE) | ||
252 | PVRSRVTimeTraceBufferDestroy(ui32PID); | ||
253 | #endif | ||
254 | |||
245 | 255 | ||
246 | PVRSRVResManDisconnect(psPerProc->hResManContext, IMG_FALSE); | 256 | PVRSRVResManDisconnect(psPerProc->hResManContext, IMG_FALSE); |
247 | 257 | ||