tools: Fix BCC bio tools with recent kernel change
authorHengqi Chen <chenhengqi@outlook.com>
Sat, 11 Dec 2021 09:36:17 +0000 (17:36 +0800)
committerHengqi Chen <chenhengqi@outlook.com>
Sat, 11 Dec 2021 09:36:17 +0000 (17:36 +0800)
commit8c80b29f41daec48ff422a4c14d018211abc1e22
treec573c1afde1c3891da3f9d7d04eb8e4b6be668ba
parentf32f772f684a5382fe7a0ceac10f7cea047dce10
tools: Fix BCC bio tools with recent kernel change

Several BCC bio tools are broken due to kernel change ([0]).
blk_account_io_{start, done} were renamed to __blk_account_io_{start, done},
and the symbols gone from /proc/kallsyms. Fix them by checking symbol existence.

  [0]: https://github.com/torvalds/linux/commit/be6bfe36db1795babe9d92178a47b2e02193cb0f

Signed-off-by: Hengqi Chen <chenhengqi@outlook.com>
tools/biolatency.py
tools/biolatpcts.py
tools/biosnoop.py
tools/biotop.py