From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: Luigi Semenzato <semenzato@chromium.org>
Cc: Ingo Molnar <mingo@kernel.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@elte.hu>,
Andrew Morton <akpm@linux-foundation.org>,
Vasiliy Kulikov <segoon@openwall.com>,
Stephen Wilson <wilsons@start.ca>,
Oleg Nesterov <oleg@redhat.com>, Tejun Heo <tj@kernel.org>,
Paul Gortmaker <paul.gortmaker@windriver.com>,
Andi Kleen <ak@linux.intel.com>,
Lucas De Marchi <lucas.demarchi@profusion.mobi>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Frederic Weisbecker <fweisbec@gmail.com>,
David Ahern <dsahern@gmail.com>,
Namhyung Kim <namhyung@gmail.com>,
Robert Richter <robert.richter@amd.com>,
linux-kernel@vger.kernel.org, sonnyrao@chromium.org,
olofj@chromium.org, eranian@google.com
Subject: Re: [PATCH] perf: do not flush maps on COMM for perf report
Date: Wed, 22 Aug 2012 13:29:58 -0300 [thread overview]
Message-ID: <20120822162958.GA13623@infradead.org> (raw)
In-Reply-To: <CAA25o9RJOre2mw4z7Mh94iRKcHVdby9RjLfP91far16me8_94Q@mail.gmail.com>
Em Wed, Aug 22, 2012 at 09:09:10AM -0700, Luigi Semenzato escreveu:
> On Wed, Aug 22, 2012 at 12:28 AM, Ingo Molnar <mingo@kernel.org> wrote:
> > * Luigi Semenzato <semenzato@chromium.org> wrote:
> >> An alternative patch (which I proposed earlier) would be to
> >> introduce a separate PERF_RECORD_EXEC type, but it is a much
> >> larger change (about 300 lines) and is not necessary.
> > It would be nice to add that too - we already have FORK/EXIT,
> > this seems like a natural extension.
> Yes. Adding PERF_RECORD_EXEC is/would be the right long-term
> solution. But there are two issues.
> 1. One nice aspect of perf is that perf.data files and "perf report"
> are compatible across a large number of versions. Adding
> PERF_RECORD_EXEC breaks compatibility in a somewhat unpleasant manner.
> New perf.data files won't work with old versions of perf and *might*
> fail poorly (segv) although this situation is difficult to analyze.
> 2. Adding a new record type is messy. It replicates a lot of
> boilerplate code, much of it in the kernel, and affects many parts of
> the system. It adds to size, complexity, and likelihood of new bugs.
> I would prioritize the "would be nice" category as follows.
> 1. Improve the handling of unknown record types for future better
> backward compatibility. (Small change.)
> 2. Refactor/cleanup code to improve readability and robustness. (Big
> change, but can be broken into many smaller pieces.)
> 3. Add PERF_RECORD_EXEC.
> If there is consensus, I might be able to give a shot to 1 and 2
> (courtesy of Google).
I think this is just common sense, i.e. I'd love to take patches that
improve the robustness of the tools any day.
Refactoring code to make it cleaner and possibly faster and/or smaller,
ditto.
Adding the EXEC event, ditto. And I agree that while adding it we want
to do 1/2 as pre-requisite.
- Arnaldo
next prev parent reply other threads:[~2012-08-22 16:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 21:52 [PATCH] perf: do not flush maps on COMM for perf report Luigi Semenzato
2012-08-22 7:28 ` Ingo Molnar
2012-08-22 16:09 ` Luigi Semenzato
2012-08-22 16:29 ` Arnaldo Carvalho de Melo [this message]
2012-08-22 16:56 ` David Ahern
2012-08-22 18:16 ` Arnaldo Carvalho de Melo
2012-08-22 18:26 ` Luigi Semenzato
2012-08-22 18:42 ` David Ahern
2012-08-22 19:22 ` David Ahern
2012-10-24 6:04 ` [tip:perf/urgent] perf tools: " tip-bot for Luigi Semenzato
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=20120822162958.GA13623@infradead.org \
--to=acme@ghostprotocols.net \
--cc=a.p.zijlstra@chello.nl \
--cc=ak@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=dsahern@gmail.com \
--cc=ebiederm@xmission.com \
--cc=eranian@google.com \
--cc=fweisbec@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucas.demarchi@profusion.mobi \
--cc=mingo@elte.hu \
--cc=mingo@kernel.org \
--cc=namhyung@gmail.com \
--cc=oleg@redhat.com \
--cc=olofj@chromium.org \
--cc=paul.gortmaker@windriver.com \
--cc=paulus@samba.org \
--cc=rjw@sisk.pl \
--cc=robert.richter@amd.com \
--cc=segoon@openwall.com \
--cc=semenzato@chromium.org \
--cc=sonnyrao@chromium.org \
--cc=tj@kernel.org \
--cc=viro@zeniv.linux.org.uk \
--cc=wilsons@start.ca \
/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