tud-zih-energy / lo2s

Linux OTF2 Sampling - A Lightweight Node-Level Performance Monitoring Tool
https://tu-dresden.de/zih/forschung/projekte/lo2s?set_language=en
GNU General Public License v3.0
46 stars 13 forks source link

fix(process monitoring): dont abort lo2s on unexpected child process exit #321

Closed cvonelm closed 6 months ago

cvonelm commented 7 months ago

If currently a process exits after ptrace catched it but before sampling with perf_event_open has been set up, perf_event_open will throw ESRCH ("no such process"), aborting lo2s.

Instead, handle ESRCH more gracefully by printing a warning but otherwise ignoring the non-existent process.

Fixes #320