From: Nick Alcock <nick.alcock@oracle.com>
To: Luis Chamberlain <mcgrof@kernel.org>
Cc: linux-modules <linux-modules@vger.kernel.org>,
Steven Rostedt <rostedt@goodmis.org>
Subject: Re: module_license tree refreshed against linux-next
Date: Thu, 23 Mar 2023 16:45:02 +0000 [thread overview]
Message-ID: <87zg83mn75.fsf@esperi.org.uk> (raw)
In-Reply-To: <ZBuQOXi+my7bnXzR@bombadil.infradead.org> (Luis Chamberlain's message of "Wed, 22 Mar 2023 16:33:13 -0700")
[Cc:ed Steve because I think he wanted something like this]
On 22 Mar 2023, Luis Chamberlain spake thusly:
> On Tue, Mar 21, 2023 at 04:52:20PM +0000, Nick Alcock wrote:
>> On 21 Mar 2023, Luis Chamberlain verbalised:
>>
>> > On Tue, Mar 21, 2023 at 10:29:08AM +0000, Nick Alcock wrote:
>> >> I have not dropped commits with Greg K-H as maintainer simply because I
>> >> kept on oscillating on doing that, so I thought I'd leave the commits in
>> >> so you have the option to do either.
>> >
>> > No, I don't want to do that work, please drop Greg's drivers.
>>
>> OK! Repushed to the same branch, sans what I *think* is the relevant set:
>>
>> binder: remove MODULE_LICENSE in non-modules
>> serial: remove MODULE_LICENSE in non-modules
>> vgacon: remove MODULE_LICENSE in non-modules
>> tty: serial: imx: remove MODULE_LICENSE in non-modules
>> tty: remove MODULE_LICENSE in non-modules
>>
>> I hope that's right -- it's all the patches he was directly Cc:ed on.
>>
>> (other branches containing kallmodsyms as a whole, etc, have not yet
>> been refreshed at all and are old: I'll get to it).
>
> OK I merged this set onto modules-next. Thanks.
Fabulous! It really is time for me to get back to making the kallmodsyms
commit logs and cover letters comprehensible to people who aren't me...
btw, as proof this is not all totally useless makework I just
implemented this (in something I can't even think of upstreaming until
after kallmodsyms since it relies on it):
% echo function > /sys/kernel/tracing/current_tracer
% echo 1 > /sys/kernel/tracing/options/sym-unambiguous
% cat /sys/kernel/tracing/trace
<idle>-0 [001] d.h4. 65.103804: available_idle_cpu <-select_idle_sibling@fair.o
[...]
<idle>-0 [005] d.h3. 99.316093: _raw_spin_unlock[bcache] <-scheduler_tick
<idle>-0 [005] d.h2. 99.316093: perf_event_task_tick@events/core.o <-scheduler_tick
<idle>-0 [005] d.h2. 99.316094: perf_adjust_freq_unthr_context@events/core.o <-perf_event_task_tick@events/core.o
<idle>-0 [005] d.h2. 99.316094: __rcu_read_lock <-perf_event_task_tick@events/core.o
<idle>-0 [005] d.h2. 99.316095: __rcu_read_unlock <-scheduler_tick
[...]
kworker/u32:11-121 [010] ...1. 98.665295: _raw_spin_lock_irqsave[bcache] <-__wake_up_common_lock@build_utility.o
kworker/u32:11-121 [010] d..2. 98.665295: __wake_up_common@build_utility.o <-__wake_up_common_lock@build_utility.o
[...]
kworker/u32:11-121 [010] d..4. 98.665308: set_task_cpu <-try_to_wake_up
[...]
Object file name fragments and module names in tracer output --
including builtin module names, though it's not obvious from that
snippet. All names unambiguous, though I'm not sure about the notation:
using @ is neat but it's not really obvious to the user that this
corresponds to {...} in /proc/kallmodsyms, though hopefully it is
obvious what it means regardless.
(I am totally open to improved notations: I changed my mind three times
already.)
With the kallmodsyms stuff in place, and a bit more to allow kernel-side
access to it, doing this was not much code at all:
kernel/trace/ftrace.c | 21 ++++++++++++++++++---
kernel/trace/trace.c | 1 +
kernel/trace/trace.h | 3 ++-
kernel/trace/trace_output.c | 21 ++++++++++++++++++---
kernel/trace/trace_output.h | 3 ++-
kernel/trace/trace_recursion_record.c | 4 ++--
6 files changed, 43 insertions(+), 10 deletions(-)
(and really you can drop the kernel/trace/ftrace.c part entirely, which
is just updating the stats output for the sheer hell of it).
(the tree is still under internal review and probably still awful, but
if you want to see it anyway I can push it somewhere external.)
next prev parent reply other threads:[~2023-03-23 16:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-21 10:29 module_license tree refreshed against linux-next Nick Alcock
2023-03-21 16:32 ` Luis Chamberlain
2023-03-21 16:52 ` Nick Alcock
2023-03-22 23:33 ` Luis Chamberlain
2023-03-23 16:45 ` Nick Alcock [this message]
2023-03-23 19:43 ` Luis Chamberlain
2023-03-23 20:00 ` Steven Rostedt
2023-03-23 20:38 ` Nick Alcock
2023-03-23 23:08 ` Steven Rostedt
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=87zg83mn75.fsf@esperi.org.uk \
--to=nick.alcock@oracle.com \
--cc=linux-modules@vger.kernel.org \
--cc=mcgrof@kernel.org \
--cc=rostedt@goodmis.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;
as well as URLs for NNTP newsgroup(s).