public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Miles Bader <miles@gnu.org>
To: linux-kernel@vger.kernel.org
Subject: tools/perf: "perf record" restricted to root in latest kernel?
Date: Wed, 06 Jan 2010 14:32:17 +0900	[thread overview]
Message-ID: <buopr5nol26.fsf@dhlpc061.dev.necel.com> (raw)

I tried compiling tools/perf in an old linux source tree (ab86e5765,
roughly 2.6.31), and the resulting perf tool seemed to work fine
("perf record" ... "perf report", "perf stat" etc); I ran it as an
ordinary user.

Next I updated to the latest linus tree (c5974b835a), and recompiled perf.
It still seems to work, and has obviously had a lot of features added, but
now it only wants to let me run "perf record" if I'm root.  This is
slightly annoying -- even if I use "sudo" or make it setuid, it still ends
up generating an output file owned by root, etc.

In both cases, I'm using the same kernel (I only recompiled the tool), 2.6.32.

I used no options with "perf record", just gave the command I wanted to profile.

Is there a reason why the newer version perf tool restricts "perf record"
to root, especially given that the older version still seems to work fine
as non-root?

Thanks,

-Miles

-- 
Run away!  Run away!

             reply	other threads:[~2010-01-06  5:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-06  5:32 Miles Bader [this message]
2010-01-06 20:59 ` tools/perf: "perf record" restricted to root in latest kernel? Arnaldo Carvalho de Melo
2010-01-07  2:49   ` Miles Bader
2010-01-07  4:48     ` Mike Galbraith
2010-01-07  5:05       ` Mike Galbraith
2010-01-07  8:29       ` Peter Zijlstra

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=buopr5nol26.fsf@dhlpc061.dev.necel.com \
    --to=miles@gnu.org \
    --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