All of lore.kernel.org
 help / color / mirror / Atom feed
* + scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod.patch added to -mm tree
@ 2016-05-10 19:34 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2016-05-10 19:34 UTC (permalink / raw)
  To: jan.kiszka, mm-commits


The patch titled
     Subject: scripts/gdb: Adjust module reference counter reported by lx-lsmod
has been added to the -mm tree.  Its filename is
     scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod.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/SubmitChecklist when testing your code ***

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

------------------------------------------------------
From: Jan Kiszka <jan.kiszka@siemens.com>
Subject: scripts/gdb: Adjust module reference counter reported by lx-lsmod

This takes the MODULE_REF_BASE into account.

Link: http://lkml.kernel.org/r/d926d2d54caa034adb964b52215090cbdb875249.1462865983.git.jan.kiszka@siemens.com
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/gdb/linux/modules.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN scripts/gdb/linux/modules.py~scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod scripts/gdb/linux/modules.py
--- a/scripts/gdb/linux/modules.py~scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod
+++ a/scripts/gdb/linux/modules.py
@@ -78,7 +78,7 @@ class LxLsmod(gdb.Command):
                 address=str(layout['base']).split()[0],
                 name=module['name'].string(),
                 size=str(layout['size']),
-                ref=str(module['refcnt']['counter'])))
+                ref=str(module['refcnt']['counter'] - 1)))
 
             source_list = module['source_list']
             t = self._module_use_type.get_type().pointer()
_

Patches currently in -mm which might be from jan.kiszka@siemens.com are

scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod.patch
scripts-gdb-cast-cpu-numbers-to-integer.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-10 19:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-10 19:34 + scripts-gdb-adjust-module-reference-counter-reported-by-lx-lsmod.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.