[PATCH] x86-64: Allow to run a program when a machine check event is detected
authorAndi Kleen <ak@suse.de>
Tue, 13 Feb 2007 12:26:23 +0000 (13:26 +0100)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 13 Feb 2007 12:26:23 +0000 (13:26 +0100)
commita98f0dd34d94ea0b5f3816196bea5dba467827bb
tree019235e4d668b95366dd98dc6474716139c1584b
parent24ce0e96f2dea558762c994d054ea2f3c01fa95a
[PATCH] x86-64: Allow to run a program when a machine check event is detected

When a machine check event is detected (including a AMD RevF threshold
overflow event) allow to run a "trigger" program. This allows user space
to react to such events sooner.

The trigger is configured using a new trigger entry in the
machinecheck sysfs interface. It is currently shared between
all CPUs.

I also fixed the AMD threshold handler to run the machine
check polling code immediately to actually log any events
that might have caused the threshold interrupt.

Also added some documentation for the mce sysfs interface.

Signed-off-by: Andi Kleen <ak@suse.de>
Documentation/x86_64/machinecheck [new file with mode: 0644]
arch/x86_64/kernel/mce.c
arch/x86_64/kernel/mce_amd.c
include/asm-x86_64/mce.h
kernel/kmod.c