brintos

brintos / linux-shallow public Read only

0
0
Text · 860 B · 7637f68 Raw
31 lines · bash
1#!/bin/bash2# SPDX-License-Identifier: GPL-2.0+3#4# Torture-suite-dependent shell functions for the rest of the scripts.5#6# Copyright (C) Facebook, 20207#8# Authors: Paul E. McKenney <paulmck@kernel.org>9 10# scftorture_param_onoff bootparam-string config-file11#12# Adds onoff scftorture module parameters to kernels having it.13scftorture_param_onoff () {14	if ! bootparam_hotplug_cpu "$1" && configfrag_hotplug_cpu "$2"15	then16		echo CPU-hotplug kernel, adding scftorture onoff. 1>&217		echo scftorture.onoff_interval=1000 scftorture.onoff_holdoff=3018	fi19}20 21# per_version_boot_params bootparam-string config-file seconds22#23# Adds per-version torture-module parameters to kernels supporting them.24per_version_boot_params () {25	echo	`scftorture_param_onoff "$1" "$2"` \26		scftorture.stat_interval=15 \27		scftorture.shutdown_secs=$3 \28		scftorture.verbose=1 \29		$130}31