Re: tools/perf: "perf record" restricted to root in latest kernel?

From: Peter Zijlstra
Date: Thu Jan 07 2010 - 03:30:23 EST


On Thu, 2010-01-07 at 05:48 +0100, Mike Galbraith wrote:
> On Thu, 2010-01-07 at 11:49 +0900, Miles Bader wrote:
>
> > Perhaps the newer version of perf works better with newer kernels
>
> Yup. Bisects back to 60ab271617cec607380099f3ed8e84916e48323b. If
> running latest kernel, normal user can record fine. Running 31 or 32
> kernel with latest perf though, I see the same permission error. Not
> immediately obvious to me why reverting this commit does indeed fix it.

That commit will do something the old perf doesn't support and will fail
to create the counters.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/