drm/xe: trace bo create

Add a tracepoint to trace bo create.

Signed-off-by: Oak Zeng <oak.zeng@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241218164833.2364049-2-oak.zeng@intel.com
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
This commit is contained in:
Oak Zeng
2025-01-17 00:00:59 +05:30
committed by Himal Prasad Ghimiray
parent 758debf35b
commit 63060df6f7
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -1659,6 +1659,7 @@ __xe_bo_create_locked(struct xe_device *xe,
}
}
trace_xe_bo_create(bo);
return bo;
err_unlock_put_bo:
+5
View File
@@ -53,6 +53,11 @@ DEFINE_EVENT(xe_bo, xe_bo_validate,
TP_ARGS(bo)
);
DEFINE_EVENT(xe_bo, xe_bo_create,
TP_PROTO(struct xe_bo *bo),
TP_ARGS(bo)
);
TRACE_EVENT(xe_bo_move,
TP_PROTO(struct xe_bo *bo, uint32_t new_placement, uint32_t old_placement,
bool move_lacks_source),