Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2840771yba; Mon, 22 Apr 2019 14:03:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqwA790j5EtfC5LeW5zzOx1lUm6dDZssgz+mU7UdMXTIvYaaNCB1RRzisTPtjQaut909cMpf X-Received: by 2002:a63:2208:: with SMTP id i8mr20160158pgi.223.1555967038953; Mon, 22 Apr 2019 14:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555967038; cv=none; d=google.com; s=arc-20160816; b=OylAuY6bVf9zna2UlPUSDmbbEW3kbiKub8NpdDNxmPmys3ceBUGoM/alFBusPzTUDg MRIWZFm0sdmZPzw8uf962HTOAa/3CmvKMcp5w6fKngPhw5JaLC3+OplkOlSjFbqCZqJk hxM8NenlGtxMriECJ1PUROfcywf4anE/4faRzPRLH5r7DQdo9FQjI+82TFs12BiVmJQd 1tXv3P6nhz70GMYGmFU7Q2TlMommSJlp7TyBKZeF30CXoU4aZzQcdVO+u62aud+fpip5 eCT8IbYllBOh87YVoIzAT64LNRLUIeWM+6aJ+mQr2QQqZfF5Sj6MY5HwHVPIbeSupJvw 11WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wWjC7Hwf9uf+5O+uQwfkhdY8Cc/n5DrNwY4HjrNw4Dw=; b=0SsEjvQ8hIe1Rq7G7O0AxNh1BTMArMDdSi0vXVn8nXXBrN2LQIf0SCghsZN5HpdEra RRguBHTjhN6KMIK5X8ELCuEqlSdBnJwn3Mp4zxn6JmLZGUsobgVvEQAxbWNUWGZw5PPS Exxv0o6i5x+W0/7uJcymhk7Xie9+pQXpPB6bsNMp0ByhSM/CMawqWiYnO95rvUZbWrn3 HJ1o9VkwjSppP4Cm1yFcap4mk5F6ZsYxjDxCUmgZwcg+54b0qUOld7hJj4VzYP0kMLT/ kBhbTuGRokCIfT+zvBw9T/Bnb8sUh36RncFI/4lQR8jvn6OGJr9sh7lMtsvy6k1IWeql aKLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="UrQp/HJX"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si13802484plo.13.2019.04.22.14.03.43; Mon, 22 Apr 2019 14:03:58 -0700 (PDT) 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=@kernel.org header.s=default header.b="UrQp/HJX"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729651AbfDVTpE (ORCPT + 99 others); Mon, 22 Apr 2019 15:45:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:46418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729604AbfDVTpC (ORCPT ); Mon, 22 Apr 2019 15:45:02 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7ED51218B0; Mon, 22 Apr 2019 19:44:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1555962300; bh=vVszk48zb7rcNd8exr3HZ1ozvbVDgkQiQF6O+xzrBTA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrQp/HJXBz6cbTZ83EM/ZfQFhEtKCHRSUOtho2AI3zP9oA2sDkBBHjO+PcsM9k3pK 6yYwE5dgAOiUvR6TAsGozlz4mSK5U337cPdfdSVNsglNeWxTvDANKGaNxT07HCPbw5 eBsOYcNk0VzeEqB7YJ+R3jlx1g5byMFF/PxDZRyY= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Solomon Tan , Alexander Shishkin , Jiri Olsa , Mathieu Poirier , Namhyung Kim , Peter Zijlstra , Robert Walker , Suzuki K Poulouse , linux-arm-kernel@lists.infradead.org, Arnaldo Carvalho de Melo , Sasha Levin Subject: [PATCH AUTOSEL 5.0 91/98] perf cs-etm: Add missing case value Date: Mon, 22 Apr 2019 15:41:58 -0400 Message-Id: <20190422194205.10404-91-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190422194205.10404-1-sashal@kernel.org> References: <20190422194205.10404-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Solomon Tan [ Upstream commit c8fa7a807f3c5f946bd92076fbaf7826edb650dc ] The following error was thrown when compiling `tools/perf` using OpenCSD v0.11.1. This patch fixes said error. CC util/intel-pt-decoder/intel-pt-log.o CC util/cs-etm-decoder/cs-etm-decoder.o util/cs-etm-decoder/cs-etm-decoder.c: In function ‘cs_etm_decoder__buffer_range’: util/cs-etm-decoder/cs-etm-decoder.c:370:2: error: enumeration value ‘OCSD_INSTR_WFI_WFE’ not handled in switch [-Werror=switch-enum] switch (elem->last_i_type) { ^~~~~~ CC util/intel-pt-decoder/intel-pt-decoder.o cc1: all warnings being treated as errors Because `OCSD_INSTR_WFI_WFE` case was added only in v0.11.0, the minimum required OpenCSD library version for this patch is no longer v0.10.0. Signed-off-by: Solomon Tan Cc: Alexander Shishkin Cc: Jiri Olsa Cc: Mathieu Poirier Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Robert Walker Cc: Suzuki K Poulouse Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/20190322052255.GA4809@w-OptiPlex-7050 Signed-off-by: Arnaldo Carvalho de Melo Signed-off-by: Sasha Levin (Microsoft) --- tools/build/feature/test-libopencsd.c | 4 ++-- tools/perf/util/cs-etm-decoder/cs-etm-decoder.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/build/feature/test-libopencsd.c b/tools/build/feature/test-libopencsd.c index d68eb4fb40cc..2b0e02c38870 100644 --- a/tools/build/feature/test-libopencsd.c +++ b/tools/build/feature/test-libopencsd.c @@ -4,9 +4,9 @@ /* * Check OpenCSD library version is sufficient to provide required features */ -#define OCSD_MIN_VER ((0 << 16) | (10 << 8) | (0)) +#define OCSD_MIN_VER ((0 << 16) | (11 << 8) | (0)) #if !defined(OCSD_VER_NUM) || (OCSD_VER_NUM < OCSD_MIN_VER) -#error "OpenCSD >= 0.10.0 is required" +#error "OpenCSD >= 0.11.0 is required" #endif int main(void) diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c index 8c155575c6c5..2a8bf6b45a30 100644 --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c @@ -374,6 +374,7 @@ cs_etm_decoder__buffer_range(struct cs_etm_decoder *decoder, break; case OCSD_INSTR_ISB: case OCSD_INSTR_DSB_DMB: + case OCSD_INSTR_WFI_WFE: case OCSD_INSTR_OTHER: default: packet->last_instr_taken_branch = false; -- 2.19.1