Use a saner variant for computing the number of groups in cpuctl tests
[ltp-debian.git] / testscripts / load_stress_all_kernel_modules.sh
blobdc5d38b869aea84abe4a3b3df8d8309713bc42c3
1 #!/bin/sh
2 ################################################################################
3 ## ##
4 ## Copyright (c) International Business Machines Corp., 2009 ##
5 ## ##
6 ## This program is free software; you can redistribute it and#or modify ##
7 ## it under the terms of the GNU General Public License as published by ##
8 ## the Free Software Foundation; either version 2 of the License, or ##
9 ## (at your option) any later version. ##
10 ## ##
11 ## This program is distributed in the hope that it will be useful, but ##
12 ## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
13 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
14 ## for more details. ##
15 ## ##
16 ## You should have received a copy of the GNU General Public License ##
17 ## along with this program; if not, write to the Free Software ##
18 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ##
19 ## ##
20 ################################################################################
21 # ##
22 # File : load_stress_all_kernel_modules.sh ##
23 # ##
24 # Description: Try to load all the modules present in the system, installed ##
25 # both during Distro installation, or, custom kernel build. ##
26 # ##
27 # Author: Subrata Modak <subrata@linux.vnet.ibm.com> ##
28 ################################################################################
30 for module in `modprobe -l | tr '\n' ' '`
32 insert_module=`basename $module .ko`
33 modprobe -v $insert_module
34 done