Hi Huang Ying, On Wed, 2009-08-05 at 16:25 +0530, Subrata Modak wrote: > Hi Huang Ying, > > >On Tue, 2009-06-30 at 10:56 +0800, Huang Ying wrote: > >Hi, All, > > > > We are working on a test suite to test the Linux kernel MCE handling > > logic named mce-test, which can be find at: > > git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git. There is a > > HOWTO for it, which is attached with the mail. > > > > We think the testing target of mce-test is part of that of LTP, so it is > > better to integrate mce-test into LTP. Do you think so? > > > > As for integration scheme, maybe we can first add mce-test into LTP as a > > separate test case, just as kdump test case. What's your opinions? > > > > Any comment is welcome! > > > > Sorry for the very late response to your proposal. Please find below the > first patch which will integrate the existing mce-test to LTP. I had just > done a sanity checking of building it. The following patch will still need: > > 1) Exclusive testing and sharing those results with the LTP community,
My initial first tests results are:
# uname -a
Linux x206f 2.6.29-gcov #1 SMP Fri Jun 19 12:14:27 IST 2009 i686 i686
i386 GNU/Linux
# grep -i mce ../../kernels/linux-2.6.29/.config
CONFIG_X86_MCE=y
# CONFIG_X86_MCE_NONFATAL is not set
CONFIG_X86_MCE_P4THERMAL=y
# which gcov
/usr/bin/gcov
# grep -i cov ../../kernels/linux-2.6.29/.config
# Linux kernel version: 2.6.29-gcov
# GCOV coverage profiling
CONFIG_GCOV_PROFILE=y
CONFIG_GCOV_ALL=y
CONFIG_GCOV_PROC=m
CONFIG_GCOV_HAMMER=y
# which mcelog
/usr/sbin/mcelog
# which mce-inject
/usr/sbin/mce-inject
# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 4
cpu MHz : 2800.490
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 0
initial apicid : 0
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr
bogomips : 5600.98
clflush size : 64
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 3
model name : Intel(R) Pentium(R) 4 CPU 2.80GHz
stepping : 4
cpu MHz : 2800.490
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 1
apicid : 1
initial apicid : 1
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 5
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
constant_tsc pebs bts pni dtes64 monitor ds_cpl cid xtpr
bogomips : 5600.04
clflush size : 64
power management:
# vi Makefile
test-simple:
$(MAKE) reset
#./drivers/simple/driver.sh simple.conf
./drivers/simple/driver.sh simple_non_panic.conf
# make test-simple
make reset
make[1]: Entering directory `/root/subrata/ltp/mce-test'
rm -rf work/*
rm -rf results/*
make[1]: Leaving directory `/root/subrata/ltp/mce-test'
#./drivers/simple/driver.sh simple.conf
./drivers/simple/driver.sh simple_non_panic.conf
gcov is not supported by kernel, or there is no gcov utility installed,
disable gcov support.
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
soft-inj/non-panic/corrected:
Failed: can not get mce log from /dev/mcelog
Failed: MCE log is different from input
Passed: No kernel warning or bug
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
soft-inj/non-panic/corrected_hold:
Failed: can not get mce log from /dev/mcelog
Failed: MCE log is different from input
Passed: No kernel warning or bug
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
soft-inj/non-panic/corrected_no_en:
Failed: can not get mce log from /dev/mcelog
Failed: MCE log is different from input
Passed: No kernel warning or bug
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
soft-inj/non-panic/corrected_over:
Failed: can not get mce log from /dev/mcelog
Failed: MCE log is different from input
Passed: No kernel warning or bug
/root/subrata/ltp/mce-test/lib/mce.sh: line
304: /sys/devices/system/machinecheck/machinecheck0/fake_panic: No such
file or directory
Please also find the results attached.
Some inconsistencies:
1) GCOV is already built in the booted kernel, still the error message,
2) Absence of /sys/devices/system/machinecheck/ though the
kernel .config suggests that:
CONFIG_X86_MCE=y
# CONFIG_X86_MCE_NONFATAL is not set
CONFIG_X86_MCE_P4THERMAL=y
Is there something i am missing in the setup ?
Regards--
Subrata
> 2) Comments for and rewriting of this patch for coding styles,
> 3) Sign off from Huang Ying <[email protected]>, or, the concerned Authors,
>
> Patch-created-for-ltp-integration-by: Subrata
> Modak<[email protected]>
> Signed-off-by-is-still-required-from: Huang Ying <[email protected]>
> ---
> ---
> Regards--
> Subrata
>
> >
> > Best Regards,
> > Huang Ying
results.tgz
Description: application/compressed-tar
------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
