Skip to content

Commit 7257634

Browse files
mhiramatrostedt
authored andcommitted
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 <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 8e0f114 commit 7257634

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

kernel/trace/trace_kprobe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* along with this program; if not, write to the Free Software
1717
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1818
*/
19+
#define pr_fmt(fmt) "trace_kprobe: " fmt
1920

2021
#include <linux/module.h>
2122
#include <linux/uaccess.h>

kernel/trace/trace_probe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* Copyright (C) IBM Corporation, 2010-2011
2222
* Author: Srikar Dronamraju
2323
*/
24+
#define pr_fmt(fmt) "trace_probe: " fmt
2425

2526
#include "trace_probe.h"
2627

kernel/trace/trace_uprobe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Copyright (C) IBM Corporation, 2010-2012
1818
* Author: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
1919
*/
20+
#define pr_fmt(fmt) "trace_kprobe: " fmt
2021

2122
#include <linux/module.h>
2223
#include <linux/uaccess.h>

0 commit comments

Comments
 (0)