diff options
| author | Somalapuram Amaranath <[email protected]> | 2022-01-17 07:49:10 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-02-02 23:27:52 +0000 |
| commit | 4f860edecdafeb2e5fb29fecc6428090997936fe (patch) | |
| tree | cf2d31f33024c6fc53263dfb820227616e1f0dc3 /drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | |
| parent | drm/amd: avoid suspend on dGPUs w/ s2idle support when runtime PM enabled (diff) | |
| download | kernel-4f860edecdafeb2e5fb29fecc6428090997936fe.tar.gz kernel-4f860edecdafeb2e5fb29fecc6428090997936fe.zip | |
drm/amdgpu: limit the number of dst address in trace
trace_amdgpu_vm_update_ptes trace unable to log when nptes too large
Signed-off-by: Somalapuram Amaranath <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h index d855cb53c7e0..a48b34d4ce31 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h @@ -358,11 +358,10 @@ TRACE_EVENT(amdgpu_vm_update_ptes, } ), TP_printk("pid:%u vm_ctx:0x%llx start:0x%010llx end:0x%010llx," - " flags:0x%llx, incr:%llu, dst:\n%s%s", __entry->pid, + " flags:0x%llx, incr:%llu, dst:\n%s", __entry->pid, __entry->vm_ctx, __entry->start, __entry->end, __entry->flags, __entry->incr, __print_array( - __get_dynamic_array(dst), min(__entry->nptes, 32u), 8), - __entry->nptes > 32 ? "..." : "") + __get_dynamic_array(dst), __entry->nptes, 8)) ); TRACE_EVENT(amdgpu_vm_set_ptes, |
