From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752396AbcELG4O (ORCPT ); Thu, 12 May 2016 02:56:14 -0400 Received: from smtprelay4.synopsys.com ([198.182.47.9]:43962 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752130AbcELG4M (ORCPT ); Thu, 12 May 2016 02:56:12 -0400 Subject: Re: [RFC 2/2] perf/core: change errno for sampling event not supported in hardware To: Peter Zijlstra References: <1462786660-2900-1-git-send-email-vgupta@synopsys.com> <1462786660-2900-3-git-send-email-vgupta@synopsys.com> <5730C79F.3060307@synopsys.com> <20160511193627.GH3190@twins.programming.kicks-ass.net> <5734229B.90706@synopsys.com> <20160512064201.GL3192@twins.programming.kicks-ass.net> CC: , Vince Weaver , , , , Newsgroups: gmane.linux.kernel.arc,gmane.linux.kernel.perf.user,gmane.linux.kernel From: Vineet Gupta Message-ID: <573428A1.3060402@synopsys.com> Date: Thu, 12 May 2016 12:24:25 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <20160512064201.GL3192@twins.programming.kicks-ass.net> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.158] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday 12 May 2016 12:12 PM, Peter Zijlstra wrote: >> Tried that and doesn't even compile. Reconfirms what Vince said, ENOTSUPP is not >> > exposed to userspace (being in include/linux and not include/uapi/linux) > Durr, so what does userspace see? It sees the "value" of ENOTSUPP, i.e. 524 but there is no symbolic reference to it :-)