Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retsnoop: handle idle threads properly #71

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

anakryiko
Copy link
Owner

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).

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).

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
@anakryiko anakryiko merged commit 7255385 into master Aug 28, 2024
2 checks passed
@anakryiko anakryiko deleted the retsnoop-idle-threads branch August 28, 2024 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant