public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Eugene Loh <eugene.loh@oracle.com>
To: Masahiro Yamada <masahiroy@kernel.org>,
	Steven Rostedt <rostedt@goodmis.org>
Cc: Jonathan Corbet <corbet@lwn.net>,
	Michal Marek <michal.lkml@markovi.net>,
	Jessica Yu <jeyu@kernel.org>,
	Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
	Marc Zyngier <maz@kernel.org>, Song Liu <songliubraving@fb.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	"Keller, Jacob E" <jacob.e.keller@intel.com>,
	Kris Van Hees <kris.van.hees@oracle.com>,
	Nick Alcock <nick.alcock@oracle.com>
Subject: Re: [PATCH v4] kallsyms: add names of built-in modules
Date: Wed, 8 Jan 2020 10:32:09 -0800	[thread overview]
Message-ID: <aa165beb-a92c-c3b9-d57a-4046ba91f677@oracle.com> (raw)
In-Reply-To: <CAK7LNATJZCekCoj0ruPUGRv7sH_hcJP-dFPd-3_EOR5hFNW-Xg@mail.gmail.com>

On 12/18/2019 08:28 PM, Masahiro Yamada wrote:

> On Thu, Dec 19, 2019 at 12:29 PM Steven Rostedt <rostedt@goodmis.org> wrote:
>> Couple of notes:
>> 1) this affects code that doesn't really have a maintainer. I could
>> take it in my tree, but I would like to have acks from other
>> maintainers. Perhaps Jessica Yu (Module maintainer), and probably one
>> from Linus himself.
>>
>> 2) Do not send new versions of a patch as a reply to the old version. I
>> and many other maintainers sort our inbox by threads, and I look at the
>> top of the thread for patches. That is, if there's another version of a
>> patch that is a reply to a previous version, it is basically off my
>> radar, unless I happen to notice it by chance (which I did with this
>> email).
>>
>> You can send your v4 patch again, but please send it as its own thread,
>> that way it will be on the radar of other maintainers. Hopefully we can
>> get some acks on this as well.

Sorry.  I misunderstood some process doc.  But before I resend...

> I do not like this patch.
>
> scripts/Makefile.modbuiltin is really ugly.
> It traverses all the directories once again.
>
> This patch makes it even worse,
> Kbuild would traverse the
> whole directories three times.
>
> I was thinking to remove scripts/Makefile.modbuiltin
> and Kconfig's tristate.conf entirely
> because it is possible to generate modules.builtin more simply.

Sorry about the delayed response, due in part to holidays.  Thank you 
for your on-going review and the pointer to 
https://lore.kernel.org/patchwork/project/lkml/list/?series=423205

I agree your proposed patch simplifies some build code, but this is 
long-standing code.  Also, the build time -- either that would be saved 
by your patch or that would be incurred by a third traversal -- is 
miniscule.

Further, I do not see how to add object-to-module information to your 
proposed scheme.  Can you suggest something?  If not, then it seems the 
proposed code simplification is limiting functionality.

> As I said, the name of builtin module is not fixed info.
> And, this makes kallsyms fat just for less important info.

The name of the builtin module can be ambiguous in some cases, but in 
most cases it is not.  Indeed, the extra information is typically 
useful, and comments from, e.g., Linus and Steve were positive about 
adding that information to kallsyms.  Further, we have even heard 
favorable feedback for adding such built-in-module information to 
available_filter_functions as well.

>>> On 12/10/2019 09:48 AM, eugene.loh@oracle.com wrote:
>>>> From: Eugene Loh <eugene.loh@oracle.com>
>>>>
>>>> /proc/kallsyms is very useful for tracers and other tools that need
>>>> to map kernel symbols to addresses.
>>>>
>>>> It would be useful if there were a mapping between kernel symbol and
>>>> module name that only changed when the kernel source code is changed.
>>>> This mapping should not vanish simply because a module becomes built
>>>> into the kernel.

  parent reply	other threads:[~2020-01-08 18:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-14 22:30 [PATCH] kallsyms: new /proc/kallmodsyms with builtin modules and symbol sizes eugene.loh
2019-11-15 16:47 ` Steven Rostedt
2019-11-15 17:26   ` Linus Torvalds
2019-11-16 17:58     ` Eugene Loh
2019-11-17  0:32       ` Linus Torvalds
2019-11-19 22:42         ` [PATCH v2] kallsyms: add names of built-in modules eugene.loh
2019-11-20  4:59           ` [PATCH v3] " eugene.loh
2019-11-22 10:00             ` Masahiro Yamada
2019-11-22 15:23               ` Nick Alcock
2019-11-22 17:04                 ` Eugene Loh
2019-12-10 17:45               ` Eugene Loh
2019-12-10 17:48                 ` [PATCH v4] " eugene.loh
2019-12-18 23:55                   ` Eugene Loh
2019-12-19  3:29                     ` Steven Rostedt
2019-12-19  4:28                       ` Masahiro Yamada
2019-12-19 10:22                         ` Masahiro Yamada
2020-01-08 18:32                         ` Eugene Loh [this message]
2020-01-20  6:37                           ` Masahiro Yamada
2020-01-24 18:08                             ` Eugene Loh
2019-12-19  9:43                       ` Jessica Yu
2019-11-20  0:11         ` [PATCH] kallsyms: new /proc/kallmodsyms with builtin modules and symbol sizes Eugene Loh

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=aa165beb-a92c-c3b9-d57a-4046ba91f677@oracle.com \
    --to=eugene.loh@oracle.com \
    --cc=corbet@lwn.net \
    --cc=jacob.e.keller@intel.com \
    --cc=jeyu@kernel.org \
    --cc=kris.van.hees@oracle.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=maz@kernel.org \
    --cc=michal.lkml@markovi.net \
    --cc=nick.alcock@oracle.com \
    --cc=rostedt@goodmis.org \
    --cc=songliubraving@fb.com \
    --cc=tglx@linutronix.de \
    /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