sudo modprobe -v einj
hpa=$1
echo "injecting an error at hpa=$hpa"

echo $hpa  | sudo tee -a /sys/kernel/debug/apei/einj/param1
echo 0xfffffffffffff000 | sudo tee -a  /sys/kernel/debug/apei/einj/param2
echo 0x0 | sudo tee -a  /sys/kernel/debug/apei/einj/flags
echo 0x10 | sudo tee -a  /sys/kernel/debug/apei/einj/error_type
echo 1 | sudo tee -a  /sys/kernel/debug/apei/einj/notrigger
echo 1 | sudo tee -a  /sys/kernel/debug/apei/einj/error_inject
