From: Steven Rostedt <rostedt@goodmis.org>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linux-trace-kernel@vger.kernel.org, linux-kernel@vger.kernel.org,
netdev@vger.kernel.org, Masami Hiramatsu <mhiramat@kernel.org>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
Ilya Maximets <i.maximets@ovn.org>,
Matthieu Baerts <matttbe@kernel.org>,
Aaron Conole <aconole@redhat.com>,
Eelco Chaudron <echaudro@redhat.com>,
dev@openvswitch.org, Adrian Moreno <amorenoz@redhat.com>,
Antoine Tenart <atenart@kernel.org>
Subject: Re: [PATCH v7 0/4] tracing: improve symbolic printing
Date: Thu, 5 Nov 2026 09:12:16 -0500 [thread overview]
Message-ID: <20261105091216.7b91db5a@gandalf.local.home> (raw)
In-Reply-To: <20260922110955.363677-6-johannes@sipsolutions.net>
On Tue, 22 Sep 2026 13:08:39 +0200
Johannes Berg <johannes@sipsolutions.net> wrote:
> Hi,
>
> Resend with the selftests and the two sashiko findings.
Hi Johannes,
Could you also add code in the samples/trace_events directory. Perhaps add
a new event?
This will make it easier to understand exactly how to add new __print_sym()s.
FYI, this series did pass all my tests.
Thanks,
-- Steve
>
> v2 was:
> - rebased on 6.9-rc1
> - always search for __print_sym() and get rid of the DYNPRINT flag
> and associated code; I think ideally we'll just remove the older
> __print_symbolic() entirely
> - use ':' as the separator instead of "//" since that makes searching
> for it much easier and it's still not a valid char in an identifier
> - fix RCU
>
> v3:
> - fix #undef issues
> - fix drop_monitor default
> - rebase on linux-trace/for-next (there were no conflicts)
> - move net patches to 3/4
> - clarify symbol name matching logic (and remove ")" from it)
>
> v4:
> - fix non-module build and possibly dynamic event handling
>
> v5: (https://lore.kernel.org/all/20240614081956.19832-6-johannes@sipsolutions.net/)
> - fix build warning in non-module build
>
> v6: (https://lore.kernel.org/linux-trace-kernel/20260921101538.97286-6-johannes@sipsolutions.net/)
> - rebase
> - fix nit from Paolo (I hope, I don't remember changing it
> but it looks fixed!)
> - fix crash due to wrong data placement
>
> v7: (this version)
> - update ovs selftest
> - don't ifdef drop_reason_lookup() prototype
> - fix section alignment
>
>
> To recap, it's annoying to have
>
> irq/65-iwlwifi:-401 [000] 22.790000: kfree_skb: ... reason: 0x20000
>
> and much nicer to see
>
> irq/65-iwlwifi:-401 [000] 22.790000: kfree_skb: ... reason: RX_DROP_MONITOR
>
> but this doesn't work now because __print_symbolic() can only
> deal with a hard-coded list (which is actually really big.)
>
> So here's __print_sym() which doesn't build the list into the
> kernel image, but creates it at runtime. For userspace, it
> will look the same as __print_symbolic() (it literally shows
> __print_symbolic() to userspace) so no changes are needed,
> but the actual list of values exposed to userspace in there
> is built dynamically. For SKB drop reasons, this then has all
> the reasons known when userspace queries the trace format.
>
> I guess patches 3/4 should go through net-next, so not sure
> how to handle this patch series. Or perhaps, as this will likely
> not cause conflicts (in fact I've been rebasing it for years now),
> go through tracing anyway with an Ack from netdev? But I can
> also just wait for the trace patch(es) to land and resubmit the
> net patches after. Assuming this looks good at all :-)
>
> Thanks,
> johannes
next prev parent reply other threads:[~2026-11-05 14:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 11:08 Johannes Berg
2026-09-22 11:08 ` [PATCH v7 1/4] tracing: add __print_sym() to replace __print_symbolic() Johannes Berg
2026-09-22 11:08 ` [PATCH v7 2/4] tracing/timer: use __print_sym() Johannes Berg
2026-09-22 11:08 ` [PATCH v7 3/4] net: dropreason: use new __print_sym() in tracing Johannes Berg
2026-09-24 15:31 ` Ilya Maximets
2026-09-28 13:34 ` Aaron Conole
2026-09-22 11:08 ` [PATCH v7 4/4] net: drop_monitor: use drop_reason_lookup() Johannes Berg
2026-11-05 14:12 ` Steven Rostedt [this message]
2026-11-05 15:04 ` [PATCH v7 0/4] tracing: improve symbolic printing Johannes Berg
2026-11-05 16:24 ` Steven Rostedt
2026-11-05 16:26 ` Johannes Berg
2026-11-05 16:38 ` Steven Rostedt
2026-11-05 17:09 ` Johannes Berg
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=20261105091216.7b91db5a@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=aconole@redhat.com \
--cc=amorenoz@redhat.com \
--cc=atenart@kernel.org \
--cc=dev@openvswitch.org \
--cc=echaudro@redhat.com \
--cc=i.maximets@ovn.org \
--cc=johannes@sipsolutions.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=matttbe@kernel.org \
--cc=mhiramat@kernel.org \
--cc=netdev@vger.kernel.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®