]> www.infradead.org Git - users/mchehab/rasdaemon.git/commit
The rasdaemon service may fail to be started for the first time.
authorzhuofeng <zhuofeng2@huawei.com>
Sat, 29 Jun 2024 09:27:56 +0000 (17:27 +0800)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Mon, 18 Nov 2024 13:51:48 +0000 (14:51 +0100)
commitd22ed5ef1880f81cafe0b18fe4c121da4ea4950f
tree424f71f129202a92d794ad806586496aa12f6bbe
parent7575b78d3ca7ea53c41ba34d168e43e13da6652e
The rasdaemon service may fail to be started for the first time.

The rasdaemon creates a separate instance virtual directory on first startup, like `/sys/kernel/debug/tracing/instances/rasdaemon`.

After the directory is created, the kernel generates virtual files such as `trace_clock` and `set_event` in `/sys/kernel/debug/tracing/instances/rasdaemon`.

The kernel generates virtual files and the rasdaemon accesses the virtual files at the same time. Therefore, the kernel may not generate the virtual files when the rasdaemon accesses the virtual files.

So add up to 30 seconds to give the kernel enough time to generate the files.

Signed-off-by: zhuofeng <zhuofeng2@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
ras-events.c