retis-org / retis

Tracing packets in the Linux networking stack & friends
https://retis.readthedocs.io/en/stable/
100 stars 14 forks source link

Collector: allow wildcards in user defined probes (for kprobes) #119

Closed atenart closed 1 year ago

atenart commented 1 year ago

This PR allows to do things like retis collect -p tcp_*. One thing to notice is the test_data files should always be updated at once as there are multiple inter-dependencies.

Only kprobes are supported as it is the only probe type loading once for all probes. Other probe types could be supported but that should be done with extra care and would probably fail in many cases with errors like "too many opened files".

Based on #102 .

atenart commented 1 year ago

Rebased to fix a merge conflict.