All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHv4 00/12] gdb/scripts: Linux awareness debug commands
@ 2016-03-30 12:00 Kieran Bingham
  2016-03-30 12:00 ` [PATCHv4 01/12] scripts/gdb: Provide linux constants Kieran Bingham
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Kieran Bingham @ 2016-03-30 12:00 UTC (permalink / raw)
  To: jan.kiszka, linux-kernel
  Cc: lee.jones, peter.griffin, maxime.coquelin, Kieran Bingham

Hopefully, version 4 of this patchset now starts to look like a useful set of
additions. Whilst this set drops the lx-interrupts command, I am actually quite
pleased with the effectiveness of the $lx_radix_tree_lookup function which
will be more generically useful across multiple subsystems.

I have also dropped lx-meminfo (for now) as it is just not in a viable state
for integration, whereas the other patches in this set (hopefully) are.

I believe that being able to identify the memory profiles of a crashed system
is a useful debug feature, however currently the command is presenting more
inaccurate information than I deem acceptable, and it will need to be worked
on separately. I will likely post this current state separately for reference
or if anyone is interested in it, but I don't want it's state to block these
patches.

I have run these against PEP8 for both version 1.4.6 (Ubuntu 14.04), and 1.6.2
(Ubuntu 15.10) which hopefully means we won't come across the issues of the
previous set, but I did not have easy access to v1.5.7.

I haven't yet discovered why lx-mounts prints a root / root line, where
/proc/mounts does not, but the ST implementation appears to also print this.

For convenience, this patch set submission can be found at
 http://git.linaro.org/people/kieran.bingham/linux.git gdb-scripts-v4

v4:
 - list generator improved after review comments
 - Alternate PEP8 warnings fixed
 - lx_radix_tree_lookup added as function with example in Documentation
 - lx-cpus command added
 - lx-interrupts dropped
 - lx-meminfo dropped from this set (TBC separately)

v3:
 - dentry_name moved to utils package
 - PEP8 warnings fixed
 - CPU iterators added
 - Radix Tree parser added
 - lx-interrupts added
 - lx_thread_info_by_pid added

v2:
 - constants.py integrated to KBuild
 - Linked lists added from Jeff Mahoneys implementation
 - Modules converted to use list generators
 - !CONFIG_MODULES supported gracefully
 - lx-meminfo command improved for !CONFIG_MMU targets

Kieran Bingham (12):
  scripts/gdb: Provide linux constants
  scripts/gdb: Provide kernel list item generators
  scripts/gdb: Convert modules usage to lists functions
  scripts/gdb: Provide exception catching parser
  scripts/gdb: Support !CONFIG_MODULES gracefully
  scripts/gdb: Provide a dentry_name VFS path helper
  scripts/gdb: Add io resource readers
  scripts/gdb: Add mount point list command
  scripts/gdb: Add cpu iterators
  scripts/gdb: Add a Radix Tree Parser
  scripts/gdb: Add documentation example for radix tree
  scripts/gdb: Add lx_thread_info_by_pid helper

 Documentation/gdb-kernel-debugging.txt |  21 +++++
 Kbuild                                 |  10 +++
 scripts/gdb/linux/Makefile             |  12 ++-
 scripts/gdb/linux/constants.py.in      |  59 +++++++++++++
 scripts/gdb/linux/cpus.py              |  38 ++++++++
 scripts/gdb/linux/lists.py             |  21 +++++
 scripts/gdb/linux/modules.py           |  22 +++--
 scripts/gdb/linux/proc.py              | 156 +++++++++++++++++++++++++++++++++
 scripts/gdb/linux/radixtree.py         |  97 ++++++++++++++++++++
 scripts/gdb/linux/tasks.py             |  19 ++++
 scripts/gdb/linux/utils.py             |  15 ++++
 scripts/gdb/vmlinux-gdb.py             |   2 +
 12 files changed, 459 insertions(+), 13 deletions(-)
 create mode 100644 scripts/gdb/linux/constants.py.in
 create mode 100644 scripts/gdb/linux/radixtree.py

-- 
2.5.0

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

end of thread, other threads:[~2016-03-30 21:03 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30 12:00 [PATCHv4 00/12] gdb/scripts: Linux awareness debug commands Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 01/12] scripts/gdb: Provide linux constants Kieran Bingham
2016-03-30 21:02   ` Jan Kiszka
2016-03-30 12:00 ` [PATCHv4 02/12] scripts/gdb: Provide kernel list item generators Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 03/12] scripts/gdb: Convert modules usage to lists functions Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 04/12] scripts/gdb: Provide exception catching parser Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 05/12] scripts/gdb: Support !CONFIG_MODULES gracefully Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 06/12] scripts/gdb: Provide a dentry_name VFS path helper Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 07/12] scripts/gdb: Add io resource readers Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 08/12] scripts/gdb: Add mount point list command Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 09/12] scripts/gdb: Add cpu iterators Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 10/12] scripts/gdb: Add a Radix Tree Parser Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 11/12] scripts/gdb: Add documentation example for radix tree Kieran Bingham
2016-03-30 12:00 ` [PATCHv4 12/12] scripts/gdb: Add lx_thread_info_by_pid helper Kieran Bingham

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.