aboutsummaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libbb.h')
-rw-r--r--include/libbb.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 3b4715e33..951ff2f1a 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -1225,6 +1225,9 @@ typedef struct procps_status_t {
1225 * by link target or interpreter name) */ 1225 * by link target or interpreter name) */
1226 char comm[COMM_LEN]; 1226 char comm[COMM_LEN];
1227 /* user/group? - use passwd/group parsing functions */ 1227 /* user/group? - use passwd/group parsing functions */
1228#if ENABLE_FEATURE_TOP_SMP_PROCESS
1229 int last_seen_on_cpu;
1230#endif
1228} procps_status_t; 1231} procps_status_t;
1229enum { 1232enum {
1230 PSSCAN_PID = 1 << 0, 1233 PSSCAN_PID = 1 << 0,
@@ -1246,12 +1249,16 @@ enum {
1246 PSSCAN_ARGVN = (1 << 16) * (ENABLE_PGREP || ENABLE_PKILL || ENABLE_PIDOF), 1249 PSSCAN_ARGVN = (1 << 16) * (ENABLE_PGREP || ENABLE_PKILL || ENABLE_PIDOF),
1247 USE_SELINUX(PSSCAN_CONTEXT = 1 << 17,) 1250 USE_SELINUX(PSSCAN_CONTEXT = 1 << 17,)
1248 PSSCAN_START_TIME = 1 << 18, 1251 PSSCAN_START_TIME = 1 << 18,
1252 PSSCAN_CPU = 1 << 19,
1249 /* These are all retrieved from proc/NN/stat in one go: */ 1253 /* These are all retrieved from proc/NN/stat in one go: */
1250 PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID 1254 PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID
1251 | PSSCAN_COMM | PSSCAN_STATE 1255 /**/ | PSSCAN_COMM | PSSCAN_STATE
1252 | PSSCAN_VSZ | PSSCAN_RSS 1256 /**/ | PSSCAN_VSZ | PSSCAN_RSS
1253 | PSSCAN_STIME | PSSCAN_UTIME | PSSCAN_START_TIME 1257 /**/ | PSSCAN_STIME | PSSCAN_UTIME | PSSCAN_START_TIME
1254 | PSSCAN_TTY, 1258 /**/ | PSSCAN_TTY
1259#if ENABLE_FEATURE_TOP_SMP_PROCESS
1260 /**/ | PSSCAN_CPU
1261#endif
1255}; 1262};
1256//procps_status_t* alloc_procps_scan(void) FAST_FUNC; 1263//procps_status_t* alloc_procps_scan(void) FAST_FUNC;
1257void free_procps_scan(procps_status_t* sp) FAST_FUNC; 1264void free_procps_scan(procps_status_t* sp) FAST_FUNC;