Skip to content

Commit a16e155

Browse files
zengshanjunrodrigovivi
authored andcommitted
drm/xe: Trace xe_bo_validate
Add a tracepoint for xe_bo_validate function. I found this is useful during debug issues. Signed-off-by: Oak Zeng <[email protected]> Reviewed-by: Thomas Hellström <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Rodrigo Vivi <[email protected]>
1 parent 36bcc52 commit a16e155

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

drivers/gpu/drm/xe/xe_bo.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2027,6 +2027,7 @@ int xe_bo_validate(struct xe_bo *bo, struct xe_vm *vm, bool allow_res_evict)
20272027
ctx.resv = xe_vm_resv(vm);
20282028
}
20292029

2030+
trace_xe_bo_validate(bo);
20302031
return ttm_bo_validate(&bo->ttm, &bo->placement, &ctx);
20312032
}
20322033

drivers/gpu/drm/xe/xe_trace_bo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ DEFINE_EVENT(xe_bo, xe_bo_cpu_fault,
4848
TP_ARGS(bo)
4949
);
5050

51+
DEFINE_EVENT(xe_bo, xe_bo_validate,
52+
TP_PROTO(struct xe_bo *bo),
53+
TP_ARGS(bo)
54+
);
55+
5156
TRACE_EVENT(xe_bo_move,
5257
TP_PROTO(struct xe_bo *bo, uint32_t new_placement, uint32_t old_placement,
5358
bool move_lacks_source),

0 commit comments

Comments
 (0)