Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp664940ybg; Sun, 26 Jul 2020 17:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6eTuH0k0NEUK4KTSdwIyqbNdXapESYCXgJUQq/8OFkAqUEm+RQyKP+KbFeWkdrAnSrPhv X-Received: by 2002:a17:906:528d:: with SMTP id c13mr19004980ejm.61.1595809805215; Sun, 26 Jul 2020 17:30:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595809805; cv=none; d=google.com; s=arc-20160816; b=00IVsyCzsuwN8f0jp6JigjJz/phacQUv2zNT/d40ybYCDKUhXfYelDq8rZXpPMD7xC m22XEOkxnMG2kBcYrm/qDfjFvKLaMawfbZ6V5z0MYBYDrYFz0+yxHAAMr+Pn6svjvpO3 bDufFzPh/3BLVMhY8wlixSMKI5eBbOBjDkxaNR84kUL0fDrEonw4BWpfGNyjh1l/Vkuq zBtLDw8hH9MV6oKg2OPUafBLoPamLZY5g2hIxkRXb93cEwms//oNZDeQlp0waA0URbnt gjqfPstmWzN0QJD/Z5A/IX6GfpCisNtanD83+NoCE4SMWbYWZJKN6oQipz/QCEiI2lwF O1rw== 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:references:cc:to:from:subject:ironport-sdr:ironport-sdr; bh=pHwi+PR3Qt/iQOI4SsWzh5hDP/1HPeBrsPTt4/uC05w=; b=W5YzXSkmbUaXQ4CWZrAqtUIpA1DvBdC90BSXgCQRU69gTqSr74LI4Z00xVXc+3wX5s YXkLiEeoH78O4cxXfJyt0McaT81JUEeRaivs+T5IjVRP0tUfDB18RrAnWZlS58K7lG3E h8OTHhbLTKR+/8gzVX2aPXcVGLqiehhcg+8WMeSdphW1XrXEZkwEdaFjKcjXqEwGDnni oY4xgPIxD+kADc5/cJ+5zva1VXNmX2Nvj+ozYCJSDZWYltQrYqUbkLWtzcog+24eEVFt tjNimyN8EgsRrIjOoLjH9Lpdi2DtSbG7dMlUPv9aIZsm4IeHhbA5/UVkmGyImvOBSoYC PR/A== 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 rn4si5450625ejb.658.2020.07.26.17.29.42; Sun, 26 Jul 2020 17:30:05 -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 S1726970AbgG0A0c (ORCPT + 99 others); Sun, 26 Jul 2020 20:26:32 -0400 Received: from mga18.intel.com ([134.134.136.126]:24844 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbgG0A0b (ORCPT ); Sun, 26 Jul 2020 20:26:31 -0400 IronPort-SDR: aXNxlDRhgzZvlvETaAY0Zy/dJIer17clw70YXl/rmE3/Su0R/oxPxOauEJNzBhqe3lc9GwZ6xX EPKzjVoD6M1A== X-IronPort-AV: E=McAfee;i="6000,8403,9694"; a="138446967" X-IronPort-AV: E=Sophos;i="5.75,400,1589266800"; d="scan'208";a="138446967" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jul 2020 17:26:31 -0700 IronPort-SDR: ruCzwV8wfiVUS1iQhquK5wWU1uWCE4bxre3lUeTum1cZsdrDT6w0OrBXM/8rWVWRqvkaQNuggw 8isKvTsgDLRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,400,1589266800"; d="scan'208";a="289605446" 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:26:28 -0700 Subject: Re: [PATCHv2 2/2] perf tools: Fix term parsing for raw syntax From: "Jin, Yao" 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> <4d30edad-8df1-ac9d-c70d-9019935c4d4c@linux.intel.com> Message-ID: <003c9419-4396-6ad6-b934-ec04bf9f8a63@linux.intel.com> Date: Mon, 27 Jul 2020 08:26:27 +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: <4d30edad-8df1-ac9d-c70d-9019935c4d4c@linux.intel.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/27/2020 8:21 AM, Jin, Yao wrote: > > > 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 Also added with: Fixes: 3a6c51e4d66c ("perf parser: Add support to specify rXXX event with pmu")? Thanks Jin Yao