Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753067AbaKCQub (ORCPT ); Mon, 3 Nov 2014 11:50:31 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:45437 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752424AbaKCQua (ORCPT ); Mon, 3 Nov 2014 11:50:30 -0500 Date: Mon, 3 Nov 2014 17:50:19 +0100 From: Peter Zijlstra To: Arnaldo Carvalho de Melo Cc: Vince Weaver , Stephane Eranian , Ingo Molnar , Jiri Olsa , Andy Lutomirski , Thomas Gleixner , LKML Subject: Re: [RFD] perf syscall error handling Message-ID: <20141103165019.GY10501@worktop.programming.kicks-ass.net> References: <20141030222814.GF15602@worktop.programming.kicks-ass.net> <20141031072109.GD12706@worktop.programming.kicks-ass.net> <20141031092713.GA23124@gmail.com> <20141031122824.GZ12020@console-pimps.org> <20141103162548.GB18464@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141103162548.GB18464@kernel.org> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 03, 2014 at 02:25:48PM -0200, Arnaldo Carvalho de Melo wrote: > The way that peterz suggested, i.e. returning information about which > perf_event_attr and which of the parameters was invalid/had issues could > help with fallbacking/capability querying, i.e. tooling may want to use > some features if available automagically, fallbacking to something else > when that fails. > > We already do that to some degree in various cases, but for some if the > only way that becomes available to disambiguate some EINVAL return is a > string, code will start having strcmps :-\ OK, so how about we do both, the offset+mask for the tools and the string for the humans? -- 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/