Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5438872rwb; Tue, 1 Aug 2023 02:32:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGjZm1dnGhv+HDMeSHyBz7x1XyHqSnN/CFIu3kUGH0W+PNoe7GC77wScQlzVq0kDNkODSVO X-Received: by 2002:a17:902:e84f:b0:1bb:3d05:764 with SMTP id t15-20020a170902e84f00b001bb3d050764mr16195781plg.32.1690882353656; Tue, 01 Aug 2023 02:32:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690882353; cv=none; d=google.com; s=arc-20160816; b=1LxhlIi8bCKNbfPDhzubtbfjZLdeQlUpt+PQceEXMIPssX9e4/a/s5vuY9NzZaITlq 6JBr2hJfrJim2fS8T/7Bwrc22MDhivs8ey+ghe73kjWjgyo5JJRmHvH+VKlBJZi6MtOd ousG8a02oaA6VCBOcrbGWl2poeJEd2tVb658Pb3ZnOyc6EF8QDcdyMDNlamsq3W7SbrJ ZggmLmP6AG/9LMJxiNsFVCQ5jPSTUoIDTkmFOx2e7rm2yO2pKvybjFnToOrlmND5MEeL cNcsF8E7y8VEhv6hAdeBXhJ0Tod1ckIZd9pHtdKQSMOIxIlU8lqo9r9HaCw6IcAW1vAY iyuA== 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=0fbat8gCiklH9s+rkSkY/rNlPFSqpeibhoO+YAyuRCY=; fh=4NGdb+gyy4gp10TiLQwuDGbqihUQdzzgAZYH8OdpfvE=; b=vA0eJtfVk3dgOY3O+mOslZWm58QqSd3Or9bRnlXMM2IYlyAAx779OUAtgJ36MYXChv mlTPWXZRE3HhEstN9HyefnGAZCtMm7CLiIsuIejwdTfYcRuiR+eA1rvY98qN+ltz0Xl7 EgY9409cRTeixFsxPnLswnTKhnanpSqPwDGWri7yyq++qA12sO0raCVqX9owlI0TxAqU BrsShsRaH63ZZT06HX9poe/LJ/7ccFu7D0dbwlNgUzTqAX+boJagDvL0VE6ySoFIqEli 72LxaPcuiPCn9GqXZYmz2pqLWFLBhksPAnUpfrOCJDtS+avi8AWyM7PUhA4hbY73f6Ed Etpw== 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 k3-20020a170902ba8300b001b83fd5130asi4347733pls.24.2023.08.01.02.32.21; Tue, 01 Aug 2023 02:32:33 -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 S232144AbjHAJWG (ORCPT + 99 others); Tue, 1 Aug 2023 05:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231731AbjHAJVs (ORCPT ); Tue, 1 Aug 2023 05:21:48 -0400 Received: from out30-98.freemail.mail.aliyun.com (out30-98.freemail.mail.aliyun.com [115.124.30.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1810330E6; Tue, 1 Aug 2023 02:20:28 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R391e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=renyu.zj@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0VoqCIxF_1690881552; Received: from 30.221.149.238(mailfrom:renyu.zj@linux.alibaba.com fp:SMTPD_---0VoqCIxF_1690881552) by smtp.aliyun-inc.com; Tue, 01 Aug 2023 17:19:14 +0800 Message-ID: Date: Tue, 1 Aug 2023 17:19:09 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2 Subject: Re: [PATCH v5 3/5] perf test: Add pmu-event test for "Compat" and new event_field. To: John Garry , Ian Rogers Cc: Will Deacon , Mark Rutland , Robin Murphy , Ilkka Koskinen , Namhyung Kim , Arnaldo Carvalho de Melo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, linux-doc@vger.kernel.org, Zhuo Song , Shuai Xue References: <1690525040-77423-1-git-send-email-renyu.zj@linux.alibaba.com> <1690525040-77423-4-git-send-email-renyu.zj@linux.alibaba.com> <2dc21269-2fa0-ea39-454d-5f12a414bc13@linux.alibaba.com> From: Jing Zhang In-Reply-To: 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/7/31 下午9:12, John Garry 写道: > On 31/07/2023 13:30, Jing Zhang wrote: >>>> +        .pmu = { >>>> +            .name = (char *)"uncore_arm_cmn_0", >>>> +            .is_uncore = 1, >>>> +            .id = (char *)"43602", >>>> +        }, >>>> +        .aliases = { >>>> +            &sys_cmn_pmu_hnf_cache_miss, >>>> +        }, >>>> +    }, >>>> +    { >>>> +        .pmu = { >>>> +            .name = (char *)"uncore_arm_cmn_1", >>> Shouldn't this match some perf_pmu_test_event entry with same matching_pmu member? But is perf_pmu_test_event.matching_pmu member ever used for any checking??? >>> >> I need to double check because I was testing against 6.3-rc2. > > That 6.3-rc2, was for the the kernel? Or baseline for this series? See see maintainers for git/branch to base perf tool dev on. > I have now developed based on the latest perf tool, but I'm still confused. "matching_pmu" does not seem to have any effect. No matter what value matching_pmu is, it will not affect the final test result. Thank, Jing