Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp200038img; Thu, 21 Mar 2019 17:48:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzvO8poCxlf6CoGruJQVKptWLWufPd0oR9g7tjnRZTUa2M8RvFCWggPo+c7sWjDvUBsREPp X-Received: by 2002:a62:6ec3:: with SMTP id j186mr6466369pfc.89.1553215702293; Thu, 21 Mar 2019 17:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553215702; cv=none; d=google.com; s=arc-20160816; b=VXOHKNSRhO+WqRd+xtuf0m3/arC30hSGc9RoJGt+Q5wnoxqQF1WFexLTO7wZqEAJ64 udZ7INsaQwSnrUCVVpfdeVgTyUWdEIacnQIZazbck37cSL3ow/ieJn/6eYazudMHXlGy W7xmjZuw+iQqwiuRkLYifqmuFs302G7zza5ZyETRIYZJLp96RU/dcT5fCM4Ht4akguqk rU/FXUzS9KUPexveDB42Cmn2n2P/Eg48zi0aIyrRxBNYgOG/27kPTlQUAQt2X+pmOhKO KYGt21u/pQx4NBW4+iV9GEAop+HGwoTXQye9kaNOF/pX5pJd6Jc9fdVjXfF3FcqcAvyd E5Qg== 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 :feedback-id:references:in-reply-to:message-id:subject:reply-to:cc :from:to:dkim-signature:date; bh=nNc5BXbALX2X3ahd5QVFtocusnaDYL2UCqPijSNfNrM=; b=V+Ut92h5MyEh1RL9a+tYH3Xkodb09RDWbI1EyYKbxCfXIlWGE5/nrlUL1CbC7FPKiy R5Stxvr0Rp0wbJ+ioIYKlH7G8oim1waW1XNuaA+0qd0qbHSkdk4+EgHRXy4boblzArTB 6upXjKedqLHm6mjnmwMAbfGms2rJV7zO7jOIP4RXbsdWAecVChNsJAVOBSJqxmFbTBmj qKdfGWUqU7UufMR7VwXiMh7l87NYvy8yyGcplhXLGDyMK3DGFtMwfO0X/A7+1TG3FQzL dxyBCF5CyUAatpLnCFOOScnh3EwsF7mxhYrYfMSovy5T6oqx/C4wYMHS9OaRTr1QO48S lYYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.ch header.s=default header.b=qE+PJRVu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d22si5684281plr.37.2019.03.21.17.48.04; Thu, 21 Mar 2019 17:48:22 -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=@protonmail.ch header.s=default header.b=qE+PJRVu; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727399AbfCVArX (ORCPT + 99 others); Thu, 21 Mar 2019 20:47:23 -0400 Received: from mail4.protonmail.ch ([185.70.40.27]:45501 "EHLO mail4.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbfCVArW (ORCPT ); Thu, 21 Mar 2019 20:47:22 -0400 Date: Fri, 22 Mar 2019 00:47:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.ch; s=default; t=1553215638; bh=nNc5BXbALX2X3ahd5QVFtocusnaDYL2UCqPijSNfNrM=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References: Feedback-ID:From; b=qE+PJRVusBMhItlWSIaP++q9ZDK4Dr8omTQ2CeUnQTAToURDvySwDE4fbipwYStD1 5wCXyDQRsJWPyOrM/D9MK5DskxIqXGJ+e0jXSPhD66jzzfQ/QiZsU3CJ+S5n9ec0Rl caD8LoAy0vhAk8WwntMApBXTOTunZceLY0Shob5Y= To: Mathieu Poirier From: Solomon Tan Cc: "peterz@infradead.org" , "mingo@redhat.com" , "acme@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , "suzuki.poulose@arm.com" , "alexander.shishkin@linux.intel.com" , "jolsa@redhat.com" , "namhyung@kernel.org" , "robert.walker@arm.com" , "acme@redhat.com" Reply-To: Solomon Tan Subject: Re: [PATCH v4] perf tools: Add missing case value Message-ID: In-Reply-To: <20190321162702.GA24451@xps15> References: <20190321162702.GA24451@xps15> Feedback-ID: idpJ9Qep05LI5f2mQoaoGmmCIit-QceKL6uqbHgV_NOtNjcF0QNi56ai_biFv0uPMue2gAtmoKKy4wfiVgSKGg==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FREEMAIL_REPLYTO autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, March 22, 2019 12:27 AM, Mathieu Poirier wrote: > On Thu, Mar 21, 2019 at 01:29:11AM +0000, Solomon Tan wrote: > > > The following error was thrown when compiling `tools/perf` using OpenCS= D > > 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 > > =E2=80=98cs_etm_decoder__buffer_range=E2=80=99: > > util/cs-etm-decoder/cs-etm-decoder.c:370:2: error: enumeration valu= e =E2=80=98OCSD_INSTR_WFI_WFE=E2=80=99 not handled in switch [-Werror=3Dswi= tch-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 minimu= m > > required OpenCSD library version for this patch is no longer v0.10.0. > > > > Signed-off-by: Solomon Tan solomonbstoner@protonmail.ch > > > > -------------------------------------------------------- > > > > 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/featur= e/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 fea= tures > > */ > > -#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 >=3D 0.10.0 is required" > > +#error "OpenCSD >=3D 0.11.0 is required" > > #endif > > > > > > int main(void) > > diff --git a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c b/tools/pe= rf/util/cs-etm-decoder/cs-etm-decoder.c > > index ba4c623cd8de..39fe21e1cf93 100644 > > --- a/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c > > +++ b/tools/perf/util/cs-etm-decoder/cs-etm-decoder.c > > @@ -387,6 +387,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 =3D false; > > > > > > > > -- > > 2.19.1 > > On my side this patch is no different from V3, i.e it doesn't pass checkp= atch > and it doesn't apply on my next tree. > > Mathieu > > > > > pub RSA 2048/C88289A6 2018-05-09solomonbstoner@protonmail.ch solomonbston= er@protonmail.ch > > > sub RSA 2048/7C5E8D6D 2018-05-09 I created a new branch from `next` for the patch mentioned above. Should I have made the patch directly on the `next` branch instead? I ran the following 2 commands to test the files I edited: ``` perl scripts/checkpatch.pl -f tools/build/feature/test-libopencsd.c perl scripts/checkpatch.pl -f tools/perf/util/cs-etm-decoder/cs-etm-decoder= .c ``` The commands reported that the files "has no obvious style problems and is = ready for submission." For your kind advice please. Thank you. Solomon Tan