Skip to content

Commit 63060df

Browse files
zengshanjunhghimira
authored andcommitted
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>
1 parent 758debf commit 63060df

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
@@ -1659,6 +1659,7 @@ __xe_bo_create_locked(struct xe_device *xe,
16591659
}
16601660
}
16611661

1662+
trace_xe_bo_create(bo);
16621663
return bo;
16631664

16641665
err_unlock_put_bo:

drivers/gpu/drm/xe/xe_trace_bo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ DEFINE_EVENT(xe_bo, xe_bo_validate,
5353
TP_ARGS(bo)
5454
);
5555

56+
DEFINE_EVENT(xe_bo, xe_bo_create,
57+
TP_PROTO(struct xe_bo *bo),
58+
TP_ARGS(bo)
59+
);
60+
5661
TRACE_EVENT(xe_bo_move,
5762
TP_PROTO(struct xe_bo *bo, uint32_t new_placement, uint32_t old_placement,
5863
bool move_lacks_source),

0 commit comments

Comments
 (0)