iovisor / bcc

BCC - Tools for BPF-based Linux IO analysis, networking, monitoring, and more
Apache License 2.0
20.36k stars 3.86k forks source link

libbpf-tools: add CO-RE 'syncsnoop' #4905

Closed myhro closed 5 months ago

myhro commented 7 months ago

This is a CO-RE port of the Brendan Gregg's syncsnoop BCC Python tool. The code is heavily inspired by the runqslower port, with variables naming and comments style borrowed from other CO-RE tools.

I tried to make it look like existing tools as much as possible, but if there's anything missing please let me know.

myhro commented 7 months ago

@yonghong-song Hi. Would you have time to review this PR?

Or maybe @anakryiko, given that I followed the BCC to libbpf conversion guide?

myhro commented 5 months ago

Hi @chenhengqi. Thanks for reviewing the PR. I've applied the request changes and rebased it.

Can you please take a look again?