aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Gong <gong.chen@linux.intel.com>2009-12-18 08:58:14 +0800
committerAndi Kleen <ak@linux.intel.com>2009-12-18 02:06:16 +0100
commitc65ef7d07f95bc23a7ebb62f9e2a4d0da053127c (patch)
tree960c067a252e004dc0402e09dda47b2a759f6f2e
parent7584278019e3d9183c02b9f8e9ea9447af9cc89d (diff)
downloadmce-test-c65ef7d07f95bc23a7ebb62f9e2a4d0da053127c.tar.gz
The position of APEI_IF is not a const anymore
update definiton of APEI_IF. Now it can be located anywhere. Signed-off-by: Chen Gong <gong.chen@linux.intel.com> Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r--lib/apei-inject.sh3
-rw-r--r--lib/dirs.sh1
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/apei-inject.sh b/lib/apei-inject.sh
index bbea328..99549b9 100644
--- a/lib/apei-inject.sh
+++ b/lib/apei-inject.sh
@@ -14,7 +14,7 @@ if [ -n "$this_case" ]; then
fi
mcelog_result=$RDIR/$this_case/mcelog
klog=$RDIR/$this_case/klog
-
+APEI_IF=`mount | grep debugfs | cut -d ' ' -f3`/apei/einj
apei_mce_reformat()
{
@@ -84,6 +84,7 @@ apei_inject_enumerate()
apei_inject_trigger()
{
+ check_debugfs
mcelog &> /dev/null
TYPE=`awk '/^TYPE/{print $2}' $SDIR/data/$bcase`
echo $TYPE > $APEI_IF/error_type
diff --git a/lib/dirs.sh b/lib/dirs.sh
index ee14aa2..9ca42b2 100644
--- a/lib/dirs.sh
+++ b/lib/dirs.sh
@@ -12,7 +12,6 @@ RCONF_DIR=config
RRDIR=results
RWDIR=work
RLDIR=lib
-APEI_IF=/debug/apei/einj
SDIR=$(script_dir)
CDIR=$ROOT/cases