Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp463553rwd; Wed, 14 Jun 2023 19:32:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4tCaIeA8WduYeLExWf/5SatYsM4ZkPTjVYbcZVqkbC0ahYr2cubQuApuuSeVdjaroIV/Ss X-Received: by 2002:a17:90a:354:b0:252:7372:460c with SMTP id 20-20020a17090a035400b002527372460cmr4509334pjf.4.1686796368399; Wed, 14 Jun 2023 19:32:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686796368; cv=none; d=google.com; s=arc-20160816; b=XkKLxImDaNHYMCUcjpgQg1bME0UqKz3N1PiyMq9/zt7to3VRHvZSR5NcTO8yFT8Nfz Ip5zuGeGZWM7Pc46Uv4hWsolm1iwGm+iX3KXb3/3k3tnfkqo6YuY01pj4emW1BQ/FGEX 52bj+wLcXl2QbotF8k6gejC72Igmo5VOnQnw3N0OKvn6GV+2VuCVVg8gpecKitYR9enE WMsjpeegBq/yGjHHNzMMoyrreuJ3KtGb68FXm7buvjnv0dVoydOFgvDE/72cismuJS8s 1MHx1dLJu0dY7rAEzjUHzuD+aUlAa/0DbS7TvHf/oxigl8IB1XkYxmINQfSprYwSj37Z hblA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=1jRRNSscxJZVio6oBube66MtDHP+uIKtOGnbMkuwGf4=; b=nWTTOLZaAKufvf/5+bi/lr9aCSCBbpxyG7VFzRRcn8erkpygbnBXB/F+dy9cLgsBYU ZMUneVo0ftEUgv9uPfhBQBtkyeakkZKNNtl2KLQ4uHMusnYCQLIMQ21TfFvuPu7w+Cb7 9UwskmVB+/rTA/M5+COcgcqwVoapgvgC6w6nVjbvb1vSUi0IQKows2O5cFf1LAzq4psp 4BVZybWmZFSjVXTyJsPFJE1HKC4WLFVXfuUVqcN21h1g8b24SBLg6UKIjnC5i/upbcev XruVxdsxKV7lrezwz/VLClNhR0nnIKrgSd1zVmMcSwlOkDPzRxwoqf7iYiNQER+Wznni Iweg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a17090a1a1000b002565045f145si13623631pjk.122.2023.06.14.19.32.36; Wed, 14 Jun 2023 19:32:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241379AbjFOCSQ (ORCPT + 99 others); Wed, 14 Jun 2023 22:18:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241175AbjFOCSO (ORCPT ); Wed, 14 Jun 2023 22:18:14 -0400 Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A391FFF; Wed, 14 Jun 2023 19:18:09 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R821e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=18;SR=0;TI=SMTPD_---0Vl8S394_1686795482; Received: from 30.221.149.117(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0Vl8S394_1686795482) by smtp.aliyun-inc.com; Thu, 15 Jun 2023 10:18:04 +0800 Message-ID: <552eebae-76bb-a2fe-ccdc-11e8a01717da@linux.alibaba.com> Date: Thu, 15 Jun 2023 10:18:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 2/7] perf metric: Event "Compat" value supports matching multiple identifiers To: John Garry , Ian Rogers , Will Deacon , Shuai Xue , Robin Murphy Cc: James Clark , Mike Leach , Leo Yan , Mark Rutland , Ilkka Koskinen , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Zhuo Song References: <1685438374-33287-1-git-send-email-renyu.zj@linux.alibaba.com> <1685438374-33287-3-git-send-email-renyu.zj@linux.alibaba.com> <452e724b-2a2c-52fd-274b-60db7a7f730e@linux.alibaba.com> <76fcb062-61a8-5f90-b39d-b5fb6da35652@linux.alibaba.com> <5f38ef6c-8c50-5df9-19dd-c3c9fe590452@oracle.com> <892f57c7-8ce2-634c-26f3-4d4ab8b2f2ce@oracle.com> <079d7920-2030-2e00-a833-5ec6d450f7dc@oracle.com> From: Jing Zhang In-Reply-To: <079d7920-2030-2e00-a833-5ec6d450f7dc@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2023/6/14 上午12:36, John Garry 写道: > On 12/06/2023 19:15, John Garry wrote: >> On 08/06/2023 10:44, Jing Zhang wrote: >>>> Unit is the format of the event_source device name. We should match based on that as well as compat. I need to check the code again to understand how that is done... it has changed a good bit in 3 years. >>>> >>> This situation only happens on uncore metric. I happened to write wrong Unit, but the metric still matches. >>> >> >> I'm just double checking this now. I think any possible fix should be easy enough for current code but may be tricky for backport with lots of metric code changes. > > I also have code to re-work sys event metric support such that we don't require "compat" or "Unit" values for a metric when the metric is described in terms of event aliases. That code is 2 years old, so may take a bit of time to rebase. I'll look to do that now. > Sounds good! Thanks, Jing > Thanks, > John >