tracing/probe: Show subsystem name in messages
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 7 Feb 2017 11:21:28 +0000 (20:21 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Wed, 15 Feb 2017 14:02:25 +0000 (09:02 -0500)
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 <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace_kprobe.c
kernel/trace/trace_probe.c
kernel/trace/trace_uprobe.c

index a133ecd741e437d938ca377cf5e4358bcb586aa4..5c9bd055054223401c9e06fbac6cca4a25efc8c7 100644 (file)
@@ -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>
index 2a06f1fa7001b8d3eab7701ef94026e48467327c..11b63328d6fbcc4391b146bcdc7ced685f89dbcf 100644 (file)
@@ -21,6 +21,7 @@
  * Copyright (C) IBM Corporation, 2010-2011
  * Author:     Srikar Dronamraju
  */
+#define pr_fmt(fmt)    "trace_probe: " fmt
 
 #include "trace_probe.h"
 
index 4f2ba2bb11e0d4c512cfd7179c19282cf8e638c0..f4379e772171dc283c7b492a08c4e49bf41f479b 100644 (file)
@@ -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
 
 #include <linux/module.h>
 #include <linux/uaccess.h>