Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp587562pxb; Wed, 27 Jan 2021 15:59:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvRYXCIOrtQYMHpcsfylm0twZW1NiejgRJ5OyBxCsDOWiPDCUzMmbOYKCINko8L2FwnkrX X-Received: by 2002:a17:906:b082:: with SMTP id x2mr8143577ejy.100.1611791954100; Wed, 27 Jan 2021 15:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611791954; cv=none; d=google.com; s=arc-20160816; b=q1WPgXmQKy6HQRVWxKsPDCnJlhVZniEncdZU98Qon5TMWQ3V2yWB4CUXz0Y43Yd1K/ xlJYlqORzJmy5V8FuJYX55Q43cDAecJO/I3ehqXuyUR175cEy4qlBLIrXbOG3nRg3wX2 sYgZtcpvpYselZxM6yzguJcpqXuH120InD0qNwkTFlonIn4PRlJ5q7gesK8Zy19FDkQk 0HHtuLJK47woJKSisqL4VWv0Um5PoggtNifcoSDMOpdPaa6A/MHr68SmRkPF7aLAYatS 8RLczaIsPImzXZkYKRPffll/GaRaRvTjrPOp0xJQTviI68sJSzVKvJR2nNbsMHsWW2zF +d5Q== 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=glR96rtD4S81qykzjqvdJG+KBx1k80zyus3xbQPfBQA=; b=AmpdyWkeEpV5FRDujYgSUqYIKb2i+zojaN/I14FqzaL0d5VHkMqlxM2rzpm15BMZTU 3BSRWHbE7IjLDuwrWAVcVtKqH85e3JCEUIRwNXhwVb6PRsORtgCXbuo4ru2k5pcddl4V PK6Z1D/AJIuMI0FHMLSXXU1F1aedVCHhCiQyeykg+UjMh5SN+utfv49c0yTMM7ZR+ozB DXxk9aB1L5Xy+JmMW87u4wKEDSv+IPbNeZNsoYmXKf8sHwkW+j0gp880rX7BBo2rOJkK Y7N3MOiF0Y+nfkOr2QVSOHCn6oTq8cEnDnZFGlqi3tf6wVPtAAo7Qau+8kJJn36l94BW u+qg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=afNW9BfE; 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 hq36si1545018ejc.590.2021.01.27.15.58.49; Wed, 27 Jan 2021 15:59:14 -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=afNW9BfE; 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 S237925AbhA0M6J (ORCPT + 99 others); Wed, 27 Jan 2021 07:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343648AbhA0MzM (ORCPT ); Wed, 27 Jan 2021 07:55:12 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 174A0C061573 for ; Wed, 27 Jan 2021 04:54:23 -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=glR96rtD4S81qykzjqvdJG+KBx1k80zyus3xbQPfBQA=; b=afNW9BfEEPP2Sxy2fbrTdw6jSG pNTR82CFaMY63irClkWS9SBXxk+MfYwpO0inRaypPa4FFUyHRdmIbQKco0X8uwyzJDZpTWY325UnT 8MeeDskNfan1FrBwwLnkSJkwHZTPL1R2IqJhqHw40CbwiWeP66ktxDYvCmOMET4rmEHANQz4991XP WsA9apoTdA0to4h77KfPNZc6WxieSLn8K6czJV0dBFYQlmCZsJ4CPnMZrXT+GKI5UizKiK1cN8qPQ RNwO9jMW22MAtQGUmT35MMMkVQJIQLueCq2OOwW4HfoAcjdSG/8dNeicdO3VkAUpbUjJPJBRqshhw wJGZbQSQ==; 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 1l4kKw-00038y-H6; Wed, 27 Jan 2021 12:54:18 +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 3B590300455; Wed, 27 Jan 2021 13:54:17 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 256C92C539FEC; Wed, 27 Jan 2021 13:54:17 +0100 (CET) Date: Wed, 27 Jan 2021 13:54:17 +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, Leo Yan Subject: Re: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format Message-ID: References: <1611737738-1493-1-git-send-email-anshuman.khandual@arm.com> <1611737738-1493-15-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-15-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:38PM +0530, Anshuman Khandual wrote: > It is possible to have a > perf session where some events end up collecting the trace > in TMC-ETR while the others in TRBE. Thus we need a way > to identify the type of the trace for each AUX record. > diff --git a/include/uapi/linux/perf_event.h b/include/uapi/linux/perf_event.h > index 9a5ca45..169e6b3 100644 > --- a/include/uapi/linux/perf_event.h > +++ b/include/uapi/linux/perf_event.h > @@ -1111,6 +1111,10 @@ enum perf_callchain_context { > #define PERF_AUX_FLAG_COLLISION 0x08 /* sample collided with another */ > #define PERF_AUX_FLAG_PMU_FORMAT_TYPE_MASK 0xff00 /* PMU specific trace format type */ > > +/* CoreSight PMU AUX buffer formats */ > +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT 0x0000 /* Default for backward compatibility */ > +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW 0x0100 /* Raw format of the source */ Would CORESIGHT_FORMAT_ETR / CORESIGHT_FORMAT_TRBE be better names?