Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2174033imu; Wed, 12 Dec 2018 10:44:39 -0800 (PST) X-Google-Smtp-Source: AFSGD/V4duxEggO4aYGzd48F4bGnZ1Tr03CEv27LuJzjj1qANEKRrW5VB5WhRxmr4If/7x4C1P0b X-Received: by 2002:a63:2643:: with SMTP id m64mr18846867pgm.35.1544640279322; Wed, 12 Dec 2018 10:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544640279; cv=none; d=google.com; s=arc-20160816; b=WXh1iaqrFe7szmhfXt06rTJdHe2Npr7JWPxtfu8q63uqEXtv3uLqmxFctYI+cuw+yD 93w/A6u/wdDMI8UpyPOaT+OU32tydMKW8XSUc17AfHEMhOIiXks7aChsimAX9bnxZPpu rV/C65PrFqGdjibNXZvoMKjHR+2VNQD2JrI8w2ni9DJsWqZZQmkYKbITeGMb8mF2JLxy p3i76hmGUTkdTEUSSCm1/8X+2r+/mmfODAJ8NPFaw71KiYZf8XL10vLBMFpmDEdGBFAV xWYO5S2MI0rURGltEALRmfYTMSmJjZh/Iu/CL7nWpBgH3RVgAfgEaEa7k5kS0H6vT4xD Z9Sg== 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; bh=efV+QfoYMImiv+O28VK5AtKXQCgSf0+gFBOPIfYpmfc=; b=MGBVDzVqwZoN4PMrsataCyOaisfBsOHjx1M60qFb0rRiJWclAEyWMIXajdoQWV3V4a wNA+f+Q6SiRROlEwNHLpYTME/bXPnpmvnNnwynwEUbEpgR4Fb6eDadH4uYiAAbDW/633 bOZ0ucjavs1zkQs6ghSf5VW9jWX9Yuy38Tk77HS3FGDpeydfnKzjv2QJQipYzLmF2GhS lXmnSNpl5NnPJFUSTCwBWA56lwV5HVpeMI2yCMYA1/l5eUn1dsvvGP1dyS7SwMwGDP+v 2y+3PDTw/r+c5O02UfPDUba1HpzZN/f37bz2TOzw06h4yI5gihm+88ImdyE/YfWgd2Mq XFGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UppuU56p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si16012445pfn.212.2018.12.12.10.44.24; Wed, 12 Dec 2018 10:44:39 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=UppuU56p; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728259AbeLLSlq (ORCPT + 99 others); Wed, 12 Dec 2018 13:41:46 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35345 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727897AbeLLSlp (ORCPT ); Wed, 12 Dec 2018 13:41:45 -0500 Received: by mail-pg1-f195.google.com with SMTP id s198so8735534pgs.2 for ; Wed, 12 Dec 2018 10:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=efV+QfoYMImiv+O28VK5AtKXQCgSf0+gFBOPIfYpmfc=; b=UppuU56prMVuXoaYyGWrtmaIomyrJ9Rvwa1lOcUAiJ2emzlFxhOIcTod2wLW9ZdpoX YeTMVDPPLWtJoeF/IqU5941+YOkDA43wk4FwOe+zYkrxhLxhVsDRPA7cXV+Vf70Vn+qV Koy7chXleyoNG0h0iSB515sO6rsBaZ5tVmCMg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=efV+QfoYMImiv+O28VK5AtKXQCgSf0+gFBOPIfYpmfc=; b=ptyvPgtuaLHz7HkuMTCHILSFBjBsZiWwj2H8T6s9qh1QbqTKfh9pvxtBOxPHQ76WGU mK607MLPUppXD94pWpuNsI5hZnK4X/276Dr9iykM6qLf++prpZU6xEAozvsULsOSfD29 +m1Vjdq254VCe9VenqqAx+SHMQoQghWt/mZNh9ACp0pacFseyNAazTdSCRmqaRE58uKZ 1hOqKEeAyUkSZPtDmMXKWHM4Zta3OnqmRfnadu1+SAAHXWl2CaPdM4C//WdOLku35nDq yW9kDtvI0HJvIvGwtJf4hEvEGb6SLwKILOpT14ntnXdG9nqN++emjFH9j9Eee8IeL2Lk jkWA== X-Gm-Message-State: AA+aEWZtpDj/GA7sASIA0Vsr5m07voCEAEYmwLBiz+U+/GkW/iN3mOW0 NIsKn/w+e2KoaxLQumLv+6L44g== X-Received: by 2002:a63:8e43:: with SMTP id k64mr19034125pge.346.1544640104757; Wed, 12 Dec 2018 10:41:44 -0800 (PST) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id y71sm43270324pfi.123.2018.12.12.10.41.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Dec 2018 10:41:44 -0800 (PST) Date: Wed, 12 Dec 2018 11:41:42 -0700 From: Mathieu Poirier To: Leo Yan Cc: Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Coresight ML , Mike Leach , Robert Walker Subject: Re: [PATCH v3 4/8] perf cs-etm: Refactor enumeration cs_etm_sample_type Message-ID: <20181212184142.GB24556@xps15> References: <1544513908-16805-1-git-send-email-leo.yan@linaro.org> <1544513908-16805-5-git-send-email-leo.yan@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1544513908-16805-5-git-send-email-leo.yan@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 11, 2018 at 03:38:24PM +0800, Leo Yan wrote: > The values in enumeration cs_etm_sample_type are defined with setting > bit N for each packet type, this is not suggested in the usual case. > > This patch refactor cs_etm_sample_type by converting from bit shifting > values to continuous numbers. > > Signed-off-by: Leo Yan > Cc: Mathieu Poirier > Cc: Mike Leach > Cc: Robert Walker > --- > tools/perf/util/cs-etm-decoder/cs-etm-decoder.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h > index b295dd2..3819a04 100644 > --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h > +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.h > @@ -23,9 +23,9 @@ struct cs_etm_buffer { > }; > > enum cs_etm_sample_type { > - CS_ETM_EMPTY = 0, > - CS_ETM_RANGE = 1 << 0, > - CS_ETM_TRACE_ON = 1 << 1, > + CS_ETM_EMPTY, > + CS_ETM_RANGE, > + CS_ETM_TRACE_ON, > }; Reviewed-by: Mathieu Poirier > > enum cs_etm_isa { > -- > 2.7.4 >