From: Steven Rostedt <rostedt@goodmis.org>
To: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linux Trace Kernel <linux-trace-kernel@vger.kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
dmaluka@google.com, Sean Paul <seanpaul@chromium.org>,
Arun Easi <aeasi@marvell.com>, Daniel Wagner <dwagner@suse.de>
Subject: Re: [PATCH] tracing: Allow creating instances with specified system events
Date: Wed, 29 Nov 2023 10:25:45 -0500 [thread overview]
Message-ID: <20231129102545.56901df5@gandalf.local.home> (raw)
In-Reply-To: <20231129235821.d99da161644525a2fa988938@kernel.org>
On Wed, 29 Nov 2023 23:58:21 +0900
Masami Hiramatsu (Google) <mhiramat@kernel.org> wrote:
> > - Dynamic events had to be specified directly to still allow them to be
> > created.
>
> I have a question about this point. Does this mean the dynamic event files
> will be created in the instance which limits the "system"?
> For this point, I would like to allow limiting dynamic events on instance too.
> If user needs to use specific one, e.g. synthetic, then it is possible to
> add it to the filter.
I'm going back and forth on this. Here's my thoughts about it.
Arguments for allowing all dynamic events:
1. There's not many. This code is basically a way to keep the overhead of
an instance down. By removing all static events, it can substantially lower
the memory footprint.
As synthetic events are user created, there shouldn't be too many that
would cause a memory foot print issue, and the user also has a bit of
control of what events are created.
2. We have no idea what a user may want to do with those events. What if
the user wants to see an event in that buffer and creates a synthetic
event for it? Should the kernel create a policy for that?
Arguments against defaulting dynamic events in:
1. The list is created in the kernel. The instance is not created by the
user and thus the kernel could have more control over it.
2. If the user really wants to have dynamic events, they can create another
instance with the needed events or use the top level.
Hmm, writing this out, I am now leaning more toward not defaulting dynamic
events in. And if we can create a way to dynamically add and remove events
systems from an instance (via mkdir and rmdir), this should not be an issue.
Anyone else have any thoughts about this?
-- Steve
next prev parent reply other threads:[~2023-11-29 15:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-28 17:21 [PATCH] tracing: Allow creating instances with specified system events Steven Rostedt
2023-11-29 14:58 ` Masami Hiramatsu
2023-11-29 15:25 ` Steven Rostedt [this message]
2023-11-30 14:58 ` Masami Hiramatsu
2023-12-05 18:13 ` Dmytro Maluka
2023-12-05 18:28 ` 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=20231129102545.56901df5@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=aeasi@marvell.com \
--cc=dmaluka@google.com \
--cc=dwagner@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
--cc=seanpaul@chromium.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