From: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
To: Arnaldo Carvalho de Melo <acme@redhat.com>,
namhyung@kernel.org, Peter Zijlstra <a.p.zijlstra@chello.nl>,
Paul Mackerras <paulus@samba.org>, Ingo Molnar <mingo@redhat.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Perf buildid-cache gives a confusing message
Date: Thu, 05 Feb 2015 00:22:46 +0900 [thread overview]
Message-ID: <54D23946.6000106@hitachi.com> (raw)
Hi,
(Sorry, I missed CC to LKML)
I've found a bit odd perf-buildid-cache behavior. It seems
to be as designed, but also a bit confusing.
Issue: perf-buildid-cache's --update and --remove operations
refer the current existing binary at given path. This means
if we update the old binary, it couldn't remove nor update
the buildid-cache.
Here is the example,
----
[mhiramat@localhost perf]$ ./perf buildid-cache -v --add ./perf
Adding 51d0731187917e27fd733f2f6f34777cddbaec0f ./perf: Ok <-- (*)
[mhiramat@localhost perf]$ rm perf
[mhiramat@localhost perf]$ make clean
[mhiramat@localhost perf]$ make
[mhiramat@localhost perf]$ ./perf buildid-cache -v --update ./perf
Updating 45a97daa65f9c58adeb34af4158a6dde747de49b ./perf: FAIL <-- (*)
./perf wasn't in the cache
[mhiramat@localhost perf]$ ./perf buildid-cache -v --remove ./perf
Removing 45a97daa65f9c58adeb34af4158a6dde747de49b ./perf: FAIL <-- (*)
./perf wasn't in the cache
----
Both --update and --remove are failed after updating local binary.
Note that (*) are verbose message, without -v we don't see that.
I know this is the designed behavior, buildid-cache manages binaries
based on its build-id, not its path. However, it seems confusing.
So, I'd like to suggest to fix --update FILE to add new binary to cache
when there is no current binary cache (this will fix the first FAIL),
and add --remove-all FILE to remove all existing buildid cache about FILE
(path-based cleanup).
What would you think about that?
Thank you,
--
Masami HIRAMATSU
Software Platform Research Dept. Linux Technology Research Center
Hitachi, Ltd., Yokohama Research Laboratory
E-mail: masami.hiramatsu.pt@hitachi.com
reply other threads:[~2015-02-04 15:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=54D23946.6000106@hitachi.com \
--to=masami.hiramatsu.pt@hitachi.com \
--cc=a.p.zijlstra@chello.nl \
--cc=acme@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=paulus@samba.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox