![]() |
|
|||
0001 #!/bin/bash 0002 # SPDX-License-Identifier: GPL-2.0+ 0003 # 0004 # Kernel-version-dependent shell functions for the rest of the scripts. 0005 # 0006 # Copyright (C) IBM Corporation, 2014 0007 # 0008 # Authors: Paul E. McKenney <paulmck@linux.ibm.com> 0009 0010 # locktorture_param_onoff bootparam-string config-file 0011 # 0012 # Adds onoff locktorture module parameters to kernels having it. 0013 locktorture_param_onoff () { 0014 if ! bootparam_hotplug_cpu "$1" && configfrag_hotplug_cpu "$2" 0015 then 0016 echo CPU-hotplug kernel, adding locktorture onoff. 1>&2 0017 echo locktorture.onoff_interval=3 locktorture.onoff_holdoff=30 0018 fi 0019 } 0020 0021 # per_version_boot_params bootparam-string config-file seconds 0022 # 0023 # Adds per-version torture-module parameters to kernels supporting them. 0024 per_version_boot_params () { 0025 echo $1 `locktorture_param_onoff "$1" "$2"` \ 0026 locktorture.stat_interval=15 \ 0027 locktorture.shutdown_secs=$3 \ 0028 locktorture.verbose=1 0029 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |