]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe: trace bo create
authorOak Zeng <oak.zeng@intel.com>
Wed, 18 Dec 2024 16:48:31 +0000 (11:48 -0500)
committerHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Thu, 16 Jan 2025 18:30:59 +0000 (00:00 +0530)
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>
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_trace_bo.h

index 78d19fd4670aa3b99e0217cbd1a4f9363cdd2c7e..cf0dc9e9c53eb68f443257e015e1a6c8fdab11f4 100644 (file)
@@ -1659,6 +1659,7 @@ __xe_bo_create_locked(struct xe_device *xe,
                }
        }
 
+       trace_xe_bo_create(bo);
        return bo;
 
 err_unlock_put_bo:
index ea50fee50c7de26e61d1d69e5b66692c15fcd3cc..3d7e6c80b0aa8f751109e783b4137e70633ff7f4 100644 (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),