summaryrefslogtreecommitdiff
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2017-06-18 17:23:00 +0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-06-20 04:05:52 +0300
commit29681bc5bb4326c2f9eac5dc68d8fad3e88b4bb5 (patch)
treee9fdc6f267b0a2cd332c0ccf4ac651304f4dbe52 /tools/testing/selftests
parente7bd9ba20a9ec7024a0566a93c22b9571a48939a (diff)
downloadlinux-29681bc5bb4326c2f9eac5dc68d8fad3e88b4bb5.tar.xz
perf ftrace: Move setup_pager before opening trace_pipe
The 'perf ftrace' command fails to reset tracer after finishing recording like below: $ sudo perf ftrace -v hello write 'nop' to tracing/current_tracer failed: Device or resource busy ... This is because the trace_pipe file is open in pager process. Move the pager setup to before opening the file. 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 Fixes: 583359646fde ("perf ftrace: Use pager for displaying result") Link: http://lkml.kernel.org/r/20170618142302.25390-2-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions