diff options
author | Lans Zhang <jia.zhang@windriver.com> | 2013-01-16 09:23:32 +0800 |
---|---|---|
committer | Chen, Gong <gong.chen@linux.intel.com> | 2015-01-21 21:24:00 -0500 |
commit | 5b46f71f60dbeff90188d6bb146feede41d679f2 (patch) | |
tree | a1d12cd581ba42dba85f8257089b3b57503e1844 | |
parent | 1e6a44dcc84ea42f88aa49a771869d75803b4b29 (diff) | |
download | mce-test-5b46f71f60dbeff90188d6bb146feede41d679f2.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.$$ |