selftests: ftrace: Use "grep -E" instead of "egrep"The latest version of grep claims the egrep is now obsolete so the buildnow contains warnings that look like: egrep: warning: egrep is obsolesce
selftests: ftrace: Use "grep -E" instead of "egrep"The latest version of grep claims the egrep is now obsolete so the buildnow contains warnings that look like: egrep: warning: egrep is obsolescent; using grep -Efix this up by moving the related file to use "grep -E" instead. sed -i "s/egrep/grep -E/g" `grep egrep -rwl tools/testing/selftests/ftrace`Here are the steps to install the latest grep: wget http://ftp.gnu.org/gnu/grep/grep-3.8.tar.gz tar xf grep-3.8.tar.gz cd grep-3.8 && ./configure && make sudo make install export PATH=/usr/local/bin:$PATHSigned-off-by: Tiezhu Yang <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
show more ...
selftests/ftrace: Support ":tracer" suffix for requiresAdd ":tracer" suffix support for the requires list, so thatthe testcase can list up the required tracer (e.g. function)to the requires list.
selftests/ftrace: Support ":tracer" suffix for requiresAdd ":tracer" suffix support for the requires list, so thatthe testcase can list up the required tracer (e.g. function)to the requires list.For example, if the testcase requires function_graph tracer,it can write requires list as below instead of checkingavailable_tracers.# requires: function_graph:tracerSigned-off-by: Masami Hiramatsu <[email protected]>Reviewed-by: Tom Zanussi <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
selftests/ftrace: mark irqsoff_tracer.tc test as unresolved if the test module does not existThe UNRESOLVED state is much more apporiate than the UNSUPPORTED statefor the absence of the test modul
selftests/ftrace: mark irqsoff_tracer.tc test as unresolved if the test module does not existThe UNRESOLVED state is much more apporiate than the UNSUPPORTED statefor the absence of the test module, as it matches "test was set upincorrectly" situation in the README file.A possible scenario is that the function was enabled (supported by thekernel) but the module was not installed properly, in this case wecannot call this as UNSUPPORTED.This change also make it consistent with other module-related testsin ftrace.Signed-off-by: Po-Hsu Lin <[email protected]>Acked-by: Steven Rostedt (VMware) <[email protected]>Acked-by: Masami Hiramatsu <[email protected]>Signed-off-by: Shuah Khan <[email protected]>
kselftests: Add tests for the preemptoff and irqsoff tracersHere we add unit tests for the preemptoff and irqsoff tracer by using akernel module introduced previously to trigger long preempt or ir
kselftests: Add tests for the preemptoff and irqsoff tracersHere we add unit tests for the preemptoff and irqsoff tracer by using akernel module introduced previously to trigger long preempt or irqdisabled sections in the kernel.Link: http://lkml.kernel.org/r/[email protected]Reviewed-by: Masami Hiramatsu <[email protected]>Acked-by: Masami Hiramatsu <[email protected]>Signed-off-by: Joel Fernandes (Google) <[email protected]>Signed-off-by: Steven Rostedt (VMware) <[email protected]>