Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

myhro
Copy link
Contributor

@myhro myhro commented Apr 15, 2024

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:

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:

* TODO:
* - support uprobes on libraries without -p PID. (parse ld.so.cache)
* - support regexp pattern matching and per-function histograms

In this first form it adds an append-only vector-like array to store
strings.
This will serve as a basis to create a C implementation of a
functionality similar to what 'b.attach_kprobe(event_re=...)' offers in
Python.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant