[PATCH] (Naive) approach to make schedtimes follow the children of the traced process
Josh Stone
jistone@redhat.com
Fri Jan 31 16:19:00 GMT 2014
On 01/31/2014 02:46 AM, David Juran wrote:
> Hello!
>
> I had a use case where I wanted to investigate how much time a build
> process (in effect make) was spending waiting to be scheduled. The
> schedtimes exampel was a good match, but since I wanted to check both
> the make process itself but even more important, all the compile
> processes it forked off, I did some rather ugly extension to the
> schedtimes script.
> The modifications might come in useful for someone else as well but if
> you do consider taking the patch, please do review it. My approach of
> extending the script was rather simple...
Hi,
It's a reasonable modification, but you might like the target_set.stp
tapset to simplify it. Call function target_set_pid(some_pid) to find
out if it's part of the target() and its children.
Josh
More information about the Systemtap
mailing list