anakryiko / retsnoop

Investigate kernel error call stacks
BSD 2-Clause "Simplified" License
209 stars 34 forks source link

retsnoop: whether it's possible to add a feature to support tracing multi-tracepoints #78

Open x-lugoo opened 1 month ago

x-lugoo commented 1 month ago

Currently, tracing multiple tracepoints simultaneously is not supported. However, enabling this feature would be highly beneficial for users. For example, attempting to trace multiple tracepoints using the following syntax results in an error:

# retsnoop -e '*[nfs]' -e '*[nfsv4]' -e '*[sunrpc]'  -J 'tp:sunrcp:*' -J 'tp:nfs:*' -J 'tp:nfs4:*' -ss  -TS
Unrecognized injection probe spec 'tp:sunrcp:*'. Supported formats are:
  - 'kprobe:<name>+<offset>' for kprobes;
  - 'kretprobe:<name>' for kretprobes;
  - 'rawtp:<name>' for raw tracepoints;
  - 'tp:<category>:<name>' for tracepoints.
DONE in 0 ms.
anakryiko commented 1 month ago

Yep, that sounds like a good feature, I'll put it on TODO list.