summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/ftrace/test.d/00basic/trace_pipe.tc
blob: 5058fbcfd90fc0523a30416c08b63bf56d5577a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# description: trace_pipe and trace_marker
# flags: instance

[ ! -f trace_marker ] && exit_unsupported

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