Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2228830rdb; Thu, 21 Sep 2023 12:09:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHB1QHNYJZMcdQ84WuHU9ozQ/MJqtjub3ym5bpcj0u/dubBRDq5dwBzW4ra07/s+MON7XcG X-Received: by 2002:a17:90a:db44:b0:268:1b62:2f6c with SMTP id u4-20020a17090adb4400b002681b622f6cmr6388230pjx.2.1695323381723; Thu, 21 Sep 2023 12:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695323381; cv=none; d=google.com; s=arc-20160816; b=bQlzKFjT2+EZVvA0/l1SoNn0IBm1QAEtb0dynqvht0+k+JpaQkXXfz+Z8UsvfUi41O gs1+WQm8WsqVATsERq73JpPS6uGEQAkCmKuF+5EO+uUU+lWiRjxeqns+jwV3M+wqpZP5 Tj3zT86oZFSaW8FLxMVQaoYTLdKWWBSKcIlG/LBtxIQ+Av53WIBKXWpaezkr4POpckzN X3uxt7fETAoXC1EL9J/2SBwPFDFk7KVy6XlTG78gQcpNUils9ycaOXOD/OKF4Op47eAH U8k18Cmp+0gEEojVXeVMx9GFtdm/xceMebNY+GQvJQFycI551BQMJf8iKSPyiKxGm1p3 fC6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=BY9Yq1tii6Lz8blralA575XHtB5bjwaW2DEDrjQJC8Y=; fh=ur5/vNmDMH9swYwyzrhkkSg7yT2ndOvdhin92VQYojs=; b=HhgZdLGGQz5vTGIkKIZp7tthBYljbFFsHUQy6iJYWfLxfGcR8RZcI2sNhhnM6WIldZ jpKzozbSrusfKgtCb/8OgkDcRAvmtqd/y76PphyGjbijXaLxXMdTkQetRawW3bH+fIGN Pf14odROcI8b4VlRQ7d7xawT7qJR2YVEKFuu2FBX9LZ5vdvba4GwCwQT+JBPqDvqpCLI qGI2is2OutzYYPTN1SPd8fynWwkDxcRhjCRVnEbT8JU5oPSuY6vN3xoUK2NO4bhTalhA reTqbt+CYWk38Cvgte00m6EknEASnTwkA+r3fmVUMC0CHW6ZD4sNIZYpRbxPom2wgG2a fkKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id np8-20020a17090b4c4800b00274d3f62044si2480499pjb.111.2023.09.21.12.09.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 12:09:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E6B2B80AF275; Thu, 21 Sep 2023 11:58:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230472AbjIUS6X convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Sep 2023 14:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230506AbjIUS6H (ORCPT ); Thu, 21 Sep 2023 14:58:07 -0400 Received: from mail-io1-f50.google.com (mail-io1-f50.google.com [209.85.166.50]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BFDCD255C; Thu, 21 Sep 2023 11:51:53 -0700 (PDT) Received: by mail-io1-f50.google.com with SMTP id ca18e2360f4ac-7926a450a0aso52351139f.3; Thu, 21 Sep 2023 11:51:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695322312; x=1695927112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rchX4DRYXaRpeH35NMA7XmzyCNvbFmAvUCyV3Dy7kro=; b=EAgSLHMY7ebbySOPs8wzAA61oBqb5X4bmrWyHpzVmUmmVn5AG+tKYlgv+mpXc8wJGO BdhWpjoK40OgljnZgJcVelVy2LXidJ07h8gJtDChTEkP/0XGX41lUD1AOfWpswR6jNb4 y8eqHdTxijY5rnSIqoLyfbzFSevF5Jg35Z8rNZnYyWe83jYZmZsrreUv407gq3AyVCQC z9xMbDornIUS3bZLWj86x543ZI1QJlIhmJEtdGUNuj/ZtsZHgLQcw69IzTzPOZrXZuvV xWsGLx2yFXVR6ayt3qJ0ppsqqjqYfZnpqVndtwNRNfjfNHbJ2Fxm5/LBwidSzfrjRRyK w+iQ== X-Gm-Message-State: AOJu0YxEvQfVBKdvGrgzMHUiCXYMw5md/SAyaR1HHC5uaki92eoVnfeE 4OoWCTaw24QiKh9SfPWZ8Qw3kX1Rkf4Fqse/08I= X-Received: by 2002:a6b:f404:0:b0:792:881d:c6ab with SMTP id i4-20020a6bf404000000b00792881dc6abmr7125847iog.18.1695322311775; Thu, 21 Sep 2023 11:51:51 -0700 (PDT) MIME-Version: 1.0 References: <20230919080929.3807123-1-xu.yang_2@nxp.com> In-Reply-To: From: Namhyung Kim Date: Thu, 21 Sep 2023 11:51:40 -0700 Message-ID: Subject: Re: [EXT] Re: [PATCH] perf jevents: fix no member named 'entries' issue To: Xu Yang Cc: Ian Rogers , "peterz@infradead.org" , "mingo@redhat.com" , "acme@kernel.org" , "mark.rutland@arm.com" , "alexander.shishkin@linux.intel.com" , "jolsa@kernel.org" , "adrian.hunter@intel.com" , "linux-perf-users@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 21 Sep 2023 11:58:49 -0700 (PDT) On Tue, Sep 19, 2023 at 9:16 PM Namhyung Kim wrote: > > Hello, > > On Tue, Sep 19, 2023 at 7:07 PM Xu Yang wrote: > > > > Hi Lan, > > > > > On Tue, Sep 19, 2023 at 1:04 AM Xu Yang wrote: > > > > > > > > The struct "pmu_events_table" has been changed after commit > > > > 2e255b4f9f41 (perf jevents: Group events by PMU, 2023-08-23). > > > > So there doesn't exist 'entries' in pmu_events_table anymore. > > > > This will align the members with that commit. Othewise, below > > > > errors will be printed when run jevent.py: > > > > > > > > pmu-events/pmu-events.c:5485:26: error: ‘struct pmu_metrics_table’ has no member named ‘entries’ > > > > 5485 | .entries = pmu_metrics__freescale_imx8dxl_sys, > > > > > > > > Signed-off-by: Xu Yang > > > > > > Reviewed-by: Ian Rogers > > > > > > Thanks Xu! I wasn't able to repeat the failure but the fix looks good > > > to me. Is the failure caused by adding new imx8dxl metrics? I'd like > > > > Yes. > > > > > to make sure we have testing coverage so this doesn't happen again. > > > I'm trying: > > > $ make -C tools/perf O=/tmp/perf JEVENTS_ARCH=all > > > Could you confirm that this make command was broken without your fix > > > plus the metric changes you've done? > > > > Below steps will repeat the failure. > > > > $ cd tools/ > > $ rm perf/pmu-events/arch/arm64/freescale/imx8mm/sys/ddrc.json > > $ make clean > > $ make JEVENTS_ARCH=all perf > > > > pmu-events/pmu-events.c:76586:26: error: ‘struct pmu_metrics_table’ has no member named ‘entries’ > > 76586 | .entries = pmu_metrics__freescale_imx8mm_sys, > > | ^~~~~~~ > > pmu-events/pmu-events.c:76587:26: error: ‘struct pmu_metrics_table’ has no member named ‘length’ > > 76587 | .length = ARRAY_SIZE(pmu_metrics__freescale_imx8mm_sys) > > | ^~~~~~ > > > > If only metric table exists, then this error may occur. > > I can reproduce the error and confirm it fixed. > > Tested-by: Namhyung Kim Applied to perf-tools-next, thanks!