From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751065Ab3LJFIy (ORCPT ); Tue, 10 Dec 2013 00:08:54 -0500 Received: from LGEMRELSE7Q.lge.com ([156.147.1.151]:43662 "EHLO LGEMRELSE7Q.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750764Ab3LJFIx (ORCPT ); Tue, 10 Dec 2013 00:08:53 -0500 X-AuditID: 9c930197-b7bdbae000000e78-ff-52a6a1e30629 From: Namhyung Kim To: Vince Weaver Cc: linux-kernel@vger.kernel.org, Chad Paradis , David Ahern , Ingo Molnar , Jiri Olsa , Paul Mackerras , Peter Zijlstra , Stephane Eranian Subject: Re: [patch] perf tools: perf list broken on ARM References: <87iouxjvz6.fsf@sejong.aot.lge.com> Date: Tue, 10 Dec 2013 14:08:51 +0900 In-Reply-To: (Vince Weaver's message of "Mon, 9 Dec 2013 22:58:46 -0500 (EST)") Message-ID: <874n6hjnrw.fsf@sejong.aot.lge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Brightmail-Tracker: AAAAAA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 9 Dec 2013 22:58:46 -0500 (EST), Vince Weaver wrote: > On Tue, 10 Dec 2013, Namhyung Kim wrote: > >> Hi Vince, >> Okay, the reason I set the bit was consideration of a very strict >> perf_event_paranoid setting (-2). >> >> So maybe we can try it again with the bit cleared after a failure, or >> checking the paranoid setting first. > > If perf_event_paranoid is set to 2 then you should get EPERM rather than > ENOENT or EINVAL, right? Maybe that could be used too. Ah, yes, it's 2. :) And it also can use the return value then. > > As a side note, why doesn't paranoid 2 block events that don't have > exclude_hv set? Hmm.. maybe because it predated the bit? Thanks, Namhyung