mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Will Deacon <will.deacon@arm.com>
To: adrian.hunter@intel.com, jolsa@redhat.com, acme@redhat.com,
	a.p.zijlstra@chello.nl
Cc: linux-kernel@vger.kernel.org
Subject: [perf tool] record failure with 3.14-rc4
Date: Mon, 24 Feb 2014 17:24:41 +0000	[thread overview]
Message-ID: <20140224172440.GF2553@mudshark.cambridge.arm.com> (raw)

Hi guys,

If I try to run perf record as a non-root user, I end up with the following
(unhelpful) error:

  $ perf record -e cycles ls
  [...]
  Not enough memory for reading perf file header

This is because the addresses in /proc/kallsyms always read as 0x0 when
viewed by a non-privileged user, causing kallsyms__get_function_start to
return 0x0 in args.start. machine__create_kernel_maps then treats this as
an error an returns -1 to perf_session__create_kernel_maps, causing
perf_session__new to fail and perf to exit.

The perf tool code in 3.13 is perfectly happy creating maps at 0x0, but I
can see this has changed quite substantially in the recent merge window.

Any ideas? We could fix kallsyms__get_function_start to return < 0 on
failure then fix the checks in the callers. Adrian?

Will

             reply	other threads:[~2014-02-24 17:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-24 17:24 Will Deacon [this message]
2014-02-24 17:36 ` Jiri Olsa

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=20140224172440.GF2553@mudshark.cambridge.arm.com \
    --to=will.deacon@arm.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@redhat.com \
    --cc=adrian.hunter@intel.com \
    --cc=jolsa@redhat.com \
    --cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®