[PATCH] perf: Fix directory name in error message for tracefs

From: Steven Rostedt (Red Hat)
Date: Mon Feb 09 2015 - 10:42:59 EST


If tracefs is configured, but not mounted, the error message should
ask if it is mounted at /sys/kernel/tracing and not at
/sys/kernel/debug.

Link: 20150208141246.GA13586@danjae">http://lkml.kernel.org/r/20150208141246.GA13586@danjae
Reported-by: Namhyung Kim <namhyung@xxxxxxxxxx>
Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx>
---
tools/perf/tests/open-syscall-all-cpus.c | 2 +-
tools/perf/tests/open-syscall.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/perf/tests/open-syscall-all-cpus.c b/tools/perf/tests/open-syscall-all-cpus.c
index 21969e99ea46..3ec885c48f8f 100644
--- a/tools/perf/tests/open-syscall-all-cpus.c
+++ b/tools/perf/tests/open-syscall-all-cpus.c
@@ -30,7 +30,7 @@ int test__open_syscall_event_on_all_cpus(void)
evsel = perf_evsel__newtp("syscalls", "sys_enter_open");
if (evsel == NULL) {
if (tracefs_configured())
- pr_debug("is tracefs mounted on /sys/kernel/debug?\n");
+ pr_debug("is tracefs mounted on /sys/kernel/tracing?\n");
else if (debugfs_configured())
pr_debug("is debugfs mounted on /sys/kernel/debug?\n");
else
diff --git a/tools/perf/tests/open-syscall.c b/tools/perf/tests/open-syscall.c
index 4250e40234d2..07aa319bf334 100644
--- a/tools/perf/tests/open-syscall.c
+++ b/tools/perf/tests/open-syscall.c
@@ -19,7 +19,7 @@ int test__open_syscall_event(void)
evsel = perf_evsel__newtp("syscalls", "sys_enter_open");
if (evsel == NULL) {
if (tracefs_configured())
- pr_debug("is tracefs mounted on /sys/kernel/debug?\n");
+ pr_debug("is tracefs mounted on /sys/kernel/tracing?\n");
else if (debugfs_configured())
pr_debug("is debugfs mounted on /sys/kernel/debug?\n");
else
--
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/