Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2594642imm; Fri, 24 Aug 2018 01:52:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZgaMGGGa8c4R6/LtkQ4JY3US1ZVxNJ82xKfuqYzsJcRWYfOUxt/9myMcn3kR2ZxUI0ncKT X-Received: by 2002:a62:219b:: with SMTP id o27-v6mr894417pfj.235.1535100759995; Fri, 24 Aug 2018 01:52:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535100759; cv=none; d=google.com; s=arc-20160816; b=SQGays8xjSDKaKnphcyPDbYM6VaVrDGQCn3J5Ir1r0/RfSKiJx2qaqReuxLj7SN8Tp bAro/GwjaDCuq3Ax2CaDnq1caE7MYiwJToIaiM8Jq8unlPoXyvoFUgDseDSsiR515YjY /CObOC4R2nU1tLOwqIuMDFEY/NF0eMuv472RBPDRkNvX9PXAxLg/d8FL6XKL7173DBHD TChJwJYUudrM96syDDeazCaOp9W9WkDplEDUWEaaWnyyXST+K3rqgCUEXWNDUlPC7K6d UPHemjV54uLYCP3U8dIQtWKM1Uhgr6t6dWAKra+aVzBpvW1hpKCfWeMRmTHNQpiHFvOv gkPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=1XZnLm2rzEGM69DymWV0T5VnodzC8AvkUFIC2UFoywc=; b=HDg44iEXYzUrcsjHXebHsWLgHZWI8fDLWgeqc08ADmF7xRiApRYfC3nfRzsNNW2nd+ /rePloboxu92xEUZwWECai8OZSVVysONNY99T2WJ4siwp0RtCesol4M2VU73X+oSaWFP qFayhx28ogvEpttaokD4VsuC0nOM6qt2m39cOKELAxxyzLjkluzQoXZqVCyYyUmhZjhM dEznRaefpV3a+C0OXlPBrUMrIg5/c3yPtJLfu7nFmBz1MzcepgltkcUv5WcXHjR3jz2W /d7PBLFX+MQWVf4mTj/eI5uUkXtSFS2EJvCd9OLiWNKL/aINDl9WftKUuquzERH1BTTu cD1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=OK7LFeKj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5-v6si6132402plr.101.2018.08.24.01.52.24; Fri, 24 Aug 2018 01:52:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=OK7LFeKj; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726946AbeHXMYa (ORCPT + 99 others); Fri, 24 Aug 2018 08:24:30 -0400 Received: from merlin.infradead.org ([205.233.59.134]:38182 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726325AbeHXMYa (ORCPT ); Fri, 24 Aug 2018 08:24:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=1XZnLm2rzEGM69DymWV0T5VnodzC8AvkUFIC2UFoywc=; b=OK7LFeKjtz91nijG5MnFvoXYY 3sO5oipm46znvr84nX2FVwOCdJDvWPw1da1NgbVKR5c50ni4kVwK/BgqD8PWZx1nzoDDDDXhmciUJ OPbQtevRW/QmIz305DIPiUeMhC1TETPOHVskiqbhnQ682I8VpfXXmq6kG9UnOCHOWwfieZtYTqBpP MK5NySgY7K+o7ICitPz1iv7cdeV49/H3oe94OoFFBxHbLPtXPjz2tsMh922W8NRhJty6IRIumn6Vd lpAIBqzTiVdBhaDvq9kIvSd8tKI1uxbpm8joYZmdDBFPMn2UPVN6OP4MhBA0EjppMCzHkpjUet9n3 fPa+kJ2og==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ft7no-0007LJ-05; Fri, 24 Aug 2018 08:50:44 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id BA217202E65E0; Fri, 24 Aug 2018 10:50:42 +0200 (CEST) Date: Fri, 24 Aug 2018 10:50:42 +0200 From: Peter Zijlstra To: Vince Weaver Cc: linux-kernel@vger.kernel.org, Josh Poimboeuf , Alexander Shishkin , Andy Lutomirski , Arnaldo Carvalho de Melo , Arnaldo Carvalho de Melo , Jiri Olsa , Linus Torvalds , Stephane Eranian , Thomas Gleixner , Ingo Molnar Subject: Re: [perf] perf_event.h ABI visibility question Message-ID: <20180824085042.GL24124@hirez.programming.kicks-ass.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 23, 2018 at 02:25:06PM -0400, Vince Weaver wrote: > > I notice that Linux 4.18 has the following changeset which changes the > user visible perf_event.h file > > commit 6cbc304f2f360f25cc8607817239d6f4a2fd3dc5 > Author: Peter Zijlstra > Date: Thu May 10 15:48:41 2018 +0200 > > perf/x86/intel: Fix unwind errors from PEBS entries (mk-II) > > which contains > > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -143,6 +143,8 @@ enum perf_event_sample_format { > PERF_SAMPLE_PHYS_ADDR = 1U << 19, > > PERF_SAMPLE_MAX = 1U << 20, /* non-ABI */ > + > + __PERF_SAMPLE_CALLCHAIN_EARLY = 1ULL << 63, > }; > > > Is this supposed to be a user-visible interface? > > I realize that if the user tries to set anything above PERF_SAMPLE_MAX > it will be caught and flagged as EINVAL. > > However even with the double-underscore hint in > __PERF_SAMPLE_CALLCHAIN_EARLY the value is still in the user-visible > header so it's now part of the ABI and I guess the manpage has to document it. Hurphm.. visible yes, but as you say, also quite useless. Does it really make sense to document that?