]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests/ftrace: Test toplevel-enable for instance
authorZheng Yejian <zhengyejian1@huawei.com>
Tue, 9 May 2023 20:36:59 +0000 (04:36 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 31 Dec 2025 19:46:12 +0000 (12:46 -0700)
commit0eccd4acd6bdcd25fef5507e002b69aed70b47ed
tree5fa6529ef89f45cbe5f3534c55c5cb3be9b5dd87
parentb889b4fb4cbea3ca7eb9814075d6a51936394bd9
selftests/ftrace: Test toplevel-enable for instance

'available_events' is actually not required by
'test.d/event/toplevel-enable.tc' and its Existence has been tested in
'test.d/00basic/basic4.tc'.

So the require of 'available_events' can be dropped and then we can add
'instance' flag to test 'test.d/event/toplevel-enable.tc' for instance.

Test result show as below:
 # ./ftracetest test.d/event/toplevel-enable.tc
 === Ftrace unit tests ===
 [1] event tracing - enable/disable with top level files [PASS]
 [2] (instance)  event tracing - enable/disable with top level files [PASS]

 # of passed:  2
 # of failed:  0
 # of unresolved:  0
 # of untested:  0
 # of unsupported:  0
 # of xfailed:  0
 # of undefined(test bug):  0

Link: https://lore.kernel.org/r/20230509203659.1173917-1-zhengyejian1@huawei.com
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/test.d/event/toplevel-enable.tc