]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
Add dynamic switch of ras events support.
authorcaixiaomeng 00662745 <caixiaomeng2@huawei.com>
Wed, 29 Nov 2023 06:31:46 +0000 (14:31 +0800)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 22 Jan 2024 05:55:05 +0000 (06:55 +0100)
commit3e9a59a184ca9ae3d360465853893539d71abbbf
treeff9d00af955a43bd4564e6af5fdee53994c3282b
parent83a3ced797256dcb1c93f8de4266fd7545fbfb3b
Add dynamic switch of ras events support.

Rasdaemon does not support a way to disable some events by config.
If user want to disable specified event(eg:block_rq_complete), he
should recompile rasdaemon, which is not so convenient.

This patch add dynamic switch of ras event support.You can add
events you want to disabled in /etc/sysconfig/rasdaemon.For example,
`DISABLE="ras:mc_event,block:block_rq_complete"`.Then restart
rasdaemon, these two events will be disabled without recompilation.

[mchehab: make is_disabled_event() static]
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
ras-events.c
rasdaemon.c