无法使用 blktrace

无法使用 blktrace

尝试运行以下命令:blktrace -d /dev/sda -o -|blkparse -i - 出现以下错误:

BLKTRACESETUP(2) /dev/sda failed: 25/Inappropriate ioctl for device
Thread 0 failed open /sys/kernel/debug/block/(null)/trace0: 2/No such file or directory
Thread 1 failed open /sys/kernel/debug/block/(null)/trace1: 2/No such file or directory
FAILED to start thread on CPU 0: 1/Operation not permitted
FAILED to start thread on CPU 1: 1/Operation not permitted

已经启用'CONFIG_BLK_DEV_IO_TRACE=y'了。这个错误的原因是什么,如何解决,任何输入都会有帮助。

相关内容