selftests/ftrace: Reset ftrace filter on older kernel
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 23 May 2017 06:06:53 +0000 (15:06 +0900)
committerShuah Khan <shuahkh@osg.samsung.com>
Wed, 7 Jun 2017 16:59:51 +0000 (10:59 -0600)
commitd7b91c0b1c7f40241d8d47f0a2a0d616a1127635
tree73568899cc6d314793f77fd018f32d136d6be051
parentc3ca46ef719580eb01994fc6032db470fde92d85
selftests/ftrace: Reset ftrace filter on older kernel

Since older kernel didn't support separated instance of
set_ftrace_filter, if the test case set the filter in
an instance, it will propagate to top-level instance.
This means that the filter setting remains even if we
remove the instance, and will cause other tests failure.
To avoid this issue, reset the ftrace filter if we
detect the propagation.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/ftrace/test.d/instances/instance-event.tc