ftrace/selftests: workaround cgroup RT scheduling issues
authorAlan Maguire <alan.maguire@oracle.com>
Wed, 19 Feb 2020 09:33:29 +0000 (09:33 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 1 May 2020 15:25:39 +0000 (09:25 -0600)
commit57c4cfd4a2eef8f94052bd7c0fce0981f74fb213
tree48fe2e8679bb819f8e7b0538c1a59e1c335a5dee
parentf0c0d0cf590f71b2213b29a7ded2cde3d0a1a0ba
ftrace/selftests: workaround cgroup RT scheduling issues

wakeup_rt.tc and wakeup.tc tests in tracers/ subdirectory
fail due to the chrt command returning:

 chrt: failed to set pid 0's policy: Operation not permitted.

To work around this, temporarily disable grout RT scheduling
during ftracetest execution.  Restore original value on
test run completion.  With these changes in place, both
tests consistently pass.

Fixes: c575dea2c1a5 ("selftests/ftrace: Add wakeup_rt tracer testcase")
Fixes: c1edd060b413 ("selftests/ftrace: Add wakeup tracer testcase")
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/ftracetest