Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp4532384imb; Wed, 6 Mar 2019 16:08:58 -0800 (PST) X-Google-Smtp-Source: APXvYqyk9hf5WT4c1gYpDNqRP8OA1X3U1+tYsaoc1KlQEeUQcv5gwNkn8whXkTTF0XpCUEugEkwM X-Received: by 2002:a17:902:2a2b:: with SMTP id i40mr8083701plb.236.1551917338236; Wed, 06 Mar 2019 16:08:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551917338; cv=none; d=google.com; s=arc-20160816; b=NIZOOSakPbvYq4bNQZc+l+6fcEUwh87QerpqnlklLuTiwR/LwO0A8AveMtUyIWX6HQ cDZIUgIIIK2eB306DEKQmqyu1WARNTnLRy9yV8o3NhgPnmqMGqhLI5Qc+f7PkYT0k7X0 toixkA06Q3Tc5juBF6/x7UV/HbWIxVTM40GQFWWuicfES1mSomJ9K81z4irzkJTIRiiQ nI2WJ9g8UQZVTM0N8EOSmaFXfm+RlM4bMq1M9JY2fyiMOQsV+rWWc+Ndgigg64uSluHu Ze7XLuWmD5LyjHKTJxUPtJnmd/oLyCqR6dgCXJ/7GpydyOZFbTecLuvqZVe6YBPt/OeU LgUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:mime-version:message-id:in-reply-to :date:cancel-lock:user-agent:references:subject:cc:from; bh=s5xsabGpdXgxuJrA1VVWxNCf4YZCGuxx08riAJwaDEc=; b=ruAyl80iuywE/92z80WwDE3l3ryVFgbSzFaNo/Civ15y8UwLsSyKEfjc4o9qGeBkXo E/8Y2d1GD4JvnjAgU9O8VW1J6u1eE7Fd0SlZI1frIM2C8pDiFGJiA5sABdcBfTkKyfqp APQ189olCISASdW4uQfw+UdqAvldta8kBI+FKw0v3d19qanAGTRKwysSfUX/8nPPd0b7 BVNscA3eHoGdYyh/6FTV7EwJUBquYnCCbP4H9WR2Ex+XhWZb6c8V6bm5KfrQcMDIa8X0 5PI/6mC+Hp+haKT40Tq8S+IDZLDJlQqlmEjiZ7DRcOPVfqzP+J98PF4paPQGedpxU24L o9fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k127si2689716pgc.124.2019.03.06.16.08.42; Wed, 06 Mar 2019 16:08:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726139AbfCGAHE (ORCPT + 99 others); Wed, 6 Mar 2019 19:07:04 -0500 Received: from mga09.intel.com ([134.134.136.24]:33835 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfCGAHE (ORCPT ); Wed, 6 Mar 2019 19:07:04 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Mar 2019 16:07:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,449,1544515200"; d="scan'208";a="131885272" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga003.jf.intel.com with ESMTP; 06 Mar 2019 16:07:03 -0800 Received: by tassilo.localdomain (Postfix, from userid 1000) id D1EDA301BB3; Wed, 6 Mar 2019 16:07:03 -0800 (PST) From: Andi Kleen Cc: gladkov.alexey@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] moduleparam: Save information about built-in modules in separate file References: <20190306165425.GD14017@MacBook-PC.fortress> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:+ngZPz4f8xkSzaw0K/q7E8D445M= Date: Wed, 06 Mar 2019 16:07:03 -0800 In-Reply-To: <20190306165425.GD14017@MacBook-PC.fortress> (Alexey Gladkov's message of "Wed, 6 Mar 2019 17:54:25 +0100") Message-ID: <871s3jv97c.fsf@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alexey Gladkov writes: > Problem: > > When a kernel module is compiled as a separate module, some important > information about the kernel module is available via .modinfo section of > the module. In contrast, when the kernel module is compiled into the > kernel, that information is not available. > > Information about built-in modules is necessary in the following cases: > > 1. When it is necessary to find out what additional parameters can be > passed to the kernel at boot time. > > 2. When you need to know which module names and their aliases are in > the kernel. This is very useful for creating an initrd image. I would just keep it in the vmlinux as a non loadable segment, which won't make it into bzImage. vmlinux passed around anyways, and it's easier to handle than extra files, and it already has plenty of metadata in it. -Andi