From: Steven Rostedt <rostedt@goodmis.org>
To: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: Brian Norris <briannorris@chromium.org>,
sashiko-bot@kernel.org, sashiko-reviews@lists.linux.dev,
linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH] tracing: 'select' GENERIC_TRACER, not 'depends'
Date: Wed, 18 Nov 2026 09:11:10 -0500 [thread overview]
Message-ID: <20261118091110.4b7db7da@gandalf.local.home> (raw)
In-Reply-To: <undine-1794963487554690675-818c80e274af2040@undined.local>
On Wed, 18 Nov 2026 09:58:07 +0900
"Masami Hiramatsu (Google)" <mhiramat@kernel.org> wrote:
> On Tue, 17 Nov 2026 14:23:10 -0500, Steven Rostedt <rostedt@goodmis.org> wrote:
> > On Tue, 17 Nov 2026 14:22:03 -0500
> > Steven Rostedt <rostedt@goodmis.org> wrote:
> >
> > As it doesn't need to be visible let's still have:
> >
> >
> > > config ENABLE_EVENTS
> > > bool "Enable trace events"
> > depends on !GENERIC_TRACER
> > select TRACING
>
> I don't like these changes. I think TRACING should be kept "depends on"
> for this.
>
> If a proper hierarchical structure of dependencies is in place,
> visibility may seem unimportant. (especially, "!GENERIC_TRACER" may
> just hide the option instead of indicating "Trace events are enabled")
The GENERIC_TRACER meant everything but the "nop" tracer.
That is, everything in the available_tracers:
~# cat /sys/kernel/tracing/available_tracers
timerlat osnoise hwlat blk mmiotrace function_graph wakeup_dl wakeup_rt wakeup preemptirqsoff preemptoff irqsoff function
>
> FTRACE ("Tracing" menu)
> L_ FUNCTION_TRACER
> | L_ FUNCTION_TRACER_SELFTESTS
> | L_ FUNCTION_GRAPH_TRACER
> | ...
> L_ TRACE_EVENTS (can be hidden)
> | L_ SYSCALL_EVENTS
> | L_ KPROBE_EVENTS
> | L_ HIST_TRIGGERS
> | ...
> L_ GENERIC_TRACER
> | L_ IRQSOFF_TRACER
> | L_ SYSCALL_TRACER (selects TRACE_EVENTS and SYSCALL_EVENTS)
> L_ TRACE_OPTIONS(can be hidden)
> L_ SNAPSHOT
> L_ ...
> L_
>
> Maybe something like above?
It would be:
FTRACE
L_ GENERIC_TRACER
| L_ FUNCTION_TRACER
| L_ FUNCTION_GRAPH_TRACER
| L_ PREEMPTIRQSOFF_TRACER
| L_ HWLAT_TRACER
| L_ OSNOISE_TRACER
| L_ MMIO_TRACER
| [..]
|
L_ TRACE_EVENTS
L_ SYSCALL_EVENTS
L_ KPROBE_EVENTS
L_ HIST_TRIGGERS
As the Generic tracers always enable trace events, but the trace events do
not enable the tracers.
I think we can start to separate ftrace and fgraph from the tracers too,
but that will take more than just modifying the config files. That is,
ftrace is the function hook mechanism and and fgraph is the return side.
Neither are dependent on the tracers, but the tracers are dependent on them.
-- Steve
next prev parent reply other threads:[~2026-11-18 14:11 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 22:46 [PATCH] tracing: 'select' GENERIC_TRACER, not 'depends' Brian Norris
2026-11-16 22:58 ` sashiko-bot
2026-11-17 13:55 ` Steven Rostedt
2026-11-17 18:23 ` Brian Norris
2026-11-17 18:36 ` sashiko-bot
2026-11-17 18:42 ` Brian Norris
2026-11-17 19:22 ` Steven Rostedt
2026-11-17 19:23 ` Steven Rostedt
2026-11-17 20:35 ` Brian Norris
2026-11-17 21:10 ` Steven Rostedt
2026-11-17 21:41 ` Brian Norris
2026-11-18 0:58 ` Masami Hiramatsu (Google)
2026-11-18 14:11 ` Steven Rostedt [this message]
2026-11-17 13:53 ` Steven Rostedt
2026-11-17 17:45 ` Brian Norris
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=20261118091110.4b7db7da@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=briannorris@chromium.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mhiramat@kernel.org \
--cc=sashiko-bot@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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