All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
To: "David S. Ahern" <daahern@cisco.com>
Cc: linux-perf-users@vger.kernel.org,
	"Amit Patel (amitpate)" <amitpate@cisco.com>
Subject: Re: off-box analysis of perf.data file
Date: Fri, 19 Nov 2010 10:50:46 -0200	[thread overview]
Message-ID: <20101119125046.GA24999@ghostprotocols.net> (raw)
In-Reply-To: <4CE5A093.8020809@cisco.com>

Em Thu, Nov 18, 2010 at 02:54:27PM -0700, David S. Ahern escreveu:
> Hmmm.... From a user perspective maintaining build-id databases for
> short-use builds is more complex than using a --rootfs argument. i.e.,
> add rootfs to symbol_conf with a default value of "", add a --rootfs
> argument to analysis commands to allow a user to specify a path, and
> within dso__load prepend the paths within rootfs. This appears to be
> similar to what has been done for builtin-kvm and analyzing guest
> data.  Furthermore, this allows a wide range of options - loop
> mounting KVM disk images, NFS trees, bootable USB keys, initrds, etc.
> Anything with an OS tree can be analyzed from anywhere without the
> need to populate a local data store.
 
> Similar argument for kallsyms point to a file rather than pointing to
> /proc/kallsyms -- which again parallels what has been done for builtin-kvm.

Yeah, I think it is worth having it for maximum flexibility, can you try
to implement it and post the patch for discussion?

> "perf" in the above meant all the commands that eventually call
> dso__load. In my F14 - F13 test case (data collected on a Fedora 14
> system and analyzed on a Fedora 13 system), 'strace -e trace=open perf
> report ...' shows perf opening a lot of files on the F13 system - even
> though the ~/.debug tree was populated using perf-archive.

What 'perf buildid-list' shows on this specific perf.data file? Perhaps
it is not finding the build-ids somehow and so fallbacks to looking at
the system binaries, checking if they have the same build-id, if
build-ids are present on the perf.data file header.

There is a bit of historical baggage here, in the pre-build-id days the
tools would look just at the pathnames, assuming the binaries hadn't
changed, etc.

- Arnaldo

  reply	other threads:[~2010-11-19 12:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-15  4:03 off-box analysis of perf.data file David S. Ahern
2010-11-16 23:40 ` Arnaldo Carvalho de Melo
2010-11-17  1:27   ` Arnaldo Carvalho de Melo
2010-11-17 23:31   ` David S. Ahern
2010-11-18 20:19     ` Arnaldo Carvalho de Melo
2010-11-18 21:54       ` David S. Ahern
2010-11-19 12:50         ` Arnaldo Carvalho de Melo [this message]
2010-11-20 15:44           ` David S. Ahern
2010-11-20 17:12             ` Arnaldo Carvalho de Melo

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=20101119125046.GA24999@ghostprotocols.net \
    --to=acme@ghostprotocols.net \
    --cc=amitpate@cisco.com \
    --cc=daahern@cisco.com \
    --cc=linux-perf-users@vger.kernel.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.