Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp3204953pxa; Tue, 25 Aug 2020 14:35:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwDRhio4rBGPJ51TyRPrWgx7CDsXz4GYdGuDecbPBlveuP/ivS3mYu7tKdHZ4gqLgvCU73c X-Received: by 2002:a17:907:a8c:: with SMTP id by12mr12359901ejc.554.1598391353482; Tue, 25 Aug 2020 14:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598391353; cv=none; d=google.com; s=arc-20160816; b=EJ17ytxc5UrxfKdrJnEy7cjelU+D1jFxWcy/1UlRtRZsymXArVnNBrkkA/4PdVJBRP cDmAsy6vqYHflqm+Er/AJXQIxhoUXsakXB+jBs/vhFXdoPSdJB6H91fXYCQwy8OVTtAa h+qxEL98xOQUz4lgomqFekng8eS2hLfxwoJpvIa28xfWdHKTHBD37L9Sb86uz4Ll3sMi lDZsZyu39gIem2Fo0IKwPtDv+SO8tkUOBsvSA2IckKP6bdg4jJpk8OMHw9Ju8HEpQqKV wmBW1Y/kzFrQ9YNoGbb3+xWNUUBSdoknnZR7uuuLLLvU/Ze6DItEcDfMzpE2EQGRAnK9 vUuw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=u1OTWHhE9IElU+sR5iKucymuvzxghiGxtarijq2d9l8=; b=mPXqpb/N8rYnt1yAUdaEzOsSb4FrYkeeTAw891KthFeKLbpBTune6OIuyR7aD5SiYK bMaezyaQ9foKhfiaSHyo0NaaOsSa7l29sDn7aVHRf0Si/UR5s2OIKYMjE3MGanr9u0n5 2g2uYjv6RsVa4Do91D5CSRlDchRcKPHuGj1CrtirBb8go++8e6RFD/G3fZ913fws3rKT n/+1c5tXThzBT9JEoXeN6rmReQcNhgK88uo1dVxPiglKkChuE5KSwkEWLl3Xl2Ci7KKr b7RGy42IlpeoIC5OBHVg/dW0IDR9KdNgwgkmhJaTzj5doP94bYOjZ6QcH8myd89qROQW 1QXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=nKJJu81p; 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 c18si189794eje.555.2020.08.25.14.35.29; Tue, 25 Aug 2020 14:35:53 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=nKJJu81p; 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 S1726337AbgHYVes (ORCPT + 99 others); Tue, 25 Aug 2020 17:34:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726158AbgHYVeq (ORCPT ); Tue, 25 Aug 2020 17:34:46 -0400 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16719C061574 for ; Tue, 25 Aug 2020 14:34:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:References:Cc:To:From:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=u1OTWHhE9IElU+sR5iKucymuvzxghiGxtarijq2d9l8=; b=nKJJu81pOKXkWfzAS7/2QmCr7K X6wnr4g1pIN1liytEsYumu2lk7bJv+EawvhIxBNw3XZnvcWyCaWliMF+TjwsEKKfuWW5O2Gb/u/wa PezkFB+7lzIUIleipvC5IajY2nY5OUjYnXBfaPD+hTMjJcvRSeQGzAbcvDodSvJNSv5fKf7lmLBzv ZaR9kr5zQsPb5Qewmn/IjoE6Q4vxmzi/3qLW5pLQHj5wZb6G8cDPgq8r9C/k/zVjQzFlQovT+QPSX RkjK9wImfSkikEfwsrCC7ED52N1mGX3pehmtoPP0M/wBWmqnuV86h0IAyQCwElkMM649YHaxGkoD/ JfQRHqeg==; Received: from [2601:1c0:6280:3f0::19c2] by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kAgaW-0006s2-LB; Tue, 25 Aug 2020 21:34:40 +0000 Subject: Re: localmodconfig - "intel_rapl_perf config not found!!" From: Randy Dunlap To: Nathan Royce Cc: 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 , Steven Rostedt , Masahiro Yamada References: <9ec12e0d-9d07-8c1b-6efc-c3e8cfae409c@infradead.org> <55b09be8-5bb2-60e3-8386-05bc9f6fd854@infradead.org> Message-ID: <663f60dc-6e91-128b-67e7-ccf2ced32ef1@infradead.org> Date: Tue, 25 Aug 2020 14:34:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <55b09be8-5bb2-60e3-8386-05bc9f6fd854@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > 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. > > > 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. 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]};