Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
- Loading branch information