Unverified Commit a16e1551 authored by Oak Zeng's avatar Oak Zeng Committed by Rodrigo Vivi
Browse files

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: default avatarOak Zeng <oak.zeng@intel.com>
Reviewed-by: default avatarThomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241203022140.1919922-1-oak.zeng@intel.com


Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 36bcc52b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2027,6 +2027,7 @@ int xe_bo_validate(struct xe_bo *bo, struct xe_vm *vm, bool allow_res_evict)
		ctx.resv = xe_vm_resv(vm);
	}

	trace_xe_bo_validate(bo);
	return ttm_bo_validate(&bo->ttm, &bo->placement, &ctx);
}

+5 −0
Original line number Diff line number Diff line
@@ -48,6 +48,11 @@ DEFINE_EVENT(xe_bo, xe_bo_cpu_fault,
	     TP_ARGS(bo)
);

DEFINE_EVENT(xe_bo, xe_bo_validate,
	     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),