[PATCH 1/3] drm/xe: trace bo create
Matthew Brost
matthew.brost at intel.com
Wed Dec 18 03:05:56 UTC 2024
On Tue, Dec 17, 2024 at 06:14:18PM -0500, Oak Zeng wrote:
> Add a tracepoint to trace bo create.
>
> Signed-off-by: Oak Zeng <oak.zeng at intel.com>
Reviewed-by: Matthew Brost <matthew.brost at intel.com>
> ---
> drivers/gpu/drm/xe/xe_bo.c | 1 +
> drivers/gpu/drm/xe/xe_trace_bo.h | 5 +++++
> 2 files changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index abdeed1c325ea..61f4326e96504 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1649,6 +1649,7 @@ __xe_bo_create_locked(struct xe_device *xe,
> }
> }
>
> + trace_xe_bo_create(bo);
> return bo;
>
> err_unlock_put_bo:
> diff --git a/drivers/gpu/drm/xe/xe_trace_bo.h b/drivers/gpu/drm/xe/xe_trace_bo.h
> index 1762dd30ba6dc..53807f2ef4808 100644
> --- a/drivers/gpu/drm/xe/xe_trace_bo.h
> +++ b/drivers/gpu/drm/xe/xe_trace_bo.h
> @@ -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),
> --
> 2.26.3
>
More information about the Intel-xe
mailing list