public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb/amdgpu: Silence wave termination messages
@ 2023-09-15 10:52 Lancelot Six
  2023-09-15 15:41 ` Simon Marchi
  0 siblings, 1 reply; 3+ messages in thread
From: Lancelot Six @ 2023-09-15 10:52 UTC (permalink / raw)
  To: gdb-patches; +Cc: lsix, Laurent Morichetti

From: Laurent Morichetti <laurent.morichetti@amd.com>

Hi,

Here is a patch originally written by Laurent Morichetti fixing a
regression in the amd-dbgapi-target I am submitting on his behalf.

Best,
Lancelot.

After commit 9d7d58e7262, the amdgpu target started printing
"thread exited" messages when pruning waves that had terminated.

  ...
  [AMDGPU Wave ?:?:?:2045 (?,?,?)/? exited]
  [AMDGPU Wave ?:?:?:2046 (?,?,?)/? exited]
  [AMDGPU Wave ?:?:?:2047 (?,?,?)/? exited]
  [AMDGPU Wave ?:?:?:2048 (?,?,?)/? exited]
  ...

The issue was that before commit 9d7d58e7262, delete_thread was silent
by default due to a bug that the commit fixed.

Replaced the amdgpu target call to delete_thread with a call to
delete_thread_silent.

Change-Id: Ie5d5a4c5be851f092d2315b2afa6a36a30a05245
---
 gdb/amd-dbgapi-target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c
index 22c269b7992..8eafceac569 100644
--- a/gdb/amd-dbgapi-target.c
+++ b/gdb/amd-dbgapi-target.c
@@ -1634,7 +1634,7 @@ amd_dbgapi_target::update_thread_list ()
 	    auto it = threads.find (tp->ptid.tid ());
 
 	    if (it == threads.end ())
-	      delete_thread (tp);
+	      delete_thread_silent (tp);
 	    else
 	      threads.erase (it);
 	  }

base-commit: 38cc67cc00dc7385991e2658a1b4213d5ba3c4f0
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdb/amdgpu: Silence wave termination messages
  2023-09-15 10:52 [PATCH] gdb/amdgpu: Silence wave termination messages Lancelot Six
@ 2023-09-15 15:41 ` Simon Marchi
  2023-09-15 16:22   ` Six, Lancelot
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Marchi @ 2023-09-15 15:41 UTC (permalink / raw)
  To: Lancelot Six, gdb-patches; +Cc: lsix, Laurent Morichetti

On 9/15/23 06:52, Lancelot Six via Gdb-patches wrote:
> From: Laurent Morichetti <laurent.morichetti@amd.com>
> 
> Hi,
> 
> Here is a patch originally written by Laurent Morichetti fixing a
> regression in the amd-dbgapi-target I am submitting on his behalf.
> 
> Best,
> Lancelot.
> 
> After commit 9d7d58e7262, the amdgpu target started printing
> "thread exited" messages when pruning waves that had terminated.
> 
>   ...
>   [AMDGPU Wave ?:?:?:2045 (?,?,?)/? exited]
>   [AMDGPU Wave ?:?:?:2046 (?,?,?)/? exited]
>   [AMDGPU Wave ?:?:?:2047 (?,?,?)/? exited]
>   [AMDGPU Wave ?:?:?:2048 (?,?,?)/? exited]
>   ...
> 
> The issue was that before commit 9d7d58e7262, delete_thread was silent
> by default due to a bug that the commit fixed.
> 
> Replaced the amdgpu target call to delete_thread with a call to
> delete_thread_silent.
> 
> Change-Id: Ie5d5a4c5be851f092d2315b2afa6a36a30a05245
> ---
>  gdb/amd-dbgapi-target.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c
> index 22c269b7992..8eafceac569 100644
> --- a/gdb/amd-dbgapi-target.c
> +++ b/gdb/amd-dbgapi-target.c
> @@ -1634,7 +1634,7 @@ amd_dbgapi_target::update_thread_list ()
>  	    auto it = threads.find (tp->ptid.tid ());
>  
>  	    if (it == threads.end ())
> -	      delete_thread (tp);
> +	      delete_thread_silent (tp);
>  	    else
>  	      threads.erase (it);
>  	  }
> 
> base-commit: 38cc67cc00dc7385991e2658a1b4213d5ba3c4f0
> -- 
> 2.34.1
> 

LGTM, thanks.

Approved-By: Simon Marchi <simon.marchi@efficios.com>

Simon

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gdb/amdgpu: Silence wave termination messages
  2023-09-15 15:41 ` Simon Marchi
