subrata_modak | fb298ea | 2009-03-16 08:46:57 +0000 | [diff] [blame] | 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 ## |
Wanlong Gao | 4548c6c | 2012-10-19 18:03:36 +0800 | [diff] [blame] | 18 | ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## |
subrata_modak | fb298ea | 2009-03-16 08:46:57 +0000 | [diff] [blame] | 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 | ################################################################################ |
| 29 | |
| 30 | for module in `modprobe -l | tr '\n' ' '` |
| 31 | do |
| 32 | insert_module=`basename $module .ko` |
| 33 | modprobe -v $insert_module |
| 34 | done |
| 35 | |