bcc icon indicating copy to clipboard operation
bcc copied to clipboard

libbpf-tools: add string helpers, filter ksyms by regex

Open myhro opened this issue 10 months ago • 0 comments

The goal is offer the basis of what is required, in terms of regex handling, to implement the C equivalent of what b.attach_kprobe(event_re=...) does in Python. The first client that will be making use of it is a CO-RE port of vfscount:

  • https://github.com/iovisor/bcc/pull/4965

This could also be useful to, for instance, add regex support to the libbpf-tools/funclatency tool which is currently lacking this feature when compared to the Python version:

https://github.com/iovisor/bcc/blob/c0e9b562675bcd18eff9443af4e0d2cc55e38738/libbpf-tools/funclatency.c#L7-L9

myhro avatar Apr 15 '24 16:04 myhro