Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752372Ab0AFFc1 (ORCPT ); Wed, 6 Jan 2010 00:32:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751996Ab0AFFc0 (ORCPT ); Wed, 6 Jan 2010 00:32:26 -0500 Received: from TYO201.gate.nec.co.jp ([202.32.8.193]:63401 "EHLO tyo201.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751578Ab0AFFcZ (ORCPT ); Wed, 6 Jan 2010 00:32:25 -0500 From: Miles Bader To: linux-kernel@vger.kernel.org Subject: tools/perf: "perf record" restricted to root in latest kernel? Reply-To: Miles Bader System-Type: x86_64-unknown-linux-gnu Blat: Foop Date: Wed, 06 Jan 2010 14:32:17 +0900 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1171 Lines: 25 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! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/