Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578576
| From | Namhyung Kim <namhyung@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH V2 2/2] tracing/probe: Show subsystem name in messages |
| Date | 2017-02-10 17:10 +0100 |
| Message-ID | <t9lVL-5Fn-9@gated-at.bofh.it> (permalink) |
| References | <t9ehA-xE-7@gated-at.bofh.it> <t9jqW-3TZ-27@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Feb 10, 2017 at 10:23:06PM +0900, Masami Hiramatsu wrote: > Show "trace_probe:", "trace_kprobe:" and "trace_uprobe:" > headers for each warning/error/info message. This will > help people to notice that kprobe/uprobe events caused > those messages. > > Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org> > --- > kernel/trace/trace_kprobe.c | 1 + > kernel/trace/trace_probe.c | 1 + > kernel/trace/trace_uprobe.c | 1 + > 3 files changed, 3 insertions(+) > > diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c > index d3729bd..5f688cc 100644 > --- a/kernel/trace/trace_kprobe.c > +++ b/kernel/trace/trace_kprobe.c > @@ -16,6 +16,7 @@ > * along with this program; if not, write to the Free Software > * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA > */ > +#define pr_fmt(fmt) "trace_kprobe: " fmt > > #include <linux/module.h> > #include <linux/uaccess.h> > diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c > index 847c1e0..52478f0 100644 > --- a/kernel/trace/trace_probe.c > +++ b/kernel/trace/trace_probe.c > @@ -21,6 +21,7 @@ > * Copyright (C) IBM Corporation, 2010-2011 > * Author: Srikar Dronamraju > */ > +#define pr_fmt(fmt) "trace_probe: " fmt > > #include "trace_probe.h" > > diff --git a/kernel/trace/trace_uprobe.c b/kernel/trace/trace_uprobe.c > index e5445ab..2c6b2d0c 100644 > --- a/kernel/trace/trace_uprobe.c > +++ b/kernel/trace/trace_uprobe.c > @@ -17,6 +17,7 @@ > * Copyright (C) IBM Corporation, 2010-2012 > * Author: Srikar Dronamraju <srikar@linux.vnet.ibm.com> > */ > +#define pr_fmt(fmt) "trace_kprobe: " fmt s/kprobe/uprobe/ ? Thanks, Namhyung > > #include <linux/module.h> > #include <linux/uaccess.h> >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily Steven Rostedt <rostedt@goodmis.org> - 2017-02-10 00:10 +0100
Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily Masami Hiramatsu <mhiramat@kernel.org> - 2017-02-10 07:00 +0100
Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily Ingo Molnar <mingo@kernel.org> - 2017-02-10 09:00 +0100
Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily Masami Hiramatsu <mhiramat@kernel.org> - 2017-02-10 11:40 +0100
Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily Steven Rostedt <rostedt@goodmis.org> - 2017-02-10 15:10 +0100
[PATCH V2 1/2] tracing/probes: Fix a warning message to show correct maximum length Masami Hiramatsu <mhiramat@kernel.org> - 2017-02-10 14:30 +0100
Re: [PATCH V2 1/2] tracing/probes: Fix a warning message to show correct maximum length Steven Rostedt <rostedt@goodmis.org> - 2017-02-10 17:20 +0100
[PATCH V2 2/2] tracing/probe: Show subsystem name in messages Masami Hiramatsu <mhiramat@kernel.org> - 2017-02-10 14:30 +0100
Re: [PATCH V2 2/2] tracing/probe: Show subsystem name in messages Namhyung Kim <namhyung@kernel.org> - 2017-02-10 17:10 +0100
Re: [PATCH V2 2/2] tracing/probe: Show subsystem name in messages Steven Rostedt <rostedt@goodmis.org> - 2017-02-10 17:20 +0100
Re: [PATCH V2 2/2] tracing/probe: Show subsystem name in messages Masami Hiramatsu <mhiramat@kernel.org> - 2017-02-10 23:40 +0100
[PATCH V3] tracing/probe: Show subsystem name in messages Masami Hiramatsu <mhiramat@kernel.org> - 2017-02-10 23:40 +0100
Re: [RFC][PATCH] tracing: Have traceprobe_probes_write() not access userspace unnecessarily Namhyung Kim <namhyung@kernel.org> - 2017-02-10 07:30 +0100
csiph-web