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