[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1510851938.31559.33.camel@perches.com>
Date: Thu, 16 Nov 2017 09:05:38 -0800
From: Joe Perches <joe@...ches.com>
To: Steven Rostedt <rostedt@...dmis.org>,
Michal Marek <michal.lkml@...kovi.net>,
Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc: Masami Hiramatsu <mhiramat@...nel.org>,
Jiri Kosina <jikos@...nel.org>,
Song Liu <songliubraving@...com>, linux-kernel@...r.kernel.org,
kernel-team@...com, trivial@...nel.org
Subject: Re: [PATCH] tracing/probe: fix typo in pr_fmt in trace_uprobe.c
On Wed, 2017-11-15 at 21:55 -0500, Steven Rostedt wrote:
> On Wed, 15 Nov 2017 14:55:19 -0800
> Joe Perches <joe@...ches.com> wrote:
>
> > Maybe use the much more common below instead?
> >
> > #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
>
> Is there someplace this is documented. My git grep foo isn't finding it
> for me.
Not so far as I know.
Maybe Michal Marek or Masahiro Yamada might add some
documentation in the future about these KBUILD defines.
btw, there are about 1800 #define pr_fmt uses and most
of them use KBUILD_MODNAME
$ git grep -P "^\s*#\s*define\s+pr_fmt\b" | \
cut -f2- -d":" | \
sed -r 's/^\s*#\s*define\s+pr_fmt([^ ]+)\s++/#define pr_fmt\1 /' | \
sed -r 's/\)\s+/) /' | sort | uniq -c | sort -rn | head -10
1166 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
134 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
32 #define pr_fmt(fmt) "%s: " fmt, __func__
22 #define pr_fmt(fmt) KBUILD_MODNAME ":%s: " fmt, __func__
17 #define pr_fmt(fmt) KBUILD_MODNAME ":%s(): " fmt, __func__
13 #define pr_fmt(fmt) "xen:" KBUILD_MODNAME ": " fmt
11 #define pr_fmt(fmt) "arcnet:" KBUILD_MODNAME ": " fmt
10 #define pr_fmt(fmt) KBUILD_MODNAME ": %s: " fmt, __func__
10 #define pr_fmt(fmt) "IPv6: " fmt
9 #define pr_fmt(fmt) fmt
Powered by blists - more mailing lists