diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-08 16:51:19 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-09-08 16:51:19 +0000 |
commit | ff6e8e2974433aeabaaefaf9d8b6a35e9641b9ac (patch) | |
tree | 83de779a734d2a1e6d877718841188e630629265 /include | |
parent | 9382b3809b3f6bea8dec6483ff66d7c2b21abd94 (diff) | |
download | busybox-ff6e8e2974433aeabaaefaf9d8b6a35e9641b9ac.tar.gz |
top: TOPMEM feature - 's(how sizes)' command. +2.5k when enabled,
+80 bytes when disabled (mainly because of text wrapping fixes
in display_process_list).
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index f1658945c..a4aa90da3 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -904,6 +904,15 @@ typedef struct procps_status_t { unsigned uid; unsigned gid; unsigned tty_major,tty_minor; +#if ENABLE_FEATURE_TOPMEM + unsigned long mapped_rw; + unsigned long mapped_ro; + unsigned long shared_clean; + unsigned long shared_dirty; + unsigned long private_clean; + unsigned long private_dirty; + unsigned long stack; +#endif char state[4]; /* basename of executable in exec(2), read from /proc/N/stat * (if executable is symlink or script, it is NOT replaced @@ -927,7 +936,8 @@ enum { PSSCAN_STIME = 1 << 12, PSSCAN_UTIME = 1 << 13, PSSCAN_TTY = 1 << 14, - USE_SELINUX(PSSCAN_CONTEXT = 1 << 15,) + PSSCAN_SMAPS = (1 << 15) * ENABLE_FEATURE_TOPMEM, + USE_SELINUX(PSSCAN_CONTEXT = 1 << 16,) /* These are all retrieved from proc/NN/stat in one go: */ PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | PSSCAN_COMM | PSSCAN_STATE |