Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp412203pxa; Wed, 26 Aug 2020 14:11:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz03jLQUBA3G0DKNUt5Cvk1HyXUO2vKfB9Ig8Xk0KYK0UyK5cvA0vQk28vsmAMvRRkGQQfa X-Received: by 2002:a17:906:c001:: with SMTP id e1mr18551958ejz.390.1598476271382; Wed, 26 Aug 2020 14:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598476271; cv=none; d=google.com; s=arc-20160816; b=hoIcHR7nCDarttaUhu3E14/6zjYfHVm0Rvfrq3a2p9EzHRzVzSe8GXRh0cZZJYqrmk L2+65wH0MR+hlr33fzcDYF1e8CNikyTi5EKSW6wD5+xlarLgpgJBLZbI7g0YFHEwTrGQ Szztio32Y1pKmnfUym/gD3PMpjYYOHGoe8MFmIZVBj0Xgp/KMvBhyxwjqvGRW/xLTCaL tXpPyn4b6PsSHUg+rF5UHKv5rDKkLeI80H0RmS+GxUMjEIhKhVawpKrekivRoLPfDosO CpVHcz2SOKi9xvtqp0UKL7g6gL7ZuQqDIoYTAKnVMKAlPHJ9oNwVYOFAv9yT4b2Xx4Hn 3mVQ== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=zOApfHw9dDpHBGSrJwUOf830WR9exw1Tf0LFj5M9ViU=; b=iBsGPUEAEJ4Mbpa5MR8aoZcTFP0HyxO/120Z2MW3Iz88kaAXRmU33swDbllh/wwQk+ Np6OB/a6YAgKwUQ+FMWK/Kl0wRRQwMHirORwLT5Hm3oftFCcY2pLfSPCYZFGtuvlSGBx K87ZIbCxsC9H/sfGbviNbFSMalOgxDodnsU1lIXSNKpFdwWEJI9l24ODe8cVNbRiPqrs yW8GMhy/pbJ2ZH8CkcLIU9+Ta8ehjrfcjyyJUuS5ZgkBuFpNnlVn8ktGTJFL+aA+i0H1 gl+hoKcDayIuOBC35RbUTR64ZmRkYC+55FF8tEs4OhG5wUwqM8uyhbXSAECIUPjf6jr6 LPHQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si2286764ejx.605.2020.08.26.14.10.46; Wed, 26 Aug 2020 14:11:11 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726853AbgHZVKK (ORCPT + 99 others); Wed, 26 Aug 2020 17:10:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:36308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726740AbgHZVKJ (ORCPT ); Wed, 26 Aug 2020 17:10:09 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6FCAE20737; Wed, 26 Aug 2020 21:10:07 +0000 (UTC) Date: Wed, 26 Aug 2020 17:10:05 -0400 From: Steven Rostedt To: Randy Dunlap Cc: Nathan Royce , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Thomas Gleixner , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org, Changbin Du , Masahiro Yamada Subject: Re: localmodconfig - "intel_rapl_perf config not found!!" Message-ID: <20200826171005.2027e9fa@oasis.local.home> In-Reply-To: <663f60dc-6e91-128b-67e7-ccf2ced32ef1@infradead.org> References: <9ec12e0d-9d07-8c1b-6efc-c3e8cfae409c@infradead.org> <55b09be8-5bb2-60e3-8386-05bc9f6fd854@infradead.org> <663f60dc-6e91-128b-67e7-ccf2ced32ef1@infradead.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 25 Aug 2020 14:34:34 -0700 Randy Dunlap wrote: > On 8/25/20 2:12 PM, Randy Dunlap wrote: > >> On Tue, Aug 25, 2020 at 2:13 PM Randy Dunlap wrote: > >>> > >>> so intel_rapl_perf is listed in your lsmod.cfg file: > >>> intel_rapl_perf 16384 2 > >>> > >>> You say Linux 5.8.3. I'm guessing that your "make localmodconfig" tree > >>> is Linux 5.8.3 (?). What kernel version are you running? > >>> I think that it's older, and some file/module names have changed since then. > > > > On 8/25/20 1:34 PM, Nathan Royce wrote: > >> Correct. I'm building for 5.8.3 and I'm currently on 5.7.4 (1 month > >> doesn't seem particularly old). > > > > Yes, things can change quickly. Yes and as Randy said, there's no way to easily fix that. > > > > > > I don't see any support in streamline_config.pl for Kconfig symbols > > and/or modules whose names have changed. Trying to do something > > like that would be a never-ending job (a la job security). > > > > At least it gave you a warning that it couldn't find a Kconfig symbol > > for that module. Correct, this is exactly why I have it warn. Because this happens all the time. In most cases, I simply ignore the warning ;-) > > > > > > From your original email: > > | I'm going to assume it has something to do with the naming and it's > > | supposed to be associated with "Intel/AMD rapl performance events > > | (CONFIG_PERF_EVENTS_INTEL_RAPL)" which I already have set to 'Y'. > > > > Yes, commit fd3ae1e1587d64ef8cc8e361903d33625458073e changed the module name > > since it now supports both Intel and AMD. > > > > > > | Right below that, I also get 'Use of uninitialized value > > | $ENV{"LMC_KEEP"} in split at ./scripts/kconfig/streamline_config.pl > > | line 596.', but again that is the sort of thing that may warrant a new > > | email specific to localmodconfig author(s). But again maybe not > > | because I take it more as a warning given I don't make use of > > | LMC_KEEP. > > > > > > @Changbin: can you fix this little bug in streamline_config.pl, please? ^^^^^ > > Changing email address for Changbin. > Plus I made the quick patch for streamline_config.pl (below) > although I haven't tested it. > > --- > From: Randy Dunlap > > A user reported: > 'Use of uninitialized value $ENV{"LMC_KEEP"} in split at > ./scripts/kconfig/streamline_config.pl line 596.' > > so first check that $ENV{LMC_KEEP} is defined before trying > to use it. Acked-by: Steven Rostedt (VMware) Randy, please send this as a stand alone patch to the KBUILD maintainers. -- Steve > > Fixes: c027b02d89fd ("streamline_config.pl: add LMC_KEEP to preserve some kconfigs") > Signed-off-by: Randy Dunlap > Cc: Changbin Du > Cc: Steven Rostedt (VMware) > Cc: Masahiro Yamada > --- > scripts/kconfig/streamline_config.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > --- linux-next-20200825.orig/scripts/kconfig/streamline_config.pl > +++ linux-next-20200825/scripts/kconfig/streamline_config.pl > @@ -593,7 +593,10 @@ while ($repeat) { > } > > my %setconfigs; > -my @preserved_kconfigs = split(/:/,$ENV{LMC_KEEP}); > +my @preserved_kconfigs; > +if (defined($ENV{'LMC_KEEP'})) { > + @preserved_kconfigs = split(/:/,$ENV{LMC_KEEP}); > +} > > sub in_preserved_kconfigs { > my $kconfig = $config2kfile{$_[0]};