LKM: Last block written to device

∥☆過路亽.° 提交于 2019-12-06 06:38:46

The Linux kernel provides several different tracing toolkits; the blktrace tools were designed specifically for block devices. The blkparse(1) tool will parse the output of the blktrace(8) utility. (At least Ubuntu has these packaged in the blktrace package; I expect other distributions to be similar.) The bklparse(1) tool can give you the sector information.

Documentation/trace/events.txt describes another tracing mechanism -- one that could allow you to follow the block:block_bio_complete event, which includes the sector information. This won't require installing the bkltrace toolkit but I'll (sheepishly) admit that I don't know where to read the trace log.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!