[rocprofiler-systems] Add SIGKILL delay option (#2384)

## Motivation

When profiling multi-process applications where a parent process sends SIGKILL to child processes, the termination can occur before the profiler has a chance to flush collected data. This PR introduces a configurable delay before SIGKILL signals are forwarded, allowing profiling data to be captured before process termination. This is workaround.

## Technical Details

- Added new configuration setting `ROCPROFSYS_KILL_DELAY` (default: 0 seconds) to specify a delay before SIGKILL signals are forwarded to other processes
- Implemented `kill_gotcha` component that intercepts the `kill()` system call
- The gotcha only delays SIGKILL signals sent to external processes (pid > 0 and not self)
- Integrated `kill_gotcha_t` into the `preinit_bundle_t` for early initialization
Esse commit está contido em:
Milan Radosavljevic
2025-12-23 03:17:57 +01:00
commit de GitHub
commit 719556fbba
7 arquivos alterados com 157 adições e 1 exclusões
@@ -198,6 +198,7 @@ setup_gotchas()
component::mpi_gotcha::configure();
component::exit_gotcha::configure();
component::fork_gotcha::configure();
component::kill_gotcha::configure();
}
} // namespace