Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions processmanager/processinfo.go
Comment thread
christos68k marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -530,15 +530,14 @@ func (pm *ProcessManager) processPIDExit(pid libpf.PID) {
log.Debugf("Skip process exit handling for unknown PID %d", pid)
return
}
if pm.interpreterTracerEnabled && len(pm.interpreters[pid]) > 0 {
// ProcessPIDExit may be called multiple times in short succession
// for the same PID, don't update exitKTime if we've previously recorded it.
if _, pidExitProcessed := pm.exitEvents[pid]; !pidExitProcessed {
pm.exitEvents[pid] = exitKTime
} else {
log.Debugf("Skip duplicate process exit handling for PID %d", pid)
return
}

// ProcessPIDExit may be called multiple times in short succession
// for the same PID, don't update exitKTime if we've previously recorded it.
if _, pidExitProcessed := pm.exitEvents[pid]; !pidExitProcessed {
pm.exitEvents[pid] = exitKTime
} else {
log.Debugf("Skip duplicate process exit handling for PID %d", pid)
return
}

// Delete all entries we have for this particular PID from pid_page_to_mapping_info.
Expand Down