Skip to content

scripts/gdb: Fixes for $lx_current and $lx_per_cpu

Florian Rommel lkml 1 version Applied

Status from this message: [merged mm-nonmm-stable] scripts-gdb-fix-detection-of-current-cpu-in-kgdb.patch removed from -mm tree

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesApplied 4/4

Patches in v1 All 4 applied

#Subject and filesSizeRepliesApplied
1/4scripts/gdb: Fix failing KGDB detection during probescripts/gdb/linux/utils.py+1 -10 repliesApplied
2/4scripts/gdb: Fix parameter handling in $lx_per_cpuscripts/gdb/linux/cpus.py+2 -30 repliesApplied
3/4scripts/gdb: Make get_thread_info accept pointersscripts/gdb/linux/tasks.py+1 -10 repliesApplied
4/4scripts/gdb: Fix detection of current CPU in KGDBscripts/gdb/linux/cpus.py+1 -50 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] scripts/gdb: Fixes for $lx_current and $lx_per_cpu

Hi all,

This series fixes several bugs in the GDB scripts related to the $lx_current and $lx_per_cpu functions. The changes were tested with GDB 10, 11, 12, 13, and 14.

Patch 1 fixes false-negative results when probing for KGDB

Patch 2 fixes the $lx_per_cpu function, which is currently non-functional in QEMU-GDB and KGDB.

Patch 3 fixes an additional bug in $lx_per_cpu that occurs with KGDB.

Patch 4 fixes the incorrect detection of the current CPU number in KGDB, which silently breaks $lx_per_cpu and $lx_current.

Regards,
Flo

Florian Rommel (4):
scripts/gdb: Fix failing KGDB detection during probe scripts/gdb: Fix parameter handling in $lx_per_cpu scripts/gdb: Make get_thread_info accept pointers scripts/gdb: Fix detection of current CPU in KGDB

 scripts/gdb/linux/cpus.py  | 11 +++--------
 scripts/gdb/linux/tasks.py |  2 +-
 scripts/gdb/linux/utils.py |  2 +-
 3 files changed, 5 insertions(+), 10 deletions(-)
Signature · 1 line
2.44.0