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