From: Masami Hiramatsu Date: Tue, 7 Feb 2017 11:21:28 +0000 (+0900) Subject: tracing/probe: Show subsystem name in messages X-Git-Tag: v5.15~11724^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7257634135c247de235f3cdfdaa22f9eb5f054e4;p=platform%2Fkernel%2Flinux-starfive.git tracing/probe: Show subsystem name in messages 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. Link: http://lkml.kernel.org/r/148646647813.24658.16705315294927615333.stgit@devbox Signed-off-by: Masami Hiramatsu Signed-off-by: Steven Rostedt (VMware) --- diff --git a/kernel/trace/trace_kprobe.c b/kernel/trace/trace_kprobe.c index a133ecd..5c9bd05 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 #include diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c index 2a06f1f..11b6332 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 4f2ba2b..f4379e7 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 */ +#define pr_fmt(fmt) "trace_kprobe: " fmt #include #include