anakryiko / retsnoop

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

retsnoop: handle idle threads properly #71

Closed anakryiko closed 2 months ago

anakryiko commented 2 months 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).