[PATCH 0/2] ftrace/selftest: Fix ftracetest for non existant config and files

From: Steven Rostedt
Date: Wed Jul 03 2019 - 15:53:03 EST



Hi Masami,

I worked a bit more on the one issue that Po-Hsu found, and made it use
tracefs a bit more aggressively. To test this I ran the test on a 3.5
kernel and found another issue, where it failed because set_event_pid
and set_ftrace_pid did not exist.

Can you review these patches. I can take them in my tree, or if Shuah
would like, she can take it in hers (after you give a review).

Thanks!

-- Steve


Steven Rostedt (VMware) (2):
ftrace/selftests: Return the skip code when tracing directory not configured in kernel
ftrace/selftest: Test if set_event/ftrace_pid exists before writing

----
tools/testing/selftests/ftrace/ftracetest | 38 +++++++++++++++++++++----
tools/testing/selftests/ftrace/test.d/functions | 4 +--
2 files changed, 34 insertions(+), 8 deletions(-)