xref: /linux/tools/testing/selftests/rseq/run_timeslice_test.sh (revision 7f0023215262221ca08d56be2203e8a4770be033)
1#!/bin/bash
2# SPDX-License-Identifier: GPL-2.0+
3
4# Prevent GLIBC from registering RSEQ so the selftest can run in legacy
5# and performance optimized mode.
6GLIBC_TUNABLES="${GLIBC_TUNABLES:-}:glibc.pthread.rseq=0"
7export GLIBC_TUNABLES
8
9./check_optimized || {
10    echo "Skipping optimized RSEQ mode test. Not supported";
11    exit 0
12}
13
14./slice_test
15