tools/testing/selftests/rseq/run_timeslice_test.sh

Source file repositories/reference/linux-study-clean/tools/testing/selftests/rseq/run_timeslice_test.sh

File Facts

System
Linux kernel
Corpus path
tools/testing/selftests/rseq/run_timeslice_test.sh
Extension
.sh
Size
347 bytes
Lines
15
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/bash
# SPDX-License-Identifier: GPL-2.0+

# Prevent GLIBC from registering RSEQ so the selftest can run in legacy
# and performance optimized mode.
GLIBC_TUNABLES="${GLIBC_TUNABLES:-}:glibc.pthread.rseq=0"
export GLIBC_TUNABLES

./check_optimized || {
    echo "Skipping optimized RSEQ mode test. Not supported";
    exit 0
}

./slice_test

Annotation

Implementation Notes