[PATCH] drm/amdgpu: change trace event parameter name from 'driect' to 'immediate'

Wang, Kevin(Yang) Kevin1.Wang at amd.com
Mon Dec 7 08:33:57 UTC 2020


[AMD Official Use Only - Internal Distribution Only]


________________________________
From: Koenig, Christian <Christian.Koenig at amd.com>
Sent: Monday, December 7, 2020 4:23 PM
To: Wang, Kevin(Yang) <Kevin1.Wang at amd.com>; amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Subject: Re: [PATCH] drm/amdgpu: change trace event parameter name from 'driect' to 'immediate'

Am 07.12.20 um 07:56 schrieb Kevin Wang:
> s/direct/immediate/g
>
> amdgpu vm has renamed parameter name from 'direct' to 'immedate'.
> however, the trace event is not updated yet.
>
> Signed-off-by: Kevin Wang <kevin1.wang at amd.com>
There is a small typo in the subject line "driect", apart from that the
patch is Reviewed-by: Christian König <christian.koenig at amd.com>.

Thanks for removing one item from my TODO list :)

Regards,
Christian.

[kevin]:
ok, thank you for reminding me.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 24 +++++++++++------------
>   1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> index ee9480d14cbc..324d5e3f3579 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> @@ -366,15 +366,15 @@ TRACE_EVENT(amdgpu_vm_update_ptes,
>
>   TRACE_EVENT(amdgpu_vm_set_ptes,
>            TP_PROTO(uint64_t pe, uint64_t addr, unsigned count,
> -                  uint32_t incr, uint64_t flags, bool direct),
> -         TP_ARGS(pe, addr, count, incr, flags, direct),
> +                  uint32_t incr, uint64_t flags, bool immediate),
> +         TP_ARGS(pe, addr, count, incr, flags, immediate),
>            TP_STRUCT__entry(
>                             __field(u64, pe)
>                             __field(u64, addr)
>                             __field(u32, count)
>                             __field(u32, incr)
>                             __field(u64, flags)
> -                          __field(bool, direct)
> +                          __field(bool, immediate)
>                             ),
>
>            TP_fast_assign(
> @@ -383,32 +383,32 @@ TRACE_EVENT(amdgpu_vm_set_ptes,
>                           __entry->count = count;
>                           __entry->incr = incr;
>                           __entry->flags = flags;
> -                        __entry->direct = direct;
> +                        __entry->immediate = immediate;
>                           ),
>            TP_printk("pe=%010Lx, addr=%010Lx, incr=%u, flags=%llx, count=%u, "
> -                   "direct=%d", __entry->pe, __entry->addr, __entry->incr,
> -                   __entry->flags, __entry->count, __entry->direct)
> +                   "immediate=%d", __entry->pe, __entry->addr, __entry->incr,
> +                   __entry->flags, __entry->count, __entry->immediate)
>   );
>
>   TRACE_EVENT(amdgpu_vm_copy_ptes,
> -         TP_PROTO(uint64_t pe, uint64_t src, unsigned count, bool direct),
> -         TP_ARGS(pe, src, count, direct),
> +         TP_PROTO(uint64_t pe, uint64_t src, unsigned count, bool immediate),
> +         TP_ARGS(pe, src, count, immediate),
>            TP_STRUCT__entry(
>                             __field(u64, pe)
>                             __field(u64, src)
>                             __field(u32, count)
> -                          __field(bool, direct)
> +                          __field(bool, immediate)
>                             ),
>
>            TP_fast_assign(
>                           __entry->pe = pe;
>                           __entry->src = src;
>                           __entry->count = count;
> -                        __entry->direct = direct;
> +                        __entry->immediate = immediate;
>                           ),
> -         TP_printk("pe=%010Lx, src=%010Lx, count=%u, direct=%d",
> +         TP_printk("pe=%010Lx, src=%010Lx, count=%u, immediate=%d",
>                      __entry->pe, __entry->src, __entry->count,
> -                   __entry->direct)
> +                   __entry->immediate)
>   );
>
>   TRACE_EVENT(amdgpu_vm_flush,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20201207/a15385a9/attachment-0001.htm>


More information about the amd-gfx mailing list