Commit 3591e90f authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Shuah Khan
Browse files

selftests/ftrace: Convert required interface checks into requires list



Convert the required tracefs interface checking code with
requires: list.

Fixed merge conflicts in trigger-hist.tc and trigger-trace-marker-hist.tc
Shuah Khan <skhan@linuxfoundation.org>

Signed-off-by: default avatarMasami Hiramatsu <mhiramat@kernel.org>
Reviewed-by: default avatarTom Zanussi <zanussi@kernel.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent fa33e623
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
#!/bin/sh
# description: Snapshot and tracing setting
# requires: snapshot
# flags: instance

[ ! -f snapshot ] && exit_unsupported

echo "Set tracing off"
echo 0 > tracing_on

+1 −2
Original line number Diff line number Diff line
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: trace_pipe and trace_marker
# requires: trace_marker
# flags: instance

[ ! -f trace_marker ] && exit_unsupported

echo "test input 1" > trace_marker

: "trace interface never consume the ring buffer"
+1 −5
Original line number Diff line number Diff line
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Test ftrace direct functions against kprobes
# requires: kprobe_events

rmmod ftrace-direct ||:
if ! modprobe ftrace-direct ; then
@@ -8,11 +9,6 @@ if ! modprobe ftrace-direct ; then
  exit_unresolved;
fi

if [ ! -f kprobe_events ]; then
	echo "No kprobe_events file -please build CONFIG_KPROBE_EVENTS"
	exit_unsupported;
fi

echo "Let the module run a little"
sleep 1

+1 −2
Original line number Diff line number Diff line
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Generic dynamic event - add/remove kprobe events

[ -f dynamic_events ] || exit_unsupported
# requires: dynamic_events

grep -q "place: \[<module>:\]<symbol>" README || exit_unsupported
grep -q "place (kretprobe): \[<module>:\]<symbol>" README || exit_unsupported
+1 −2
Original line number Diff line number Diff line
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: Generic dynamic event - add/remove synthetic events

[ -f dynamic_events ] || exit_unsupported
# requires: dynamic_events

grep -q "s:\[synthetic/\]" README || exit_unsupported

Loading