tools/testing/selftests/ftrace/test.d/00basic/trace_pipe.tc

Source file repositories/reference/linux-study-clean/tools/testing/selftests/ftrace/test.d/00basic/trace_pipe.tc

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/ftrace/test.d/00basic/trace_pipe.tc
Extension
.tc
Size
404 bytes
Lines
16
Domain
Support Tooling And Documentation
Bucket
tools
Inferred role
Support Tooling And Documentation: tools
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

#!/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

Annotation

Implementation Notes