Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rasdaemon: add mc_event trigger #134

Closed
wants to merge 1 commit into from

Conversation

winterddd
Copy link

@winterddd winterddd commented Dec 14, 2023

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.

misc/mc_event_trigger Outdated Show resolved Hide resolved
@winterddd winterddd force-pushed the mc_trigger branch 3 times, most recently from a4c9676 to 93d2518 Compare February 26, 2024 08:42
@winterddd winterddd requested a review from mchehab May 7, 2024 08:31
@winterddd
Copy link
Author

Hi, mchehab:

I have changed the codes that you mentioned before, can you review them again and merge them?

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 <[email protected]>
@axiqia
Copy link

axiqia commented Jul 3, 2024

Hi, @mchehab, the requested changes is addressed, do you have any plan to merge this PR? Other user @PradipGaikwad also waits for this PR. Thank you.

@mchehab
Copy link
Owner

mchehab commented Jul 16, 2024

Merged, thanks!

I did some cleanups and added support for memory failure events, as it helped me testing the feature on ARM QEMU emulation.

@mchehab mchehab closed this Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants