diff options
author | Chunguang Wu <fullspring2018@gmail.com> | 2023-04-16 08:24:04 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2023-04-22 00:54:34 +0300 |
commit | 522dc4e5f51e3d51c4ff55ad1c725d12176b71ea (patch) | |
tree | 2bc3e886ccd84eb1e580c88dd421c9dbf776b113 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 3647ebcfbfca384840231fe13fae665453238a61 (diff) | |
download | linux-522dc4e5f51e3d51c4ff55ad1c725d12176b71ea.tar.xz |
fs/proc: add Kthread flag to /proc/$pid/status
The command `ps -ef ` and `top -c` mark kernel thread by '[' and ']', but
sometimes the result is not correct. The task->flags in /proc/$pid/stat
is good, but we need remember the value of PF_KTHREAD is 0x00200000 and
convert dec to hex. If we have no binary program and shell script which
read /proc/$pid/stat, we can know it directly by `cat /proc/$pid/status`.
Link: https://lkml.kernel.org/r/20230416052404.2920-1-fullspring2018@gmail.com
Signed-off-by: Chunguang Wu <fullspring2018@gmail.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions