tools: fix cachestat.py with 5.15 kernel
authorYonghong Song <yhs@fb.com>
Mon, 8 Nov 2021 19:12:37 +0000 (11:12 -0800)
committeryonghong-song <ys114321@gmail.com>
Thu, 11 Nov 2021 01:24:02 +0000 (17:24 -0800)
commit61087b961716ad96d1d7d9711a53202b9e88b990
tree4fcc982f727aaf8a70b48aa2940c3b9c740a17bb
parent4d08181d194bc2961f5d3e599f6db5d870648d15
tools: fix cachestat.py with 5.15 kernel

Fix issue #3687.
The tool cachestat.py doesn't work with 5.15 kernel due to
kprobe function renaming. Adapt to the new function.
Also added a comment that static functions might
get inlined and the result may not be accurate if this happens.
More work can be done in the future to make the tool
more robust.

Signed-off-by: Yonghong Song <yhs@fb.com>
tools/cachestat.py