]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests/ftrace: Fix ftrace test cases to check unsupported
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 26 Nov 2019 23:42:21 +0000 (08:42 +0900)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commitde8ce5180d57d82025d8e459db366f96e62a7219
tree1eb876b52e671484ef9136c305ef388b35b05e28
parenta1ead735176f38bd830ebebf91625f021849ee55
selftests/ftrace: Fix ftrace test cases to check unsupported

BugLink: https://bugs.launchpad.net/bugs/1861929
[ Upstream commit 25deae098e748d8d36bc35129a66734b8f6925c9 ]

Since dynamic function tracer can be disabled, set_ftrace_filter
can be disappeared. Test cases which depends on it, must check
whether the set_ftrace_filter exists or not before testing
and if not, return as unsupported.

Also, if the function tracer itself is disabled, we can not
set "function" to current_tracer. Test cases must check it
before testing, and return as unsupported.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
tools/testing/selftests/ftrace/test.d/ftrace/func-filter-stacktrace.tc
tools/testing/selftests/ftrace/test.d/ftrace/func_cpumask.tc