Per-process Call Counts
Ryan Cocks
ryan at transitive.com
Tue Jun 10 12:41:07 UTC 2008
Gents,
I've implemented per-process call counting on strace-4.5.16.
This is something we needed internally for some low overhead profiling
work we were doing.
Are you interested in taking in into the mainline trunk?
It's implemented in a fairly obvious manner - using the (2 clause BSD
licensed) rb.h Red-Black trees to map pids to call_counts[]. The 2
clause BSD license is GPL compatible.
I've put the patch as it stands at
http://www.ryancocks.net/strace_patch_31f4dad10 (that's a patch against
the RHEL sources.)
Any comments welcome.
~ Ryan Cocks
More information about the Strace-devel
mailing list