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: Masami Hiramatsu <mhiramat@kernel.org> Reviewed-by: Tom Zanussi <zanussi@kernel.org> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
16 lines
404 B
Bash
16 lines
404 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# description: trace_pipe and trace_marker
|
|
# requires: trace_marker
|
|
# flags: instance
|
|
|
|
echo "test input 1" > trace_marker
|
|
|
|
: "trace interface never consume the ring buffer"
|
|
grep -q "test input 1" trace
|
|
grep -q "test input 1" trace
|
|
|
|
: "trace interface never consume the ring buffer"
|
|
head -n 1 trace_pipe | grep -q "test input 1"
|
|
! grep -q "test input 1" trace
|