This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: [PATCH] (Naive) approach to make schedtimes follow the children of the traced process
- From: Josh Stone <jistone at redhat dot com>
- To: David Juran <djuran at redhat dot com>, systemtap at sourceware dot org
- Date: Fri, 31 Jan 2014 08:19:22 -0800
- Subject: Re: [PATCH] (Naive) approach to make schedtimes follow the children of the traced process
- Authentication-results: sourceware.org; auth=none
- References: <1391165184 dot 12098 dot 9 dot camel at localhost dot localdomain>
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