forked from Minki/linux
ea149b36c7
Allow user programs to write mce records into /dev/mcelog. When they do that a fake machine check is triggered to test the machine check code. This uses the MCE MSR wrappers added earlier. The implementation is straight forward. There is a struct mce record per CPU and the MCE MSR accesses get data from there if there is valid data injected there. This allows to test the machine check code relatively realistically because only the lowest layer of hardware access is intercepted. The test suite and injector are available at git://git.kernel.org/pub/scm/utils/cpu/mce/mce-test.git git://git.kernel.org/pub/scm/utils/cpu/mce/mce-inject.git Signed-off-by: Andi Kleen <ak@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com>
11 lines
410 B
Makefile
11 lines
410 B
Makefile
obj-y = mce.o therm_throt.o
|
|
|
|
obj-$(CONFIG_X86_OLD_MCE) += k7.o p4.o p6.o
|
|
obj-$(CONFIG_X86_ANCIENT_MCE) += winchip.o p5.o
|
|
obj-$(CONFIG_X86_MCE_P4THERMAL) += mce_intel.o
|
|
obj-$(CONFIG_X86_MCE_INTEL) += mce_intel_64.o mce_intel.o
|
|
obj-$(CONFIG_X86_MCE_AMD) += mce_amd_64.o
|
|
obj-$(CONFIG_X86_MCE_NONFATAL) += non-fatal.o
|
|
obj-$(CONFIG_X86_MCE_THRESHOLD) += threshold.o
|
|
obj-$(CONFIG_X86_MCE_INJECT) += mce-inject.o
|