Skip to content

ftrace/selftest: Fix ftracetest for non existant config and files

Steven Rostedt lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ftrace/selftests: Return the skip code when tracing directory not configured in kerneltools/testing/selftests/ftrace/ftracetest+32 -61 reply
2/2ftrace/selftest: Test if set_event/ftrace_pid exists before writingtools/testing/selftests/ftrace/test.d/functions+2 -26 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMasami Hiramatsu
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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(-)