mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pekka Paalanen <pq@iki.fi>
To: Ingo Molnar <mingo@elte.hu>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Roel Kluin <roel.kluin@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH v2 0/4] ftrace: important updates
Date: Wed, 7 Jan 2009 19:54:56 +0200	[thread overview]
Message-ID: <20090107195456.3247bab5@daedalus.pq.iki.fi> (raw)
In-Reply-To: <20090107094905.GB16025@elte.hu>

On Wed, 7 Jan 2009 10:49:05 +0100
Ingo Molnar <mingo@elte.hu> wrote:

> * Steven Rostedt <rostedt@goodmis.org> wrote:
> 
> >       ring-buffer: rename debugfs file tracing_on to writing_enabled
> 
> writing_enabled is at least as confusing as tracing_on - if not more so.
> 
> The user really does not care about all the deeper machinery that happens 
> in ftrace - the difference between a 'light' disabling of a tracer and a 
> 'heavy' disabling of a tracer (which means it unregisters itself 
> completely in essence).
> 
> To resolve this, we should probably hide this difference altogether (as i 
> have suggested to do many months ago, when this first came up), by 
> removing tracing_enabled.
> 
> A tracer can still be fully unregistered: by simply switching the current 
> tracer to the 'nop' tracer. tracing_on/off remains the lightweight version 
> that most users are interested in anyway.

This sounds even better. We should not need tracing_enabled anymore, since
the buffer size can be changed regardless. tracing_on is more useful to
mmiotrace than tracing_enabled, too, since mmiotrace does not implement
the proper pausing behaviour on the tracing_enabled trigger.

But if Steven wants to keep the "pause" semantics, should there be a
callback dispatched to the tracer from tracing_on, just like there is
from tracing_enabled currently? Of course the callback semantics would
be different and the usual reaction would be to do nothing. It would
only be meaningful to tracers that update data outside the ring buffer,
so that they can properly pause.

-- 
Pekka Paalanen
http://www.iki.fi/pq/

  reply	other threads:[~2009-01-07 17:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-07  4:16 Steven Rostedt
2009-01-07  4:16 ` [PATCH v2 1/4] ftrace: convert unsigned index to signed Steven Rostedt
2009-01-07  4:16 ` [PATCH v2 2/4] ring-buffer: rename debugfs file tracing_on to writing_enabled Steven Rostedt
2009-01-07  4:16 ` [PATCH v2 3/4] tracing/ftrace: fix a memory leak in stat tracing Steven Rostedt
2009-01-07  4:16 ` [PATCH v2 4/4] trace: clean up funny line breaks in stat_seq_show Steven Rostedt
2009-01-07  9:49 ` [PATCH v2 0/4] ftrace: important updates Ingo Molnar
2009-01-07 17:54   ` Pekka Paalanen [this message]
2009-01-07 18:12     ` Steven Rostedt
2009-01-07 18:53       ` Ingo Molnar

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=20090107195456.3247bab5@daedalus.pq.iki.fi \
    --to=pq@iki.fi \
    --cc=akpm@linux-foundation.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=roel.kluin@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=tglx@linutronix.de \
    /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®