This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]