Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6946537pxb; Wed, 17 Feb 2021 19:08:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOVGNmtXscNeFli+/VuiX5yDNc9a+kLyfaWZmyFNfsD0FiWOUlOS6n7CNeXzT2R7tSv8Jc X-Received: by 2002:a17:906:4045:: with SMTP id y5mr1882526ejj.529.1613617680181; Wed, 17 Feb 2021 19:08:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613617680; cv=none; d=google.com; s=arc-20160816; b=OGr8buVsaN4RzvkXfD8r5f6Thd7YI+R7H6yeydI44p9mn3fQkpFcCID8t1VLiH2s40 rNgRl7N4rFeHi5lfu+DSZjG1+iXIDzD9OvBxU289+qNqQ6TUzW6eu0eNn3Apf54rj+II VQ9YurWTFS9aeltcwPWFfsYDMr/2mgXnK0fAC8mRIWOvwODQgJ+afFqfIY5M8PhOsHus B9Fy2rqX3tw2L9KHAxRPfGMafAAoyWjoQUxTUx2trxHgOd++eiqxIYOcH1H5Dy2T+Meh TVrueo/DfwFl+dQOZDMCT3WCaKoaBSbEjqPoMYpTjB6SmAtN0sstKBbFWnDJ0vLxS8gj iMqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=FnAuAFYYM4SCa9L2kgnqKOKDEmaUYlJzrIPmnh38R7Y=; b=rf5xa32fryHfMc5iYIeTdHM9WO467a0qnnC4C5m7bzy73NjWCgocCfRya/N405anQ1 LARum19g7Lr/9Wv1QeUMI4/kCxryigcbujXQ2tKGz0iVwdxKNLMJ8szJgrlJxqYXq50Z G9erEyb66BmvAcQ5UEFu1s/74OKZcQe4NIsToigPZtX71X4GEgx6cGTIiEvKi5zB6hd7 aQsoz8ESP2WXjphMyDQbMEKvrKMJ4JK4nWHYzD0X1XQh5ZZbcd4hO/VQRaoFMOgnFYEL XmtEHDmBkw0SIwyANeulWo7ancc+V3hREAMP/khTqWncDtPLHG6n5pJR61g8u6rpKxj0 IGQg== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y12si2704542ejr.489.2021.02.17.19.07.12; Wed, 17 Feb 2021 19:08:00 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbhBRDGq (ORCPT + 99 others); Wed, 17 Feb 2021 22:06:46 -0500 Received: from foss.arm.com ([217.140.110.172]:43262 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbhBRDGq (ORCPT ); Wed, 17 Feb 2021 22:06:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0BE6D1FB; Wed, 17 Feb 2021 19:05:58 -0800 (PST) Received: from [192.168.0.130] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 881ED3F694; Wed, 17 Feb 2021 19:05:55 -0800 (PST) Subject: Re: [PATCH V3 14/14] coresight: etm-perf: Add support for trace buffer format To: Al Grant , Peter Zijlstra Cc: "coresight@lists.linaro.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "lcherian@marvell.com" , "mike.leach@linaro.org" References: <1611737738-1493-1-git-send-email-anshuman.khandual@arm.com> <1611737738-1493-15-git-send-email-anshuman.khandual@arm.com> From: Anshuman Khandual Message-ID: Date: Thu, 18 Feb 2021 08:35:54 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/27/21 6:30 PM, Al Grant wrote: >>> +/* CoreSight PMU AUX buffer formats */ >>> +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT0x0000 /* >> Default for backward compatibility */ >>> +#define PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW0x0100 /* >> Raw format of the source */ >> >> Would CORESIGHT_FORMAT_ETR / CORESIGHT_FORMAT_TRBE be better >> names? > > Unformatted (raw) streams could be used any time you had a writer dedicated > to a single trace source. So in a situation where you had one ETR per CPU, > it would be appropriate to use an unformatted stream. A TRBE is always > dedicated to a single CPU, but potentially you (i.e. when designing the system) > can do this with any type of trace sink. So the raw/formatted distinction is > really about whether you are combining multiple streams in one buffer or not, > rather than the type of block that is writing into the buffer. > > Al > Okay, will stick with the proposed format names here i.e PERF_AUX_FLAG_CORESIGHT_FORMAT_CORESIGHT PERF_AUX_FLAG_CORESIGHT_FORMAT_RAW