public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* tools/perf: "perf record" restricted to root in latest kernel?
@ 2010-01-06  5:32 Miles Bader
  2010-01-06 20:59 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 6+ messages in thread
From: Miles Bader @ 2010-01-06  5:32 UTC (permalink / raw)
  To: linux-kernel

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!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-01-07  8:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06  5:32 tools/perf: "perf record" restricted to root in latest kernel? Miles Bader
2010-01-06 20:59 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox