From patchwork Tue Dec 3 09:48:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhaskar Chowdhury X-Patchwork-Id: 11270881 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA41F13A4 for ; Tue, 3 Dec 2019 09:49:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 879D020661 for ; Tue, 3 Dec 2019 09:49:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Rvvej0s3" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725773AbfLCJt2 (ORCPT ); Tue, 3 Dec 2019 04:49:28 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:37773 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725907AbfLCJt2 (ORCPT ); Tue, 3 Dec 2019 04:49:28 -0500 Received: by mail-pf1-f196.google.com with SMTP id s18so1592472pfm.4; Tue, 03 Dec 2019 01:49:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=erD2viJtloeLhrVUw8Su8xjseJyW7Af2nKs25MxP3Sk=; b=Rvvej0s30hTRj81W1htMoKBw3Fahdbr/YesJ9yJWaqjwz4SEqRuHMEG4xarObDphP8 SyPiOSILFUSh4s7MwiZOLFh1Dy7z5+ConpbgVVZdbk2/xH7sirc793lIVcT47XsAXJpx 43XTGybNuhTuK1Y0wc2nm36CQR31NK+oAyNgvl7bs6+pGIZ2GDDlhWW7orquaaatmUzF QOa56KAJmf2cI4weBu1Ji4oCMjOVbJIDMjf8sshNzFhhi7B2msdMmWK/zFEf3/+QD7wi TcwZ/eUqylYiDwoiQA1I110LcTnfD88Tqmfwt7RuljOcOxWdXVHHfKh+LmYQzJkNCzGe 1neg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=erD2viJtloeLhrVUw8Su8xjseJyW7Af2nKs25MxP3Sk=; b=dfGmUnh2ISV4er4UWk88Mw7ogYv7/Y07iKOZEnQiv/6hp/Wr+2cD+sqFO2MnN76SL+ lexne42rNCI/aDN3CCO8uMW9oa26rhfDhjVT0UScvpq6HblMLZ20eqWMwyvqBZRbeH8g SITvNkfLHXjNjH34T5x8ulWAdjuEUIgcNF0bFM2+DeSeXcLxDQCxlVNsX4RsLAV9UJ8c KHMLMOHpyBJmoyv6modQrVvKE1flyaQWkhsN+0+ehhROCZR752w2o+yUWzfbUguHDaZL nUS8FzQWtjpuw8UGZZurugvQPWvVm0t+xjJXctwIj9TSMyCF7VOvZScRBJv+ghphs/+k ax3w== X-Gm-Message-State: APjAAAVgB5ZFI/Ij/XTlLGbytla5kW75vDZSGjW/GTy6GjqYZXfX2v+0 WRK0iZP3wMULv/vOi62zeLU= X-Google-Smtp-Source: APXvYqwGJISc4S2JeZSQ0TQKr0b6AldqMvh1sZJzU8K0cI+2qxXPVsmk1GZnm4rOhUhf7ItuOVhMdA== X-Received: by 2002:a62:a50a:: with SMTP id v10mr3749263pfm.222.1575366567818; Tue, 03 Dec 2019 01:49:27 -0800 (PST) Received: from localhost.localdomain ([103.231.91.74]) by smtp.gmail.com with ESMTPSA id k29sm2918064pfh.104.2019.12.03.01.49.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 01:49:27 -0800 (PST) From: Bhaskar Chowdhury To: yamada.masahiro@socionext.com, michal.lkml@markovi.net, rdunlap@infradead.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Bhaskar Chowdhury Subject: [PATCH 1/2] Enlist running kernel modules information Date: Tue, 3 Dec 2019 15:18:45 +0530 Message-Id: <20191203094845.610692-1-unixbhaskar@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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)/' From patchwork Tue Dec 3 09:53:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhaskar Chowdhury X-Patchwork-Id: 11270883 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7895113A4 for ; Tue, 3 Dec 2019 09:54:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 56F0A206EC for ; Tue, 3 Dec 2019 09:54:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b9DiFTyL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726105AbfLCJyE (ORCPT ); Tue, 3 Dec 2019 04:54:04 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39240 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725773AbfLCJyE (ORCPT ); Tue, 3 Dec 2019 04:54:04 -0500 Received: by mail-pf1-f193.google.com with SMTP id x28so1591827pfo.6; Tue, 03 Dec 2019 01:54:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WsogWlyRgThoQhfF9sTWa0YBUYovc2qudSPT4FE8HIs=; b=b9DiFTyLNhlWFfjwPn7KUH/y0rtt2bnC5zKhRkW/qWDMrwUeKA8IsVuh5Nc3arFyAK TSCLJBpes5qA3zvzis8N0h63YIASy96x9v4ynwWp+B6bTnv5ekw0wQmZxkLW0Cs1/nUJ T4CMiV/oEAwIa7JBXNp53VlI1m3mp2NliAXksqvwVTy+q2uZMoGrxcrtBVB79krGGYNV vv1zH2afnxbwtjCeMlB3c8/NLtussF0Vi7HnfkgxMbRifnpKwrmzoOBPDkyrXOP6N2EW IGkLMyDwi+mihA26f648eo0KZYTuodhjcNWuBAbKMPOhJclCbA5VVIEIqHbcEkxihsuG mGqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=WsogWlyRgThoQhfF9sTWa0YBUYovc2qudSPT4FE8HIs=; b=RFGORwbC54S4lQUURA0V+fSsRSKKjNIkoqq2CZ8P8jVdYQcY50APrN0VmCZ5nbM6Kr O7+4kYJoluQZreeNFSCWtN/ANIws63Hgx9prBcgxCfSCiRV5joT/62QnB0EGxyt3xUU+ hGDfHmTOzu6DE8H+wkz0IivXYtayWiHLhktSOzawF9VVhgI3WpN7Kt+olNxHP86skXsN 2WkzxszvOACxrolWOkc1qOxc02aVmJCPmDXhl+B3An0AxzlHs2M07TJu11TMYMLBYwi/ 5sZokOcQX7b7Yekugr093wYaNDSSLWk2HK8kKG//kTWkS5qVJbAKBTXtFY0ofosy+Bf/ U38A== X-Gm-Message-State: APjAAAVU8DoXdbmZHBflzg+VEFuDnfV6hiKIm9GCs3UOiVSDXhAfY/hq LzBsfig2db6Z/ri0O7LJ7sRCKVPCTZY= X-Google-Smtp-Source: APXvYqysxS/CRZThyJEBcrJNZgOHb7f3bBwnrOwAKmlWS19dAA3LWod93LjSAX4s3tVPC+TNBJmpGw== X-Received: by 2002:a62:e709:: with SMTP id s9mr3776830pfh.190.1575366844118; Tue, 03 Dec 2019 01:54:04 -0800 (PST) Received: from localhost.localdomain ([103.231.91.74]) by smtp.gmail.com with ESMTPSA id b7sm2305739pjo.3.2019.12.03.01.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Dec 2019 01:54:03 -0800 (PST) From: Bhaskar Chowdhury To: yamada.masahiro@socionext.com, michal.lkml@markovi.net, rdunlap@infradead.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Bhaskar Chowdhury Subject: [PATCH 2/2] fix the SPDX syntax and bash interprester pointer Date: Tue, 3 Dec 2019 15:23:39 +0530 Message-Id: <20191203095339.615774-1-unixbhaskar@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org SPDX syntax was complining by checkpatch fixed it,added space before it. And add bash interpreter to find by the env . Signed-off-by: Bhaskar Chowdhury --- scripts/kernel_modules_info.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/kernel_modules_info.sh b/scripts/kernel_modules_info.sh index f005c47a3aa6..3a9b00988ed3 100755 --- a/scripts/kernel_modules_info.sh +++ b/scripts/kernel_modules_info.sh @@ -1,5 +1,5 @@ -#!/bin/bash - -#SPDX-License-Identifier: GPL-2.0 +#!/usr/bin/env bash +# SPDX-License-Identifier: GPL-2.0 #=============================================================================== # # FILE: kernel_modules_info.sh