Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp79340imu; Thu, 20 Dec 2018 17:21:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN4UnDHjWkmgC04QBDkg6oTdtWNWG0U7eY7p3fLO5yLKeDsIbN0TiU9LpzYjVR7jBsjW8tVe X-Received: by 2002:a17:902:8a91:: with SMTP id p17mr494190plo.316.1545355298281; Thu, 20 Dec 2018 17:21:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545355298; cv=none; d=google.com; s=arc-20160816; b=bca2qsT+iEUKDfFXsmwrpKf3Ze/1NvH0lM+QVNsgVw7wE3CAOvycwlCYUclwRLvSOj oxNc0yZ9Odrp77nRYDLYoPCkhCJ6Az9eQ/HlcC/i8IT3ZYGUVvgVTe48iO2QW4SwA2ZD 4piNoXeGzh6Mft9abF0//6+1uw5sX4zpLZ2R/XIVXAL7T5UhV+YVmaLCz3nJ7FRi225/ XdySFlyxl9D//eJN7wNXBQDAxNmWnPBE+UpGqqoMyhCPrNmbXBBct9kyNikX6kZSY7an WS8oXASJ8u10RR3mz0bLfW74Q3CM71MdJySh0P6xXx8mOwHZsjGklQzDrep0E11chmTF TYVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=bX7YvbMuX+n9Q06zD38ajmkvd5HdOV5sA3tZINYOpjs=; b=mSeNmPlKV7Kp7Jg1gty0e42vU5Eo3tLh/cRGmm0Folun5I0mFCbmzD6uWhBDDFny+z PPNnnlf28m4I0G2ClvnMBt2D2oySKvQOQEyd58oE+mPqYj8Y7Mj7QrqgcjWAl7YNzoFN aT5bFZDqeTd/r3zEuSCqYb/ctwbQmAQEmTyE1RGtn0dIFYzchCqL/5+4cKxGTjZH8Cfz 5MI/eMj6X6A/c/E3kPYQtVsnLXs9YUUWh334vBt8U+lKh553DwLFJ70vrPSFYAoOW+Ai VhOrf6OCZPQCzz+dVU9vQsbgP7sKJfdfFIQ99wJDM6Q77uLOqnBErxwO58ZGqnEKJg+K j/9Q== ARC-Authentication-Results: i=1; mx.google.com; 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 f9si18926499pgc.85.2018.12.20.17.21.22; Thu, 20 Dec 2018 17:21:38 -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; 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 S2387556AbeLTSOO (ORCPT + 99 others); Thu, 20 Dec 2018 13:14:14 -0500 Received: from terminus.zytor.com ([198.137.202.136]:38863 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732677AbeLTSOM (ORCPT ); Thu, 20 Dec 2018 13:14:12 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id wBKIE3OA3682535 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 20 Dec 2018 10:14:03 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id wBKIE2kH3682532; Thu, 20 Dec 2018 10:14:02 -0800 Date: Thu, 20 Dec 2018 10:14:02 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Leo Yan Message-ID: Cc: hpa@zytor.com, robert.walker@arm.com, tglx@linutronix.de, leo.yan@linaro.org, acme@redhat.com, jolsa@redhat.com, linux-kernel@vger.kernel.org, namhyung@kernel.org, mike.leach@linaro.org, mathieu.poirier@linaro.org, alexander.shishkin@linux.intel.com, mingo@kernel.org Reply-To: mingo@kernel.org, alexander.shishkin@linux.intel.com, mathieu.poirier@linaro.org, mike.leach@linaro.org, linux-kernel@vger.kernel.org, namhyung@kernel.org, acme@redhat.com, jolsa@redhat.com, leo.yan@linaro.org, tglx@linutronix.de, robert.walker@arm.com, hpa@zytor.com In-Reply-To: <1544513908-16805-5-git-send-email-leo.yan@linaro.org> References: <1544513908-16805-5-git-send-email-leo.yan@linaro.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf cs-etm: Refactor enumeration cs_etm_sample_type Git-Commit-ID: cfc1d4276b0453a752d8b31daf34f7f2dbd55e82 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: cfc1d4276b0453a752d8b31daf34f7f2dbd55e82 Gitweb: https://git.kernel.org/tip/cfc1d4276b0453a752d8b31daf34f7f2dbd55e82 Author: Leo Yan AuthorDate: Tue, 11 Dec 2018 15:38:24 +0800 Committer: Arnaldo Carvalho de Melo CommitDate: Tue, 18 Dec 2018 12:23:59 -0300 perf cs-etm: Refactor enumeration cs_etm_sample_type 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 Reviewed-by: Mathieu Poirier Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mike Leach Cc: Namhyung Kim Cc: Robert Walker Cc: coresight@lists.linaro.org Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1544513908-16805-5-git-send-email-leo.yan@linaro.org Signed-off-by: Arnaldo Carvalho de Melo --- 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 b295dd2b8292..3819a04a2c27 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, }; enum cs_etm_isa {