public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Tim Bird <tim.bird@am.sony.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: "Bird, Tim" <Timothy.Bird@am.sony.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Li Zefan <lizf@cn.fujitsu.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	linux kernel <linux-kernel@vger.kernel.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Steven Rostedt <rostedt@goodmis.org>
Subject: Re: [PATCH 2/4] ftrace - add function_duration tracer
Date: Thu, 10 Dec 2009 13:13:28 -0800	[thread overview]
Message-ID: <4B216478.3080601@am.sony.com> (raw)
In-Reply-To: <20091210070800.GB16874@elte.hu>

Ingo Molnar wrote:
> * Tim Bird <tim.bird@am.sony.com> wrote:
> 
>> Add function duration tracer.
>>
>> Signed-off-by: Tim Bird <tim.bird@am.sony.com>
>> ---
>>  kernel/trace/Kconfig          |    8
>>  kernel/trace/Makefile         |    1
>>  kernel/trace/trace.c          |   32 ++
>>  kernel/trace/trace_duration.c |  527 ++++++++++++++++++++++++++++++++++++++++++
>>  4 files changed, 568 insertions(+)
> 
> Please do it in a cleaner an more generic fashion: add a "function 
> event" that perf can see and process, so all the output embellishment 
> can be done outside of the kernel, in tools/perf/.

Sigh.  OK - where's the perf code?

It took me a while to wrap my head around ftrace, so if I've
got to switch to a completely different event-ing infrastructure,
it will probably be some time before I'm back again.

I have some patches to add function graph tracing for
ARM, and to make it possible to use arbitrary ftrace plugins
at boot time.  (There are issues with the current code for
anything other than the bootgraph plugin).

Are either of these still interesting?

I was about to start work on dynamic ftrace support for ARM.
What is the status of this?

> We want to wind down the current maze of ftrace plugins, not extend 
> them. We already obsoleted the following ftrace plugins: scheduler, 
> sysprof, blktrace, kmem, scheduler, etc. There's more work ongoing and 
> broad agreement between folks developing it that this is the way 
> forward.

It looks like all the tracers mentioned above are still in 2.6.32,
which was just released. In what sense are they "already obsoleted"?

In what time frame will the ftrace plugin feature be obsoleted?
I'm using this code on 2.6.29 for a variety of Sony products.
If the ftrace plugin stuff isn't going away for another year
or two that gives me several years of utility with the current
code (which I recognize I'd have to maintain myself out-of-tree).

Once things have settled down and you guys have figured out
for sure what's going on, I could come back and try to integrate
these features into perf.  As it stands now, I'm a little wary
of putting much effort into that.

Where are these things discussed?  Only on LKML?  It would be
handy if there were a separate list that could get CC-ed for
ftrace stuff, so I could monitor it more easily for big movements
like this.  I apologize if there is and I've just missed it.

> The function tracer / function graph tracer is a holdout due to its 
> complexity - but that by no means weakens the argument and the necessity 
> to migrate it.
> 
> ftrace plugins were a nice idea originally and a clear improvement over 
> existing alternatives, but now that we've got a technicaly superior, 
> unified event framework that can do what the old plugins did and much 
> more, we want to improve that and not look back ...

I'm a little worried about this.  ftrace is already an order
of magnitude more overhead than the previous tracer I was using.
I don't have ANY experience with perf, but if you're using it
for tracing, that already seems one step removed from it's
original use for reporting performance counters.  The complexity
described in the discussion related to this thread does not
raise my hopes that it will meet my needs.

I guess I'll have to start looking at perf to see if my
concerns are justified.  But first, I've got to get the mainline
kernel booting again on my embedded hardware.
 -- Tim

=============================
Tim Bird
Architecture Group Chair, CE Linux Forum
Senior Staff Engineer, Sony Corporation of America
=============================


  parent reply	other threads:[~2009-12-10 21:13 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-09 22:40 [PATCH 2/4] ftrace - add function_duration tracer Tim Bird
2009-12-10  7:08 ` Ingo Molnar
2009-12-10 12:03   ` Frederic Weisbecker
2009-12-10 14:11     ` Ingo Molnar
2009-12-10 14:53       ` Steven Rostedt
2009-12-10 15:38         ` Ingo Molnar
2009-12-10 16:22           ` Steven Rostedt
2009-12-10 16:52             ` Ingo Molnar
2009-12-10 17:16               ` Steven Rostedt
2009-12-10 17:28           ` Frank Ch. Eigler
2009-12-10 17:57             ` Ingo Molnar
2009-12-10 18:04               ` Frank Ch. Eigler
2009-12-10 18:35                 ` Ingo Molnar
2009-12-10 18:50                   ` Frank Ch. Eigler
2009-12-10 20:14                     ` Ingo Molnar
2009-12-10 21:30                       ` Frank Ch. Eigler
2009-12-10 14:29     ` Steven Rostedt
2009-12-10 16:16       ` Ingo Molnar
2009-12-10 20:23       ` Frederic Weisbecker
2009-12-10 21:55         ` Steven Rostedt
2009-12-10 22:40           ` Frederic Weisbecker
2009-12-10 21:13   ` Tim Bird [this message]
2009-12-10 22:04     ` Steven Rostedt
2009-12-10 22:26       ` Tim Bird
2009-12-10 22:36       ` Tim Bird
2009-12-10 23:47         ` 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=4B216478.3080601@am.sony.com \
    --to=tim.bird@am.sony.com \
    --cc=Timothy.Bird@am.sony.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=mingo@elte.hu \
    --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