anakryiko / retsnoop

Investigate kernel error call stacks
BSD 2-Clause "Simplified" License
186 stars 32 forks source link

retsnoop: handle idle threads properly #71

Closed anakryiko closed 1 month ago

anakryiko commented 1 month ago

Idle threads all have PID 0, one idle thread per each CPU. This screws up retsnoop's logic around using PID as a unique session ID. So for idle threads, use -(1 + CPU ID) as a session (session ID 0 will be reserved as invalid).