mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-29 18:57:41 +08:00
drm/amdgpu: add isolation trace point
Note when we switch from one isolation owner to another. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
db1e58ec86
commit
1bb1314d0b
@@ -7028,6 +7028,7 @@ struct dma_fence *amdgpu_device_enforce_isolation(struct amdgpu_device *adev,
|
||||
dma_fence_put(isolation->spearhead);
|
||||
isolation->spearhead = dma_fence_get(&f->scheduled);
|
||||
amdgpu_sync_move(&isolation->active, &isolation->prev);
|
||||
trace_amdgpu_isolation(isolation->owner, owner);
|
||||
isolation->owner = owner;
|
||||
}
|
||||
|
||||
|
||||
@@ -457,6 +457,23 @@ DEFINE_EVENT(amdgpu_pasid, amdgpu_pasid_freed,
|
||||
TP_ARGS(pasid)
|
||||
);
|
||||
|
||||
TRACE_EVENT(amdgpu_isolation,
|
||||
TP_PROTO(void *prev, void *next),
|
||||
TP_ARGS(prev, next),
|
||||
TP_STRUCT__entry(
|
||||
__field(void *, prev)
|
||||
__field(void *, next)
|
||||
),
|
||||
|
||||
TP_fast_assign(
|
||||
__entry->prev = prev;
|
||||
__entry->next = next;
|
||||
),
|
||||
TP_printk("prev=%p, next=%p",
|
||||
__entry->prev,
|
||||
__entry->next)
|
||||
);
|
||||
|
||||
TRACE_EVENT(amdgpu_bo_list_set,
|
||||
TP_PROTO(struct amdgpu_bo_list *list, struct amdgpu_bo *bo),
|
||||
TP_ARGS(list, bo),
|
||||
|
||||
Reference in New Issue
Block a user