From: Steven Rostedt <rostedt@goodmis.org>
To: Joel Fernandes <joel@joelfernandes.org>
Cc: Viktor Rosendahl <viktor.rosendahl@gmail.com>,
Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/4] ftrace: Implement fs notification for preempt/irqsoff tracers
Date: Sun, 5 May 2019 15:43:33 -0400 [thread overview]
Message-ID: <20190505154333.56f3a187@oasis.local.home> (raw)
In-Reply-To: <20190504164710.GA55790@google.com>
On Sat, 4 May 2019 12:47:10 -0400
Joel Fernandes <joel@joelfernandes.org> wrote:
> I agree with the general idea, but I don't really like how it is done in the
> patch.
+1
>
> We do have a notification mechanism already in the form of trace_pipe. Can we
> not improve that in some way to be notified of a new trace data? In theory,
> the trace_pipe does fit into the description in the documentation: "Reads
> from this file will block until new data is retrieved"
>
> More comment below:
>
>
> > + config PREEMPTIRQ_FSNOTIFY
> > + bool "Generate fsnotify events for the latency tracers"
> > + default n
> > + depends on (IRQSOFF_TRACER || PREEMPT_TRACER) && FSNOTIFY
> > + help
> > + This option will enable the generation of fsnotify events for the
> > + trace file. This makes it possible for userspace to be notified about
> > + modification of /sys/kernel/debug/tracing/trace through the inotify
> > + interface.
>
> Does this have to be a CONFIG option? If prefer if the code automatically
> does the notification and it is always enabled. I don't see any drawbacks of
> that.
I mentioned that anything it needs to be an option.
> > +#ifdef CONFIG_PREEMPTIRQ_FSNOTIFY
> > +
> > +static void trace_notify_workfn(struct work_struct *work)
> [snip]
>
> I prefer if this facility is available to other tracers as well such as
> the wakeup tracer which is similar in output (check
> Documentation/trace/ftrace.txt). I believe this should be a generic trace
> facility, and not tracer specific.
For what it's worth, I agree with everything Joel just stated.
Thanks,
-- Steve
next prev parent reply other threads:[~2019-05-05 19:43 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-01 20:36 [PATCH v2 0/4] Some new features for the " Viktor Rosendahl
2019-05-01 20:36 ` [PATCH v2 1/4] ftrace: Implement fs notification for " Viktor Rosendahl
2019-05-04 16:47 ` Joel Fernandes
2019-05-05 19:43 ` Steven Rostedt [this message]
2019-05-05 22:39 ` Viktor Rosendahl
2019-05-05 23:01 ` Steven Rostedt
2019-05-05 23:54 ` Viktor Rosendahl
2019-05-06 14:00 ` Joel Fernandes
2019-05-01 20:36 ` [PATCH v2 2/4] preemptirq_delay_test: Add the burst feature and a sysfs trigger Viktor Rosendahl
2019-05-01 20:36 ` [PATCH v2 3/4] Add the latency-collector to tools Viktor Rosendahl
2019-05-01 20:36 ` [PATCH v2 4/4] ftrace: Add an option for tracing console latencies Viktor Rosendahl
2019-05-02 1:38 ` Steven Rostedt
2019-05-02 18:37 ` Viktor Rosendahl
2019-05-02 21:12 ` 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=20190505154333.56f3a187@oasis.local.home \
--to=rostedt@goodmis.org \
--cc=joel@joelfernandes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=viktor.rosendahl@gmail.com \
/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®