[PATCH 0/4] Fixes and improvements for scripts/qemugdb commands

andrey.drobyshev@virtuozzo.com posted 4 patches 2 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251125142105.448289-1-andrey.drobyshev@virtuozzo.com
There is a newer version of this series
scripts/qemugdb/coroutine.py | 126 ++++++++++++++++++++++++++++++++---
scripts/qemugdb/mtree.py     |   2 +-
scripts/qemugdb/timers.py    |  54 ++++++++++++---
3 files changed, 162 insertions(+), 20 deletions(-)
[PATCH 0/4] Fixes and improvements for scripts/qemugdb commands
Posted by andrey.drobyshev@virtuozzo.com 2 months, 2 weeks ago
From: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>

Commands 'qemu mtree' and 'qemu timers' are currently not working.
Luckily, fixing them requires minimal effort.

The most interesting part is adding '--detailed' option into 'qemu bt'
and 'qemu coroutine' commands.  That is based on the previous downstream
work by Vladimir.  As this approach is much heavier than the current
stack unwinding, we add it as non-default behaviour.

Andrey Drobyshev (4):
  scripts/qemugdb: mtree: Fix OverflowError in mtree with 128-bit
    addresses
  scripts/qemugdb: timers: Fix KeyError in 'qemu timers' command
  scripts/qemugdb: timers: Improve 'qemu timers' command readability
  scripts/qemugdb: coroutine: Add option for obtaining detailed trace in
    coredump

 scripts/qemugdb/coroutine.py | 126 ++++++++++++++++++++++++++++++++---
 scripts/qemugdb/mtree.py     |   2 +-
 scripts/qemugdb/timers.py    |  54 ++++++++++++---
 3 files changed, 162 insertions(+), 20 deletions(-)

-- 
2.43.5
Re: [PATCH 0/4] Fixes and improvements for scripts/qemugdb commands
Posted by Stefan Hajnoczi 2 months, 2 weeks ago
On Tue, Nov 25, 2025 at 04:21:01PM +0200, andrey.drobyshev@virtuozzo.com wrote:
> From: Andrey Drobyshev <andrey.drobyshev@virtuozzo.com>
> 
> Commands 'qemu mtree' and 'qemu timers' are currently not working.
> Luckily, fixing them requires minimal effort.
> 
> The most interesting part is adding '--detailed' option into 'qemu bt'
> and 'qemu coroutine' commands.  That is based on the previous downstream
> work by Vladimir.  As this approach is much heavier than the current
> stack unwinding, we add it as non-default behaviour.
> 
> Andrey Drobyshev (4):
>   scripts/qemugdb: mtree: Fix OverflowError in mtree with 128-bit
>     addresses
>   scripts/qemugdb: timers: Fix KeyError in 'qemu timers' command
>   scripts/qemugdb: timers: Improve 'qemu timers' command readability
>   scripts/qemugdb: coroutine: Add option for obtaining detailed trace in
>     coredump
> 
>  scripts/qemugdb/coroutine.py | 126 ++++++++++++++++++++++++++++++++---
>  scripts/qemugdb/mtree.py     |   2 +-
>  scripts/qemugdb/timers.py    |  54 ++++++++++++---
>  3 files changed, 162 insertions(+), 20 deletions(-)
> 
> -- 
> 2.43.5
> 

Aside from the question about script(1):
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>