perf ftrace: Show error message when fails to set ftrace files
authorNamhyung Kim <namhyung@kernel.org>
Sun, 18 Jun 2017 14:22:59 +0000 (23:22 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Jun 2017 01:05:51 +0000 (22:05 -0300)
commite7bd9ba20a9ec7024a0566a93c22b9571a48939a
treef8ebfa384d6525c69bf588b9ca41098f13e2eecc
parent106dacd86f042968e0bb974490fcb9cd017cd03a
perf ftrace: Show error message when fails to set ftrace files

It'd be better for debugging to show an error message when it fails to
setup ftrace for some reason.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20170618142302.25390-1-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-ftrace.c