+ scripts-gdb-add-utilsread_ulong.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: scripts/gdb: add utils.read_ulong()
has been added to the -mm tree.  Its filename is
     scripts-gdb-add-utilsread_ulong.patch

This patch should soon appear at
    https://ozlabs.org/~akpm/mmots/broken-out/scripts-gdb-add-utilsread_ulong.patch
and later at
    https://ozlabs.org/~akpm/mmotm/broken-out/scripts-gdb-add-utilsread_ulong.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: John Ogness <john.ogness@xxxxxxxxxxxxx>
Subject: scripts/gdb: add utils.read_ulong()

Patch series "update gdb scripts for lockless printk ringbuffer".

When we brought in the new lockless printk ringbuffer, we overlooked the
gdb scripts.  Here are a set of patches to implement gdb support for the
new ringbuffer.


This patch (of 2):

Add a function for reading unsigned long values, which vary in size
depending on the architecture.

Link: https://lkml.kernel.org/r/20200814212525.6118-1-john.ogness@xxxxxxxxxxxxx
Link: https://lkml.kernel.org/r/20200814212525.6118-2-john.ogness@xxxxxxxxxxxxx
Signed-off-by: John Ogness <john.ogness@xxxxxxxxxxxxx>
Reviewed-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
Tested-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
Tested-by: Petr Mladek <pmladek@xxxxxxxx>
Cc: Jan Kiszka <jan.kiszka@xxxxxxxxxxx>
Cc: Baoquan He <bhe@xxxxxxxxxx>
Cc: Dave Young <dyoung@xxxxxxxxxx>
Cc: Vivek Goyal <vgoyal@xxxxxxxxxx>
Cc: Jonathan Corbet <corbet@xxxxxxx>
Cc: Kieran Bingham <kbingham@xxxxxxxxxx>
Cc: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx>
Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: David Laight <David.Laight@xxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 scripts/gdb/linux/utils.py |    7 +++++++
 1 file changed, 7 insertions(+)

--- a/scripts/gdb/linux/utils.py~scripts-gdb-add-utilsread_ulong
+++ a/scripts/gdb/linux/utils.py
@@ -123,6 +123,13 @@ def read_u64(buffer, offset):
         return read_u32(buffer, offset + 4) + (read_u32(buffer, offset) << 32)
 
 
+def read_ulong(buffer, offset):
+    if get_long_type().sizeof == 8:
+        return read_u64(buffer, offset)
+    else:
+        return read_u32(buffer, offset)
+
+
 target_arch = None
 
 
_

Patches currently in -mm which might be from john.ogness@xxxxxxxxxxxxx are

scripts-gdb-add-utilsread_ulong.patch
scripts-gdb-update-for-lockless-printk-ringbuffer.patch




[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux