]> www.infradead.org Git - users/willy/linux.git/commit
selftests/ftrace: Add "requires:" list support
authorMasami Hiramatsu <mhiramat@kernel.org>
Wed, 3 Jun 2020 02:40:28 +0000 (11:40 +0900)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 16 Jun 2020 15:19:08 +0000 (09:19 -0600)
commitfa33e6236f5fa425a3ccf8925010d51fae9f0929
tree4376287e8f8f32f18b071db2e7463aef2929ab85
parent1e11b7dbef17bb6315f08771a64d86ab20fc037b
selftests/ftrace: Add "requires:" list support

Introduce "requires:" list to check required ftrace interface
for each test. This will simplify the interface checking code
and unify the error message. Another good point is, it can
skip the ftrace initializing.

Note that this requires list must be written as a shell
comment.

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: Tom Zanussi <zanussi@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/ftrace/ftracetest
tools/testing/selftests/ftrace/test.d/functions
tools/testing/selftests/ftrace/test.d/template