[Bug tapsets/20075] target_set_pid() returns False when execve() syscall is successful

fche at redhat dot com sourceware-bugzilla@sourceware.org
Mon May 16 15:08:00 GMT 2016


https://sourceware.org/bugzilla/show_bug.cgi?id=20075

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #3 from Frank Ch. Eigler <fche at redhat dot com> ---
Perhaps we can smarten-up the target_set tapset, so that it puts dying
processes into a separate grace-period state, from which almost-born children
are still recognized as the same target-set.

Something like


global _target_set_zombie%

probe ...end {
  _target_set_zombie[pid()] = gettimeofday_s()
}

probe timer.s(30) {
  now = gettimeofday_s()
  foreach (time_of_death = pid in _target_set_zombie) {
     if (now - time_of_death > 60) delete _target_set[pid]
  }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Systemtap mailing list