All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] kdb code refactoring
@ 2021-07-09 10:43 Sumit Garg
  2021-07-09 10:43 ` [PATCH v4 1/4] kdb: Rename struct defcmd_set to struct kdb_macro_t Sumit Garg
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Sumit Garg @ 2021-07-09 10:43 UTC (permalink / raw)
  To: kgdb-bugreport
  Cc: daniel.thompson, jason.wessel, dianders, rostedt, mingo,
	linux-kernel, Sumit Garg

Some more kdb code refactoring related to:
- Removal of redundant kdb_register_flags().
- Simplification of kdb defcmd macro logic.

Tested with kgdbtest on arm64, doesn't show any regressions.

Changes in v4:
- Split rename of "defcmd_set" to "kdb_macro" as a separate patch.
- Incorporated misc. comments from Doug.
- Added a patch that removes redundant prefix "cmd_" from name of
  members of struct kdbtab_t.

Changes in v3:
- Split patch into 2 for ease of review.
- Get rid of kdb_register_flags() completely via switching all user to
  register pre-allocated kdb commands.

Changes in v2:
- Define new structs: kdb_macro_t and kdb_macro_cmd_t instead of
  modifying existing kdb command struct and struct kdb_subcmd.
- Reword commit message.

Sumit Garg (4):
  kdb: Rename struct defcmd_set to struct kdb_macro_t
  kdb: Get rid of redundant kdb_register_flags()
  kdb: Simplify kdb_defcmd macro logic
  kdb: Rename members of struct kdbtab_t

 include/linux/kdb.h            |  27 +-
 kernel/debug/kdb/kdb_bp.c      |  72 ++--
 kernel/debug/kdb/kdb_main.c    | 628 +++++++++++++++------------------
 kernel/debug/kdb/kdb_private.h |  13 -
 kernel/trace/trace_kdb.c       |  12 +-
 samples/kdb/kdb_hello.c        |  20 +-
 6 files changed, 359 insertions(+), 413 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-07-12 13:41 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-09 10:43 [PATCH v4 0/4] kdb code refactoring Sumit Garg
2021-07-09 10:43 ` [PATCH v4 1/4] kdb: Rename struct defcmd_set to struct kdb_macro_t Sumit Garg
2021-07-09 21:36   ` Doug Anderson
2021-07-12  7:13     ` Sumit Garg
2021-07-12 13:40       ` Doug Anderson
2021-07-09 10:43 ` [PATCH v4 2/4] kdb: Get rid of redundant kdb_register_flags() Sumit Garg
2021-07-09 21:37   ` Doug Anderson
2021-07-12  7:14     ` Sumit Garg
2021-07-09 10:43 ` [PATCH v4 3/4] kdb: Simplify kdb_defcmd macro logic Sumit Garg
2021-07-09 21:37   ` Doug Anderson
2021-07-12  7:16     ` Sumit Garg
2021-07-09 10:43 ` [PATCH v4 4/4] kdb: Rename members of struct kdbtab_t Sumit Garg
2021-07-09 21:37   ` Doug Anderson
2021-07-12  7:17     ` Sumit Garg

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.