]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
rasdaemon: add mc_event trigger
authorRuidong Tian <tianruidong@linux.alibaba.com>
Thu, 23 Nov 2023 09:47:25 +0000 (17:47 +0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 15 Jul 2024 11:17:59 +0000 (13:17 +0200)
commit7e6403c041205f0226ab6c76515c23ff43c85063
tree2134a896cbea95a7cf9052e637d9cde7bb9e3b9a
parent8e9ab68aab25217d3ec3737de29ea9a3479c6b67
rasdaemon: add mc_event trigger

Allow users to run a trigger when RAS mc_event occurs, The mc_event
trigger is separated into CE trigger and UE trigger, this is because
CE is more frequent than UE, and the CE trigger will lead to more
performance hits. Users can choose different triggers for CE/UE to
reduce this effect.

Users can config trigger in /etc/sysconfig/rasdaemon:

    TRIGGER_DIR: The trigger diretory
    MC_CE_TRIGGER: The script executed when corrected error occurs.
    MC_UE_TRIGGER: The script executed when uncorrected error occurs.

No script will be executed if MC_CE_TRIGGER/MC_UE_TRIGGER is null.

Signed-off-by: Ruidong Tian <tianruidong@linux.alibaba.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Makefile.am
contrib/mc_event_trigger [new file with mode: 0755]
misc/rasdaemon.env
ras-events.c
ras-mc-handler.c
ras-mc-handler.h
trigger.c [new file with mode: 0644]
trigger.h [new file with mode: 0644]