Skip to content
Snippets Groups Projects
Commit 1bb1314d authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/amdgpu: add isolation trace point


Note when we switch from one isolation owner to another.

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Acked-by: default avatarSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent db1e58ec
No related branches found
No related tags found
No related merge requests found
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment