Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
biolatpcts: Use block_rq_complete TP instead of kprobing blk_account_…
…io_done() Depending on the inlining decisions made by the compiler, neither blk_account_io_done() or __blk_account_io_done() may be kprobable. For example, when llvm decides to inline the latter into the former but not ignore the inline directive on the former, the underscored one doesn't exist and the one without can't be kprobed because it doesn't have the fentry call. Side step the whole thing by attaching to the block_rq_complete tracepoint. There's a slight disadvantage - it now needs its own bpf_ktime_get_ns() call. It will add some overhead on really high ops devices but it is what it is. Signed-off-by: Tejun Heo <[email protected]>
- Loading branch information