Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2121169ybl; Tue, 3 Dec 2019 19:12:29 -0800 (PST) X-Google-Smtp-Source: APXvYqy/fmqzxF1d5/0X9PitrJM/8pSihlNRAr1kV9r/Q+1UD9CPsAJJIwxcnB454Ow/AtrSYdh/ X-Received: by 2002:aca:b445:: with SMTP id d66mr860053oif.103.1575429149083; Tue, 03 Dec 2019 19:12:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575429149; cv=none; d=google.com; s=arc-20160816; b=QkwO0VApZh/EUXpCPdBu6tiqcYjoqxLp0e5mqRm6TrBzDOm5Cu5V+4jIkoNYqY9hd2 ai3ZXY9KB+cz3ERuu/AVKROyUvDzuWpwetM8ebqn+agUvLHk9yW3VW2UESPzboGMyznH s7AGpPgq5Z3L+ai0zob9n1zXRqfO4P1MENM2IeCw51jXEglX/2vODfBWyIZwvMzs2CGe UORiLxywI6ltM5ZEBqsMnjAWGljZ4S4TZHAcwcvL8DtpWmD/VNpaOkJtTzT/5Vo9Dha7 B3WIsS3mDs1n7uAJFxBLm0FLGabobw0UOrPLogGpWuHq7x6lHkApMiB+wcVmozqEdXVx dJQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=OD6ZQkAKcfx+YiJQA3rzeNZXiVaoJsqUibyp2cAgwHE=; b=ibU/ri39SNILqt4QMbGq8lDeIN6UP2zJMZ3utDPqZ9cu7upkzesnGC99noEBm1PYz+ tjRd10GfktRS9sb27qdBDJ2v7YmZFk86xZGeEozO+x5s8bH+KS0Fz4lgyDHnsHYQ04eV 0FNQfwpBhM9oA1fW1XY9tWraAlMn3iUQVXB38XcvOZodyUktH47LzCHzfVlmik3i+vzn lSuh6WtVZ3kFKxvqiQTKPAPpoY6g271pbP6UvwyB5YqfCzAAQsVMcIvmnDxPFl+kx/cZ W8p9V6EpY/exXNLMvgXEW2vE7LL/1pa7dTs2aV1RqGgrR0nxoYGvaDVt7r5Q6SulzM61 XQkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=C+PE5c2J; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d13si2427668otp.196.2019.12.03.19.12.16; Tue, 03 Dec 2019 19:12:29 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=C+PE5c2J; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727015AbfLDDLP (ORCPT + 99 others); Tue, 3 Dec 2019 22:11:15 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:40734 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726804AbfLDDLP (ORCPT ); Tue, 3 Dec 2019 22:11:15 -0500 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-03.nifty.com with ESMTP id xB43B2G7013793; Wed, 4 Dec 2019 12:11:03 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com xB43B2G7013793 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1575429063; bh=OD6ZQkAKcfx+YiJQA3rzeNZXiVaoJsqUibyp2cAgwHE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=C+PE5c2J+nN44agT+fzZT75ONd0sul+LPjjMDpeeX0NcLRCfP6hz9jzRex3LIstfC U9s+/qKyl/ZMlFKKJ08AMW+Nkz7+Uj64yVdW3gDh277EEMOoO3I8LZABSXGVvEmzNv 8NRj8ArRE3O5YUlSaxQExMxTTv2G04jqLExZeqOVOEfb/W53wQYGoms2UxXu7GREzY lUw45WDDgXGy7ljI1Fc4mYM+NVdE2oGZjWRfYCAsm9KNWMl6FXijV1rfpTxtQdM8IL 5mTwryE2B+SBfUHc5x3mgtE2v8bWIei7LHqT8dn+eWpG4elhJIm/rjTXub0xoffRa4 HBF8wW1gMX1Cw== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id g23so3880832vsr.7; Tue, 03 Dec 2019 19:11:02 -0800 (PST) X-Gm-Message-State: APjAAAUWaQnCnBAtgDb8uQnlWo7P7XjVDIPugSO7zNIZ0CKBJmUnko5j wa7Y8aVMU2boQQMNu9cx0NEhdlvgOkw3SCETXE8= X-Received: by 2002:a67:30c3:: with SMTP id w186mr328431vsw.179.1575429061823; Tue, 03 Dec 2019 19:11:01 -0800 (PST) MIME-Version: 1.0 References: <20191203094845.610692-1-unixbhaskar@gmail.com> In-Reply-To: <20191203094845.610692-1-unixbhaskar@gmail.com> From: Masahiro Yamada Date: Wed, 4 Dec 2019 12:10:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] Enlist running kernel modules information To: Bhaskar Chowdhury Cc: Michal Marek , Randy Dunlap , Linux Kbuild mailing list , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 3, 2019 at 6:49 PM Bhaskar Chowdhury wrote: > > This is new file to show running kernel modules list.One line bash > script. > > Signed-off-by: Bhaskar Chowdhury > --- > scripts/kernel_modules_info.sh | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > create mode 100755 scripts/kernel_modules_info.sh > > diff --git a/scripts/kernel_modules_info.sh b/scripts/kernel_modules_info.sh > new file mode 100755 > index 000000000000..f005c47a3aa6 > --- /dev/null > +++ b/scripts/kernel_modules_info.sh > @@ -0,0 +1,23 @@ > +#!/bin/bash - > +#SPDX-License-Identifier: GPL-2.0 > +#=============================================================================== > +# > +# FILE: kernel_modules_info.sh > +# > +# USAGE: ./kernel_modules_info.sh > +# > +# DESCRIPTION: Running kernel modules information. > +# > +# OPTIONS: --- > +# REQUIREMENTS: awk > +# BUGS: --- > +# NOTES: --- > +# AUTHOR: Bhaskar Chowdhury (https://about.me/unixbhaskar), unixbhaskar@gmail.com > +# ORGANIZATION: Independent > +# CREATED: 12/03/2019 13:52 > +# REVISION: --- > +#=============================================================================== > + > +set -o nounset # Treat unset variables as an error > + > +awk '{print $1}' "/proc/modules" | xargs modinfo | awk '/^(filename|desc|depends)/' I want to see a good reason (e.g. useful for other developers) for upstreaming. This script looks like your custom script, which you can maintain locally. -- Best Regards Masahiro Yamada