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

artif: collect /proc/*/stat #268

Merged
merged 1 commit into from
Aug 15, 2024
Merged

artif: collect /proc/*/stat #268

merged 1 commit into from
Aug 15, 2024

Conversation

mnrkbys
Copy link

@mnrkbys mnrkbys commented Aug 14, 2024

Added an artifact to collect /proc/*/stat.
Its 9th field is the task flags. So, it can help to identify if a process is kernel thread or not.

(The value of 9th field) & PF_KTHREAD (0x00200000) != 0 : Kernel thread
(The value of 9th field) & PF_KTHREAD (0x00200000) == 0 : Not kernel thread

Incidentally, newer Linux kernel provides Kthread field in /proc/*/status.
https://lore.kernel.org/lkml/[email protected]/T/
https://x.com/CraigHRowland/status/1818770196792066123

Added an artifact to collect /proc/*/stat.
Its 9th field is the task flags. So, it can help to identify if a process is kernel thread or not.
@mnrkbys mnrkbys changed the base branch from main to develop August 14, 2024 07:29
@tclahr tclahr merged commit e200d38 into tclahr:develop Aug 15, 2024
3 checks passed
@mnrkbys mnrkbys deleted the proc_pid_stat branch September 3, 2024 23:54
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.

2 participants