Open chenhengqi opened 3 years ago
BCC tool cachetop has the same problem.
Maybe this problem date back to kernel v5.14 with https://github.com/torvalds/linux/commit/6e1cae881a0646f31fe2bda90297d820da1137eb .
Thanks @chenhengqi I will take a look at this soon to see whether we can make a compatible change without changing tool's functionality.
I guess this issue is fixed by https://github.com/iovisor/bcc/pull/3747 & https://github.com/iovisor/bcc/pull/3692 and can be closed?
The BCC tool and libbpf-tool cachestat are broken on latest kernel. Kernel commit 203a31516616 ("mm/writeback: Add __folio_mark_dirty()") converted
account_page_dirtied
tofolio_account_dirtied
, so the attach target of these tools disppeared, making them broken.