diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-25 10:48:06 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-25 10:48:06 +0000 |
commit | 17e7f04c8d144e0e0598464806dcb111ed5386d7 (patch) | |
tree | 002284cda156b2516c1d3a67352288741d7cd2e5 /include | |
parent | e0bcba18eb9c185cefbef2ef05b846f735bd133a (diff) | |
download | busybox-w32-17e7f04c8d144e0e0598464806dcb111ed5386d7.tar.gz busybox-w32-17e7f04c8d144e0e0598464806dcb111ed5386d7.tar.bz2 busybox-w32-17e7f04c8d144e0e0598464806dcb111ed5386d7.zip |
top: optional SMP support by Vineet Gupta (vineetg76 AT gmail.com)
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 15 |
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; |
1229 | enum { | 1232 | enum { |
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; |
1257 | void free_procps_scan(procps_status_t* sp) FAST_FUNC; | 1264 | void free_procps_scan(procps_status_t* sp) FAST_FUNC; |