anakryiko / retsnoop

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

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

Open x-lugoo opened 5 days ago

x-lugoo commented 5 days 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 2 days ago

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