Skip to content
Snippets Groups Projects
Commit 5a80bd07 authored by Hengqi Chen's avatar Hengqi Chen Committed by Jens Axboe
Browse files

block: introduce block_io_start/block_io_done tracepoints

Currently, several BCC ([0]) tools (biosnoop/biostacks/biotop) use
kprobes to blk_account_io_start/blk_account_io_done to implement
their functionalities. This is fragile because the target kernel
functions may be renamed ([1]) or inlined ([2]). So introduce two
new tracepoints for such use cases.

  [0]: https://github.com/iovisor/bcc
  [1]: https://github.com/iovisor/bcc/issues/3954
  [2]: https://github.com/iovisor/bcc/issues/4261



Tested-by: default avatarFrancis Laniel <flaniel@linux.microsoft.com>
Signed-off-by: default avatarHengqi Chen <hengqi.chen@gmail.com>
Tested-by: default avatarYonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230520084057.1467003-1-hengqi.chen@gmail.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a13bd91b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment