Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1077022rdb; Tue, 19 Sep 2023 21:18:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGDHihgGMM5jBOoHVoCKAB9OdcX0RgXd4kVjuTwDvfM2xKno8yDj75a5PFo+vaCYO9/mi1d X-Received: by 2002:a05:6870:8a29:b0:1b0:5bf7:3bb6 with SMTP id p41-20020a0568708a2900b001b05bf73bb6mr1723955oaq.28.1695183492259; Tue, 19 Sep 2023 21:18:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695183492; cv=none; d=google.com; s=arc-20160816; b=DZwYd6Si/b7lDx+TnNmlaEgIY1gQM3AUaRZtficajlJSESdUVarGvi3Hycs7T1BkFP 2yodfS56jNrG6rScLCU4numBEOTKwUBnqnQhNLBCQJdsZTfDV5Sc5tYm2aTStht2ua84 ol1KXGWbQi+5WeCo8a63qriW7c6cgAcWL249vpLOHUhpkqpSaq9nj2Zxnzff2bKgsVHT LymKu3v5dwzwJvDQQ4p72X0TzRdUvA7l/t7EByNraauQIRGIZ19Q46E5RTnmNzgcbVJi 4ja+Sx9whWVNTRR1iXp7qpokO6LlaZLzlimMhfXYq5GsWA1vl4BFeLtnnBOo6vHO2JAx /TfQ== 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=gyUWLgB33ALi6UwdUX8DZ2JdliJ01Evh84qaL25ZHHc=; fh=ur5/vNmDMH9swYwyzrhkkSg7yT2ndOvdhin92VQYojs=; b=TazUewTFJXYWUiBK1U6WLp5gzaBhZ/9OBCRIvRk6ODjb5Phowt1KEYU1SgIY7yovyT PpwTOVcvuOLYt/rbuYrWyhUs8VGKzrbZO3Z4NtJHnTWXBKF8q7qUdIpKuxKXWGTfe+6k wmJhHlsdA3gBAK8JOBDLKuDmwoPVA8pzBdbf1ApuGlS7R1OZP5B3Iv1/WSNmt6FnuM8Q hCfHpR9eQmb1Kcl9856q6RMtN2VnEApIbaU5guavmx8auh7inx9WAhRsIQFeOOKZSH3c M9hXT4saJYvaborIR0pL5YnfC9dzCa8LK4c4XrrmarykFhvlbO+3cgfztwXhaEaboRUL Nvnw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id a16-20020a056a001d1000b0068e47f319d9si10957854pfx.280.2023.09.19.21.18.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 21:18:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 0CC7E8106F71; Tue, 19 Sep 2023 21:16:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232260AbjITEQl convert rfc822-to-8bit (ORCPT + 99 others); Wed, 20 Sep 2023 00:16:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbjITEQk (ORCPT ); Wed, 20 Sep 2023 00:16:40 -0400 Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9CC5AC; Tue, 19 Sep 2023 21:16:34 -0700 (PDT) Received: by mail-io1-f41.google.com with SMTP id ca18e2360f4ac-795547f055fso225984839f.0; Tue, 19 Sep 2023 21:16:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695183394; x=1695788194; 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=TByPd9bJxyXIOoM/l5SEaA4+xKnA5Fi2G8S6RG6nvLw=; b=Cka1xYt7SD58HKLzlu7N4+2+7cgYrCVGQTrkCl5+wPSm36K1ArLE3e4NyIPhnpJExG JItGMktwLY7JAeOoS+PJ/NfdlQLbP2+ZsIIidPfsuWINSDeid3HltTEz4N/yEnMgtX/E B6coKvVrTAt8Ed/yGlNSrCf7Ikm6trhpgSuzvDPCK75Ok6bhjSqq6T7vnBVGnZWfNO6n 3gx4Hfke3XVNHPPZkWtyVo7d5jhaRmhY7Wm+80Lkbn7QL3myv2RauvRjbZRYQSLk05LG AYisy72y0euslaBv52GvzOXJ36TFdOt1wngQ+GWHXiPON8ySQCVVfM1VLieEG28XEoKH S4+A== X-Gm-Message-State: AOJu0YyUaURFnjAMm8+iX1BeyYYART8Wai5ScKayTv1YlYgPl8cT2PKo BJDGyQVlmCYZJzf7idlNb2lS9i84xA2rienzaqc= X-Received: by 2002:a05:6602:24cf:b0:791:2db5:c779 with SMTP id h15-20020a05660224cf00b007912db5c779mr1969074ioe.10.1695183394112; Tue, 19 Sep 2023 21:16:34 -0700 (PDT) MIME-Version: 1.0 References: <20230919080929.3807123-1-xu.yang_2@nxp.com> In-Reply-To: From: Namhyung Kim Date: Tue, 19 Sep 2023 21:16:23 -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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 19 Sep 2023 21:16:44 -0700 (PDT) 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 Thanks, Namhyung