From: Ingo Molnar <mingo@elte.hu>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Arjan van de Ven <arjan@linux.intel.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
Frederic Weisbecker <fweisbec@gmail.com>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: Fix powerTOP regression with 2.6.39-rc5
Date: Sat, 7 May 2011 16:44:02 +0200 [thread overview]
Message-ID: <20110507144402.GC2859@elte.hu> (raw)
In-Reply-To: <1304765110.25414.2564.camel@gandalf.stny.rr.com>
* Steven Rostedt <rostedt@goodmis.org> wrote:
> 2) we separate perf from ftrace and keep the "stable" ABI for perf, and let
> ftrace advance into a more efficient tracer.
The thing is, ftrace is still largely separated from perf, and this is why this
regression came in: a random tracing 'cleanup' churn was done to 'tracing'
which broke PowerTop.
Look at the commit itself:
e6e1e2593592: tracing: Remove lock_depth from event entry
Clearly you didnt even *realize* that there's a whole tooling world behind this
mechanism ...
The core perf ABI is set up in a way that makes it rather hard to break the ABI
accidentally. I can bisect back kernel release after kernel release and old
tooling will work on new kernel and new tooling will work on old kernels.
PowerTop uses the perf ABI because it's a rather convenient and unified method
to get a rich selection of events via the same facility, same ring-buffer,
using a system call ABI, etc.
The ftrace event bits on the other hand, still somewhat glued on to the perf
ABI are still very fragile to such spurious changes like the one that caused
the regression here.
I raised this issue in the past. ftrace and perf has to be unified sooner
rather than later.
> Here's the choices then:
>
> 1) we get libparsevent.so out into the world and all tools can use it, and
> the raw formats of the trace events will no longer be an issue as long as the
> names of events and fields stay the same.
Firstly, such an event parser already exists in
tools/perf/util/parse-events.[ch], so if you want to librarize it please talk
to Arnaldo to create tools/perf/lib/ and a libperf.so.
There's 10 separate contributors to that file already:
earth4:~/tip> git-authors-email tools/perf/util/parse-events.c
2 Peter Zijlstra <peterz@infradead.org>
2 Stephane Eranian <eranian@google.com>
2 Ulrich Drepper <drepper@redhat.com>
3 Jason Baron <jbaron@redhat.com>
3 Li Zefan <lizf@cn.fujitsu.com>
3 Peter Zijlstra <a.p.zijlstra@chello.nl>
7 Frederic Weisbecker <fweisbec@gmail.com>
7 Jaswinder Singh Rajput <jaswinder@kernel.org>
13 Arnaldo Carvalho de Melo <acme@redhat.com>
15 Ingo Molnar <mingo@elte.hu>
Most notably *you* are not amongst them. Not a single commit out of close to a
hundred commits. Why not? This really demonstrates the level of disinterest you
are showing towards perf based tooling, still you keep modifying the underlying
code in the kernel.
Secondly, you are solving the wrong problem and you are not seeing the real
problems. We can keep and we *will* keep ABIs, it's not hard. 4 bytes padding
is not an issue and it never was for PowerTop nor for any other real person who
relies on tracing.
As i see it the problem is the thought-less ftrace churn and the fragility of
how TRACE_EVENT() can be changed.
Really, ftrace and in particular you are showing a huge disconnect and i'm
increasingly unhappy about it. Look at this very thread: you fought tooth and
nail to even *acknowledge* that there is a problem...
As things look like from my side it appears you want to keep ftrace a messy,
forked project with no regard to perf based tooling and this will fragment
Linux instrumentation, the many technical disadvantages be damned.
I simply do not see that you understand this whole problem space, i do not see
that you are driving towards unifying ftrace and perf - i only see that you are
hacking in random, sometimes harmful directions and that you are stubornly
ignoring my negative feedback about this. If problems like this continue i will
have to stop pulling new ftrace features from you.
Thanks,
Ingo
next prev parent reply other threads:[~2011-05-07 14:44 UTC|newest]
Thread overview: 40+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-06 20:08 Fix powerTOP regression with 2.6.39-rc5 Arjan van de Ven
2011-05-06 20:20 ` Steven Rostedt
2011-05-06 20:51 ` Linus Torvalds
2011-05-06 21:10 ` Steven Rostedt
2011-05-06 21:24 ` Linus Torvalds
2011-05-06 21:14 ` Steven Rostedt
2011-05-06 21:28 ` Linus Torvalds
2011-05-06 21:29 ` Arjan van de Ven
2011-05-06 21:57 ` Steven Rostedt
2011-05-07 6:58 ` Ingo Molnar
2011-05-07 10:45 ` Steven Rostedt
2011-05-07 14:44 ` Ingo Molnar [this message]
2011-05-07 17:20 ` Steven Rostedt
2011-05-07 17:59 ` Arjan van de Ven
2011-05-08 21:08 ` Frederic Weisbecker
2011-05-08 21:56 ` Arjan van de Ven
2011-05-07 19:00 ` Ingo Molnar
2011-05-10 3:07 ` Steven Rostedt
2011-05-10 4:44 ` Dave Chinner
2011-05-10 5:39 ` Steven Rostedt
2011-05-10 7:36 ` Dave Chinner
2011-05-10 7:54 ` Ingo Molnar
2011-05-10 8:09 ` Ingo Molnar
2011-05-10 8:32 ` Arjan van de Ven
2011-05-10 8:44 ` Ingo Molnar
2011-05-10 9:14 ` Pekka Enberg
2011-05-10 8:41 ` Ingo Molnar
2011-05-10 13:06 ` Steven Rostedt
2011-05-11 21:51 ` Ingo Molnar
2011-05-11 22:36 ` Steven Rostedt
2011-05-17 7:15 ` Michael Rubin
2011-05-17 11:19 ` Steven Rostedt
2011-05-17 13:24 ` David Ahern
2011-05-17 13:27 ` Steven Rostedt
2011-05-17 13:30 ` Ingo Molnar
2011-05-10 8:47 ` Ingo Molnar
2011-05-10 10:33 ` Steven Rostedt
2011-05-10 19:13 ` David Sharp
2011-05-09 23:37 ` David Sharp
2011-05-10 7:39 ` 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=20110507144402.GC2859@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=arjan@linux.intel.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.