diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2013-01-16 09:23:32 +0800 |
---|---|---|
committer | Chen Gong <gong.chen@linux.intel.com> | 2013-01-18 08:36:07 -0500 |
commit | c937c1eb17b17894e163d4b8deaae4851b6b2b2d (patch) | |
tree | a1d12cd581ba42dba85f8257089b3b57503e1844 | |
parent | 7bf774a6d1a75f7b2cec7d54644375ced8a4b653 (diff) | |
download | mce-test-c937c1eb17b17894e163d4b8deaae4851b6b2b2d.tar.gz |
Mount hugetlbfs for hwposion-hard test
anonymous hugepage, file backed hugepage and shared memory hugepage
need a mounted hugetlbfs.
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Signed-off-by: Chen Gong <gong.chen@linux.intel.com>
-rwxr-xr-x | cases/function/hwpoison/run_hard.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cases/function/hwpoison/run_hard.sh b/cases/function/hwpoison/run_hard.sh index 017d387..8bc0803 100755 --- a/cases/function/hwpoison/run_hard.sh +++ b/cases/function/hwpoison/run_hard.sh @@ -14,6 +14,11 @@ EOF echo 0 > $TMP_DIR/error.$$ pushd `dirname $0` > /dev/null + +HT=$TMP_DIR/hugepage +mkdir -p $HT +mount -t hugetlbfs none $HT + ./tinjpage ./tsimpleinj if ! ./tkillpoison @@ -25,6 +30,7 @@ else fi ./tprctl +umount $HT popd > /dev/null grep -q "1" $TMP_DIR/error.$$ |