Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp661984ybg; Sun, 26 Jul 2020 17:22:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyd6mfRA6bLR80YbyupfLft6h/89GIorUmeVwLlzjQtEraGyNAEieJdc5qBDu8hAKrXJw67 X-Received: by 2002:aa7:ca05:: with SMTP id y5mr19425315eds.204.1595809367671; Sun, 26 Jul 2020 17:22:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595809367; cv=none; d=google.com; s=arc-20160816; b=L2LDqHOMCQRmjP/hahBff6gUzuIO77G2ntawi2Mg393uimXeaR9vVMT7mU0sbhD1EN xAybn9xtym4xEaGpoYkajU3poireKUWJ2mIxb1DuRc9cTlnFXd5XxtCUlmAi/cc3BkSi /tZVh0nF9kJLVB0HjTgZw4377AGYH4nRds7TQQenREMZNuxdc2Mp8ia3SCY90v9NepZ0 i72uYBqJd55c3WcCwg3BFtwHHacCwvrmmPhEEPQkJvzII311iwpLSAXgJcURkhXJzcQY 0MjgYuCFIgePERcl7AYE5ZogfiRbdYqHPzznz1anaEI/byvhqOuTDRfVnwSlK74reWYa ApIg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:ironport-sdr:ironport-sdr; bh=G3J+7kxzUYFPVFIVtNKtyq3EAF0FPo183efJwIBSQB4=; b=Unv/vk47aFU/qHRKJ9/MLj0fBK5iPmxqOQpmto+sMrzFBl3c14SxBv/AkMI3VKZPyf 9/XYmWOCbrGCq954OAO7sdL45m/gqfgYpgRdXovE37cH4GjklzLXksQ97gOfwNnBEMFy GzpHKJ3KLbBFkTbj3ntN6sStREnQYFprqGUUUABctVOMjCllN3urKmZYptvluVtRov6q pdznUoKEdeOJwEBpPKOCpUWWpHlUxrsDcEuuHGo6JscSnRwc6ZU9cxYSV8rzgwjEdzkv Mn3k3l7hzBHuulUnE3NWT96XF8MZ5fS3+BrLUOPizmxkqtkMUXFmxxPdGvOrLpITXuGV uQpw== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gj5si4543308ejb.49.2020.07.26.17.22.23; Sun, 26 Jul 2020 17:22:47 -0700 (PDT) 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726838AbgG0AVL (ORCPT + 99 others); Sun, 26 Jul 2020 20:21:11 -0400 Received: from mga11.intel.com ([192.55.52.93]:41876 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726794AbgG0AVL (ORCPT ); Sun, 26 Jul 2020 20:21:11 -0400 IronPort-SDR: gdvx697LRTixCQfw5+BmsmOP4JPMr9eajblfBZTQIFog1Y3LsANrRKHA2gM8JreZwDqG0Y2gf3 0qYk90VQ1JgQ== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="148820901" X-IronPort-AV: E=Sophos;i="5.75,400,1589266800"; d="scan'208";a="148820901" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2020 17:21:11 -0700 IronPort-SDR: teEmCHR/KY6LEhsCQ2Nrez5TJ12A2JoFW2dxeD7T4im4pAk2MBcczOVnspK2eQuTG7/hVIZqFf xIrNL0c1V30w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,400,1589266800"; d="scan'208";a="289604882" Received: from yjin15-mobl1.ccr.corp.intel.com (HELO [10.238.5.239]) ([10.238.5.239]) by orsmga006.jf.intel.com with ESMTP; 26 Jul 2020 17:21:08 -0700 Subject: Re: [PATCHv2 2/2] perf tools: Fix term parsing for raw syntax To: Jiri Olsa , Arnaldo Carvalho de Melo Cc: lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Ian Rogers , Stephane Eranian , Andi Kleen , Thomas Richter References: <20200726075244.1191481-1-jolsa@kernel.org> <20200726075244.1191481-2-jolsa@kernel.org> From: "Jin, Yao" Message-ID: <4d30edad-8df1-ac9d-c70d-9019935c4d4c@linux.intel.com> Date: Mon, 27 Jul 2020 08:21:07 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200726075244.1191481-2-jolsa@kernel.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/26/2020 3:52 PM, Jiri Olsa wrote: > Jin Yao reported issue with possible conflict between raw > events and term values in pmu event syntax. > > Currently following syntax is resolved as raw event with > 0xead value: > uncore_imc_free_running/read/ > > instead of using 'read' term from uncore_imc_free_running pmu, > because 'read' is correct raw event syntax with 0xead value. > > To solve this issue we do following: > - check existing terms during rXXXX syntax processing > and make them priority in case of conflict > - allow pmu/r0x1234/ syntax to be able to specify conflicting > raw event (implemented in previous patch) > > Also adding automated tests for this and perf_pmu__parse_cleanup > call to parse_events_terms, so the test gets properly cleaned up. > > Reported-by: Jin Yao > Signed-off-by: Jiri Olsa > --- > v2 changes: > - added comment to perf_pmu__test_parse_init Acked-by: Jin Yao Thanks Jin Yao