From: Randy Dunlap <rdunlap@infradead.org>
To: Luigi Rizzo <lrizzo@google.com>,
linux-kernel@vger.kernel.org, mhiramat@kernel.org,
akpm@linux-foundation.org, gregkh@linuxfoundation.org,
naveen.n.rao@linux.ibm.com, changbin.du@intel.com,
ardb@kernel.org, rizzo@iet.unipi.it, pabeni@redhat.com,
toke@redhat.com, hawk@kernel.org
Subject: Re: [PATCH 1/2] quickstats, kernel sample collector
Date: Tue, 25 Feb 2020 20:26:20 -0800 [thread overview]
Message-ID: <c8101a7e-97a2-a32f-39d0-e6a229153398@infradead.org> (raw)
In-Reply-To: <20200226023027.218365-2-lrizzo@google.com>
Hi,
(Aside: in patch 0, is "abube" a typo?
Data are exported or controlled as abube.
)
For both patch 1 & patch 2, please use the expected/documented multi-line
comment style (in Documentation/process/coding-style.rst):
The preferred style for long (multi-line) comments is:
{except in net/ and drivers/net/}
/*
* This is the preferred style for multi-line
* comments in the Linux kernel source code.
* Please use it consistently.
*
* Description: A column of asterisks on the left side,
* with beginning and ending almost-blank lines.
*/
On 2/25/20 6:30 PM, Luigi Rizzo wrote:
> quickstats is a helper to accumulate in-kernel samples (timestamps,
> sizes, etc) and show distributions through debugfs. Compiled as a module
> by default; set CONFIG_QUICKSTATS=y in your config to make it compiled in.
For inclusion in the kernel source tree, it should default to n, not m.
[snip]
> Signed-off-by: Luigi Rizzo <lrizzo@google.com>
> ---
> include/linux/kstats.h | 61 +++++++++
> lib/Kconfig.debug | 7 +
> lib/Makefile | 1 +
> lib/kstats.c | 303 +++++++++++++++++++++++++++++++++++++++++
> 4 files changed, 372 insertions(+)
> create mode 100644 include/linux/kstats.h
> create mode 100644 lib/kstats.c
>
> diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
> index 69def4a9df009..d581ad075d438 100644
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -1452,6 +1452,13 @@ config LATENCYTOP
> Enable this option if you want to use the LatencyTOP tool
> to find out which userspace is blocking on what kernel operations.
>
> +config QUICKSTATS
> + tristate "collect percpu metrics and export distributions through debugfs"
> + default m
Drop the "default m".
Add: depends on DEBUG_FS
This code should build OK even when CONFIG_DEBUG_FS is not set/enabled,
but it seems that it would be useless in that case.
> + help
> + Helper library to collect percpu kernel metrics, exporting
> + distributions through debugfs. See kernel/kstats.c
> +
> source "kernel/trace/Kconfig"
>
> config PROVIDE_OHCI1394_DMA_INIT
thanks.
--
~Randy
next prev parent reply other threads:[~2020-02-26 4:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-26 2:30 [PATCH 0/2] " Luigi Rizzo
2020-02-26 2:30 ` [PATCH 1/2] " Luigi Rizzo
2020-02-26 4:26 ` Randy Dunlap [this message]
2020-02-26 6:08 ` kbuild test robot
2020-02-26 8:12 ` Greg KH
2020-02-26 2:30 ` [PATCH 2/2] quickstats: user commands to trace execution time of code Luigi Rizzo
2020-02-26 8:10 ` [PATCH 0/2] quickstats, kernel sample collector Greg KH
2020-02-26 9:52 ` Luigi Rizzo
2020-02-26 10:14 ` Greg KH
2020-02-26 11:40 ` Luigi Rizzo
2020-02-26 16:57 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c8101a7e-97a2-a32f-39d0-e6a229153398@infradead.org \
--to=rdunlap@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=ardb@kernel.org \
--cc=changbin.du@intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=hawk@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lrizzo@google.com \
--cc=mhiramat@kernel.org \
--cc=naveen.n.rao@linux.ibm.com \
--cc=pabeni@redhat.com \
--cc=rizzo@iet.unipi.it \
--cc=toke@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®