From: "Yadav, Arvind" <arvyadav@amd.com>
To: "Pierre-Eric Pelloux-Prayer" <pierre-eric.pelloux-prayer@amd.com>,
"Alex Deucher" <alexander.deucher@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v9 10/10] drm/amdgpu: update trace format to match gpu_scheduler_trace
Date: Fri, 25 Apr 2025 11:01:06 +0530 [thread overview]
Message-ID: <53b5bc09-5dd3-c34b-c696-34de1773f369@amd.com> (raw)
In-Reply-To: <20250424083834.15518-11-pierre-eric.pelloux-prayer@amd.com>
Reviewed-by: Arvind Yadav <Arvind.Yadav@amd.com>
On 4/24/2025 2:08 PM, Pierre-Eric Pelloux-Prayer wrote:
> Log fences using the same format for coherency.
>
> Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
> Reviewed-by: Christian König <christian.koenig@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h | 22 ++++++++++------------
> 1 file changed, 10 insertions(+), 12 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> index 4fd810cb5387..d13e64a69e25 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_trace.h
> @@ -168,8 +168,8 @@ TRACE_EVENT(amdgpu_cs_ioctl,
> TP_ARGS(job),
> TP_STRUCT__entry(
> __string(timeline, AMDGPU_JOB_GET_TIMELINE_NAME(job))
> - __field(unsigned int, context)
> - __field(unsigned int, seqno)
> + __field(u64, context)
> + __field(u64, seqno)
> __field(struct dma_fence *, fence)
> __string(ring, to_amdgpu_ring(job->base.sched)->name)
> __field(u32, num_ibs)
> @@ -182,7 +182,7 @@ TRACE_EVENT(amdgpu_cs_ioctl,
> __assign_str(ring);
> __entry->num_ibs = job->num_ibs;
> ),
> - TP_printk("timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u",
> + TP_printk("timeline=%s, fence=%llu:%llu, ring_name=%s, num_ibs=%u",
> __get_str(timeline), __entry->context,
> __entry->seqno, __get_str(ring), __entry->num_ibs)
> );
> @@ -192,8 +192,8 @@ TRACE_EVENT(amdgpu_sched_run_job,
> TP_ARGS(job),
> TP_STRUCT__entry(
> __string(timeline, AMDGPU_JOB_GET_TIMELINE_NAME(job))
> - __field(unsigned int, context)
> - __field(unsigned int, seqno)
> + __field(u64, context)
> + __field(u64, seqno)
> __string(ring, to_amdgpu_ring(job->base.sched)->name)
> __field(u32, num_ibs)
> ),
> @@ -205,7 +205,7 @@ TRACE_EVENT(amdgpu_sched_run_job,
> __assign_str(ring);
> __entry->num_ibs = job->num_ibs;
> ),
> - TP_printk("timeline=%s, context=%u, seqno=%u, ring_name=%s, num_ibs=%u",
> + TP_printk("timeline=%s, fence=%llu:%llu, ring_name=%s, num_ibs=%u",
> __get_str(timeline), __entry->context,
> __entry->seqno, __get_str(ring), __entry->num_ibs)
> );
> @@ -548,8 +548,8 @@ TRACE_EVENT(amdgpu_ib_pipe_sync,
> TP_STRUCT__entry(
> __string(ring, sched_job->base.sched->name)
> __field(struct dma_fence *, fence)
> - __field(uint64_t, ctx)
> - __field(unsigned, seqno)
> + __field(u64, ctx)
> + __field(u64, seqno)
> ),
>
> TP_fast_assign(
> @@ -558,10 +558,8 @@ TRACE_EVENT(amdgpu_ib_pipe_sync,
> __entry->ctx = fence->context;
> __entry->seqno = fence->seqno;
> ),
> - TP_printk("job ring=%s need pipe sync to fence=%p, context=%llu, seq=%u",
> - __get_str(ring),
> - __entry->fence, __entry->ctx,
> - __entry->seqno)
> + TP_printk("job ring=%s need pipe sync to fence=%llu:%llu",
> + __get_str(ring), __entry->ctx, __entry->seqno)
> );
>
> TRACE_EVENT(amdgpu_reset_reg_dumps,
next prev parent reply other threads:[~2025-04-25 5:31 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-24 8:38 [PATCH v9 00/10] Improve gpu_scheduler trace events + UAPI Pierre-Eric Pelloux-Prayer
2025-04-24 8:38 ` [PATCH v9 01/10] drm/debugfs: output client_id in in drm_clients_info Pierre-Eric Pelloux-Prayer
2025-04-24 8:38 ` [PATCH v9 02/10] drm/sched: store the drm client_id in drm_sched_fence Pierre-Eric Pelloux-Prayer
2025-05-14 12:44 ` Philipp Stanner
2025-05-15 6:53 ` Pierre-Eric Pelloux-Prayer
2025-05-19 11:02 ` Pierre-Eric Pelloux-Prayer
2025-05-19 11:59 ` Philipp Stanner
2025-04-24 8:38 ` [PATCH v9 03/10] drm/sched: add device name to the drm_sched_process_job event Pierre-Eric Pelloux-Prayer
2025-05-19 15:34 ` Danilo Krummrich
2025-05-20 16:56 ` Pierre-Eric Pelloux-Prayer
2025-04-24 8:38 ` [PATCH v9 04/10] drm/sched: cleanup gpu_scheduler trace events Pierre-Eric Pelloux-Prayer
2025-04-24 8:38 ` [PATCH v9 05/10] drm/sched: trace dependencies for gpu jobs Pierre-Eric Pelloux-Prayer
2025-05-14 12:46 ` Philipp Stanner
2025-04-24 8:38 ` [PATCH v9 06/10] drm/sched: add the drm_client_id to the drm_sched_run/exec_job events Pierre-Eric Pelloux-Prayer
2025-04-24 8:38 ` [PATCH v9 07/10] drm/sched: cleanup event names Pierre-Eric Pelloux-Prayer
2025-04-24 8:38 ` [PATCH v9 08/10] drm: get rid of drm_sched_job::id Pierre-Eric Pelloux-Prayer
2025-04-25 5:26 ` Yadav, Arvind
2025-05-14 12:50 ` Philipp Stanner
2025-04-24 8:38 ` [PATCH v9 09/10] drm/doc: document some tracepoints as uAPI Pierre-Eric Pelloux-Prayer
2025-05-14 12:53 ` Philipp Stanner
2025-05-16 7:56 ` Pierre-Eric Pelloux-Prayer
2025-04-24 8:38 ` [PATCH v9 10/10] drm/amdgpu: update trace format to match gpu_scheduler_trace Pierre-Eric Pelloux-Prayer
2025-04-25 5:31 ` Yadav, Arvind [this message]
2025-05-14 12:25 ` [PATCH v9 00/10] Improve gpu_scheduler trace events + UAPI Pierre-Eric Pelloux-Prayer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53b5bc09-5dd3-c34b-c696-34de1773f369@amd.com \
--to=arvyadav@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pierre-eric.pelloux-prayer@amd.com \
--cc=simona@ffwll.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®