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 <yangtiezhu@loongson.cn>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
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 <mhiramat@kernel.org>Reviewed-by: Tom Zanussi <zanussi@kernel.org>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
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 <po-hsu.lin@canonical.com>Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>Acked-by: Masami Hiramatsu <mhiramat@kernel.org>Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
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/20180711063540.91101-3-joel@joelfernandes.orgReviewed-by: Masami Hiramatsu <mhiramat@kernel.org>Acked-by: Masami Hiramatsu <mhiramat@kernel.org>Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>