|
|
c682bc |
From b23bec399251f669d860f5c04c32f4c77325dcfb Mon Sep 17 00:00:00 2001
|
|
|
c682bc |
From: Arnaldo Carvalho de Melo <acme@redhat.com>
|
|
|
c682bc |
Date: Thu, 11 Jun 2015 16:44:52 -0300
|
|
|
c682bc |
Subject: [PATCH 5/7] pidstat: Add missing PF_ flags
|
|
|
c682bc |
|
|
|
c682bc |
Adding the ones found in the v4.1-rc kernel.
|
|
|
c682bc |
|
|
|
c682bc |
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
|
|
|
c682bc |
---
|
|
|
c682bc |
procfs/procfs.py | 10 ++++++++++
|
|
|
c682bc |
1 file changed, 10 insertions(+)
|
|
|
c682bc |
|
|
|
c682bc |
diff --git a/procfs/procfs.py b/procfs/procfs.py
|
|
|
c682bc |
index f1604ba6ed01..6b4fd84f3171 100755
|
|
|
c682bc |
--- a/procfs/procfs.py
|
|
|
c682bc |
+++ b/procfs/procfs.py
|
|
|
c682bc |
@@ -30,22 +30,30 @@ def process_cmdline(pid_info):
|
|
|
c682bc |
|
|
|
c682bc |
class pidstat:
|
|
|
c682bc |
|
|
|
c682bc |
+ # Entries with the same value, the one with a comment after it is the
|
|
|
c682bc |
+ # more recent, having replaced the other name in v4.1-rc kernel times.
|
|
|
c682bc |
+
|
|
|
c682bc |
PF_ALIGNWARN = 0x00000001
|
|
|
c682bc |
PF_STARTING = 0x00000002
|
|
|
c682bc |
PF_EXITING = 0x00000004
|
|
|
c682bc |
PF_EXITPIDONE = 0x00000008
|
|
|
c682bc |
PF_VCPU = 0x00000010
|
|
|
c682bc |
+ PF_WQ_WORKER = 0x00000020 # /* I'm a workqueue worker */
|
|
|
c682bc |
PF_FORKNOEXEC = 0x00000040
|
|
|
c682bc |
+ PF_MCE_PROCESS = 0x00000080 # /* process policy on mce errors */
|
|
|
c682bc |
PF_SUPERPRIV = 0x00000100
|
|
|
c682bc |
PF_DUMPCORE = 0x00000200
|
|
|
c682bc |
PF_SIGNALED = 0x00000400
|
|
|
c682bc |
PF_MEMALLOC = 0x00000800
|
|
|
c682bc |
+ PF_NPROC_EXCEEDED= 0x00001000 # /* set_user noticed that RLIMIT_NPROC was exceeded */
|
|
|
c682bc |
PF_FLUSHER = 0x00001000
|
|
|
c682bc |
PF_USED_MATH = 0x00002000
|
|
|
c682bc |
+ PF_USED_ASYNC = 0x00004000 # /* used async_schedule*(), used by module init */
|
|
|
c682bc |
PF_NOFREEZE = 0x00008000
|
|
|
c682bc |
PF_FROZEN = 0x00010000
|
|
|
c682bc |
PF_FSTRANS = 0x00020000
|
|
|
c682bc |
PF_KSWAPD = 0x00040000
|
|
|
c682bc |
+ PF_MEMALLOC_NOIO = 0x00080000 # /* Allocating memory without IO involved */
|
|
|
c682bc |
PF_SWAPOFF = 0x00080000
|
|
|
c682bc |
PF_LESS_THROTTLE = 0x00100000
|
|
|
c682bc |
PF_KTHREAD = 0x00200000
|
|
|
c682bc |
@@ -55,10 +63,12 @@ class pidstat:
|
|
|
c682bc |
PF_SPREAD_SLAB = 0x02000000
|
|
|
c682bc |
PF_THREAD_BOUND = 0x04000000
|
|
|
c682bc |
PF_NO_SETAFFINITY = 0x04000000 # /* Userland is not allowed to meddle with cpus_allowed */
|
|
|
c682bc |
+ PF_MCE_EARLY = 0x08000000 # /* Early kill for mce process policy */
|
|
|
c682bc |
PF_MEMPOLICY = 0x10000000
|
|
|
c682bc |
PF_MUTEX_TESTER = 0x20000000
|
|
|
c682bc |
PF_FREEZER_SKIP = 0x40000000
|
|
|
c682bc |
PF_FREEZER_NOSIG = 0x80000000
|
|
|
c682bc |
+ PF_SUSPEND_TASK = 0x80000000 # /* this thread called freeze_processes and should not be frozen */
|
|
|
c682bc |
|
|
|
c682bc |
proc_stat_fields = [ "pid", "comm", "state", "ppid", "pgrp", "session",
|
|
|
c682bc |
"tty_nr", "tpgid", "flags", "minflt", "cminflt",
|
|
|
c682bc |
--
|
|
|
c682bc |
1.8.3.1
|
|
|
c682bc |
|