linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2] kdb code refactoring
@ 2021-05-13 11:28 Sumit Garg
  2021-05-13 11:28 ` [PATCH v3 1/2] kdb: Get rid of redundant kdb_register_flags() Sumit Garg
  2021-05-13 11:28 ` [PATCH v3 2/2] kdb: Simplify kdb_defcmd macro logic Sumit Garg
  0 siblings, 2 replies; 8+ messages in thread
From: Sumit Garg @ 2021-05-13 11:28 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 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 (2):
  kdb: Get rid of redundant kdb_register_flags()
  kdb: Simplify kdb_defcmd macro logic

 include/linux/kdb.h            |  27 ++--
 kernel/debug/kdb/kdb_main.c    | 271 +++++++++++++--------------------
 kernel/debug/kdb/kdb_private.h |  13 --
 kernel/trace/trace_kdb.c       |  12 +-
 samples/kdb/kdb_hello.c        |  20 ++-
 5 files changed, 141 insertions(+), 202 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-06-17 11:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 11:28 [PATCH v3 0/2] kdb code refactoring Sumit Garg
2021-05-13 11:28 ` [PATCH v3 1/2] kdb: Get rid of redundant kdb_register_flags() Sumit Garg
2021-05-13 11:31   ` Sumit Garg
2021-05-13 13:19   ` Steven Rostedt
2021-05-20 17:20   ` Doug Anderson
2021-06-17 11:49     ` Sumit Garg
2021-05-13 11:28 ` [PATCH v3 2/2] kdb: Simplify kdb_defcmd macro logic Sumit Garg
2021-05-20 17:21   ` Doug Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).