@ 2023-09-15 16:22   ` Six, Lancelot
  0 siblings, 0 replies; 3+ messages in thread
From: Six, Lancelot @ 2023-09-15 16:22 UTC (permalink / raw)
  To: Simon Marchi, gdb-patches; +Cc: lsix, Morichetti, Laurent

[-- Attachment #1: Type: text/plain, Size: 2274 bytes --]

[AMD Official Use Only - General]

Thanks.

I have pushed this patch.

Best,
Lancelot.
________________________________
From: Simon Marchi <simon.marchi@polymtl.ca>
Sent: Friday, September 15, 2023 4:41 PM
To: Six, Lancelot <Lancelot.Six@amd.com>; gdb-patches@sourceware.org <gdb-patches@sourceware.org>
Cc: lsix@lancelotsix.com <lsix@lancelotsix.com>; Morichetti, Laurent <Laurent.Morichetti@amd.com>
Subject: Re: [PATCH] gdb/amdgpu: Silence wave termination messages

Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.


On 9/15/23 06:52, Lancelot Six via Gdb-patches wrote:
> From: Laurent Morichetti <laurent.morichetti@amd.com>
>
> Hi,
>
> Here is a patch originally written by Laurent Morichetti fixing a
> regression in the amd-dbgapi-target I am submitting on his behalf.
>
> Best,
> Lancelot.
>
> After commit 9d7d58e7262, the amdgpu target started printing
> "thread exited" messages when pruning waves that had terminated.
>
>   ...
>   [AMDGPU Wave ?:?:?:2045 (?,?,?)/? exited]
>   [AMDGPU Wave ?:?:?:2046 (?,?,?)/? exited]
>   [AMDGPU Wave ?:?:?:2047 (?,?,?)/? exited]
>   [AMDGPU Wave ?:?:?:2048 (?,?,?)/? exited]
>   ...
>
> The issue was that before commit 9d7d58e7262, delete_thread was silent
> by default due to a bug that the commit fixed.
>
> Replaced the amdgpu target call to delete_thread with a call to
> delete_thread_silent.
>
> Change-Id: Ie5d5a4c5be851f092d2315b2afa6a36a30a05245
> ---
>  gdb/amd-dbgapi-target.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gdb/amd-dbgapi-target.c b/gdb/amd-dbgapi-target.c
> index 22c269b7992..8eafceac569 100644
> --- a/gdb/amd-dbgapi-target.c
> +++ b/gdb/amd-dbgapi-target.c
> @@ -1634,7 +1634,7 @@ amd_dbgapi_target::update_thread_list ()
>           auto it = threads.find (tp->ptid.tid ());
>
>           if (it == threads.end ())
> -           delete_thread (tp);
> +           delete_thread_silent (tp);
>           else
>             threads.erase (it);
>         }
>
> base-commit: 38cc67cc00dc7385991e2658a1b4213d5ba3c4f0
> --
> 2.34.1
>

LGTM, thanks.

Approved-By: Simon Marchi <simon.marchi@efficios.com>

Simon

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-09-15 16:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-15 10:52 [PATCH] gdb/amdgpu: Silence wave termination messages Lancelot Six
2023-09-15 15:41 ` Simon Marchi
2023-09-15 16:22   ` Six, Lancelot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).