mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Steven Rostedt <rostedt@goodmis.org>
To: Sumit Garg <sumit.garg@linaro.org>
Cc: kgdb-bugreport@lists.sourceforge.net, daniel.thompson@linaro.org,
	jason.wessel@windriver.com, dianders@chromium.org,
	mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 1/2] kdb: Get rid of redundant kdb_register_flags()
Date: Thu, 13 May 2021 09:19:35 -0400	[thread overview]
Message-ID: <20210513091935.5747c12e@gandalf.local.home> (raw)
In-Reply-To: <20210513112842.707103-2-sumit.garg@linaro.org>

On Thu, 13 May 2021 16:58:41 +0530
Sumit Garg <sumit.garg@linaro.org> wrote:

> Commit e4f291b3f7bb ("kdb: Simplify kdb commands registration")
> allowed registration of pre-allocated kdb commands with pointer to
> struct kdbtab_t. Lets switch other users as well to register pre-
> allocated kdb commands via:
> - Changing prototype for kdb_register() to pass a pointer to struct
>   kdbtab_t instead.
> - Embed kdbtab_t structure in defcmd_set rather than individual params.
>   So while at it rename struct defcmd_set to struct kdb_macro_t as that
>   sounds more appropriate given its purpose.
> 
> With these changes kdb_register_flags() becomes redundant and hence
> removed. Also, since we have switched all users to register
> pre-allocated commands, "is_dynamic" flag in struct kdbtab_t becomes
> redundant and hence removed as well.
> 
> Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
> ---
>  include/linux/kdb.h            |  27 +++--
>  kernel/debug/kdb/kdb_main.c    | 206 +++++++++++----------------------
>  kernel/debug/kdb/kdb_private.h |  13 ---
>  kernel/trace/trace_kdb.c       |  12 +-

For the tracing directory.

Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

-- Steve

>  samples/kdb/kdb_hello.c        |  20 ++--
>  5 files changed, 104 insertions(+), 174 deletions(-)


  parent reply	other threads:[~2021-05-13 13:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210513091935.5747c12e@gandalf.local.home \
    --to=rostedt@goodmis.org \
    --cc=daniel.thompson@linaro.org \
    --cc=dianders@chromium.org \
    --cc=jason.wessel@windriver.com \
    --cc=kgdb-bugreport@lists.sourceforge.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=sumit.garg@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®