Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp587566pxb; Wed, 27 Jan 2021 15:59:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwR+UIXxkubtyEtOGyYNLIbAh5oT1MzDW2wWKm3VVO6YgzaGQLPX2iuCuciTqd5e+S8eZKP X-Received: by 2002:a05:6402:402:: with SMTP id q2mr11379132edv.116.1611791955010; Wed, 27 Jan 2021 15:59:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791955; cv=none; d=google.com; s=arc-20160816; b=NWTRMRjgpx4XB8BDRna2g+1qh8+B43v+RAOE//v1hwXz0+Cr0omjtubL7PV0yrPOOE U1R2JawtmpMJbzYrpq9qKh5i9nZAcQzCb/Ou9W4kmv14h6QUQ58elYyLBlrVHZocIWLp 26RBoBshy0/E8JjT/5omxhqgYge5SY0s2OGYJ2Ryvp5S0wEmVS7iaNWpyopMrsmdZyaV Up0YhdTYP0Peq6zvQg6d529GC3A69tmlhkZMJ8e9tvql1XHHJGbNXdgg7t2d6DmMzBNd ouA/pZQWuruMgJ/kI01HFVW8mM+/6XMLKUawkSGa4Ed92THMinWRWLkewkp45qXfoBOa zmyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mtZDQkTPXEcPqbCtS8sQg4qaWBseS8L4LfI1WUkPzDM=; b=gLNd2+rF2Hc1RQiq7MiejIYeyJ4dgWH7DE5fKrJGojH6S/a2e6PQ0Lgk+486zsA+wB rw30rt9KXG3LB/udYqywmKtpNzSF+lX/zBhdvT8R4nqE6JVH0f4xV7Bc9W1i5BnYd6I1 01SAPzrYW2yb7cWb1t8F9PLYxIQsbpnlUDjefH9hst8cxpTBDs3jfIjxlF2XK169PUme gFUR5M7wi+93F74xu7W6tpiGwBcGFqO2ptQlIjFk1aHpW8s0wcbg3snRqgg2w9fhIVf6 KrxLfzaf5EThXO+45ZQMsbfr+jYVVmMChH7NDZVlo18/ebmH7Pv74ANqb+J6tvlsFqaT QKYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b="b7/25XWb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si1800775edq.549.2021.01.27.15.58.50; Wed, 27 Jan 2021 15:59:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b="b7/25XWb"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343584AbhA0My6 (ORCPT + 99 others); Wed, 27 Jan 2021 07:54:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238087AbhA0Mwr (ORCPT ); Wed, 27 Jan 2021 07:52:47 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 191AFC0613D6 for ; Wed, 27 Jan 2021 04:52:07 -0800 (PST) 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; bh=mtZDQkTPXEcPqbCtS8sQg4qaWBseS8L4LfI1WUkPzDM=; b=b7/25XWblfwizAzTTb+sAOOpDs 9IWQ/fbUOGYlAjM0+xhCNrPRzPRs/DRp71RqeFo7cmJsHur2taVXlNsHKTgn+vdkC8fFnA9216YIi JuwY2P7At8AYYY0PjB7ALiohlhOq5G8Te2xFYS83boIWy7jIx6gS29/tHamvcsio7L2oiAAbocgCb KWe/3oohn5Mx+xynqKO+t/20tjZ1WJOPMvDQwzJr1GjV254KlSaMoMdx09OFG+gRmqLnePAaSWk1m 1yBf4ypReolsEi39mKPYLwYIfmQ/rNprnTDpubeCW75fdUGWbQOzXEnQ3egG6SEsHVHg5OnFrZnhO M4JUUeSQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4kIb-0002ax-Tw; Wed, 27 Jan 2021 12:51:54 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 2ABAF3010C8; Wed, 27 Jan 2021 13:51:48 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id EAEDD2C539FEC; Wed, 27 Jan 2021 13:51:47 +0100 (CET) Date: Wed, 27 Jan 2021 13:51:47 +0100 From: Peter Zijlstra To: Anshuman Khandual Cc: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org, suzuki.poulose@arm.com, mike.leach@linaro.org, lcherian@marvell.com, linux-kernel@vger.kernel.org, alexander.shishkin@linux.intel.com, mingo@redhat.com, will@kernel.org, mark.rutland@arm.com, acme@kernel.org, jolsa@redhat.com, Mathieu Poirier Subject: Re: [PATCH V3 13/14] perf: aux: Add flags for the buffer format Message-ID: References: <1611737738-1493-1-git-send-email-anshuman.khandual@arm.com> <1611737738-1493-14-git-send-email-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1611737738-1493-14-git-send-email-anshuman.khandual@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 27, 2021 at 02:25:37PM +0530, Anshuman Khandual wrote: > From: Suzuki K Poulose > > Allocate a byte for advertising the PMU specific format type > of the given AUX record. A PMU could end up providing hardware > trace data in multiple format in a single session. > > e.g, The format of hardware buffer produced by CoreSight ETM > PMU depends on the type of the "sink" device used for collection > for an event (Traditional TMC-ETR/Bs with formatting or > TRBEs without any formatting). Acked-by: Peter Ziljstra > Signed-off-by: Suzuki K Poulose > Signed-off-by: Anshuman Khandual > --- > include/uapi/linux/perf_event.h | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index b15e344..9a5ca45 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -1105,10 +1105,11 @@ enum perf_callchain_context { > /** > * PERF_RECORD_AUX::flags bits > */ > -#define PERF_AUX_FLAG_TRUNCATED 0x01 /* record was truncated to fit */ > -#define PERF_AUX_FLAG_OVERWRITE 0x02 /* snapshot from overwrite mode */ > -#define PERF_AUX_FLAG_PARTIAL 0x04 /* record contains gaps */ > -#define PERF_AUX_FLAG_COLLISION 0x08 /* sample collided with another */ > +#define PERF_AUX_FLAG_TRUNCATED 0x01 /* record was truncated to fit */ > +#define PERF_AUX_FLAG_OVERWRITE 0x02 /* snapshot from overwrite mode */ > +#define PERF_AUX_FLAG_PARTIAL 0x04 /* record contains gaps */ > +#define PERF_AUX_FLAG_COLLISION 0x08 /* sample collided with another */ > +#define PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK 0xff00 /* PMU specific trace format type */ > > #define PERF_FLAG_FD_NO_GROUP (1UL << 0) > #define PERF_FLAG_FD_OUTPUT (1UL << 1) > -- > 2.7.4 >