ureadahead:跟踪时出错。可能是内核补丁问题?

ureadahead:跟踪时出错。可能是内核补丁问题?

ureadahead在命令行中运行会导致此错误:

#/usr/sbin/ureadahead
ureadahead: Error while tracing: No such file or directory

我从 strace 收到以下消息

open("/var/lib/ureadahead/pack", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/sys/kernel/debug/tracing", O_RDONLY|O_LARGEFILE|O_NOATIME) = 3
openat(3, "events/fs/do_sys_open/enable", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)
close(3)                                = 0
write(2, "ureadahead: Error while tracing:"..., 59ureadahead: Errorwhile tracing: No such file or directory
) = 59
exit_group(5)                           = ?
+++ exited with 5 +++

这条线有吗

openat(3, "events/fs/do_sys_open/enable", O_RDWR|O_LARGEFILE) = -1 ENOENT (No such file or directory)

意味着内核没有正确修补?应该先给内核打补丁吗?

答案1

是的,该错误意味着您需要应用适当的修补到你的内核;该补丁增加了跟踪某些文件系统事件的能力,并公开内核/sys/kernel/debug/tracing/events目录中的文件。

相关内容