diff options
| author | Mike Frysinger <vapier@gentoo.org> | 2007-02-08 08:21:58 +0000 |
|---|---|---|
| committer | Mike Frysinger <vapier@gentoo.org> | 2007-02-08 08:21:58 +0000 |
| commit | 0aa6ba5d44af32d0bf460c8d92cda686bae64c92 (patch) | |
| tree | 72424e60f565c397b8a2b10f88855f11b46c4010 /include | |
| parent | 4423e5beefd6f17dfa836211899ee70edcc64a5b (diff) | |
| download | busybox-w32-0aa6ba5d44af32d0bf460c8d92cda686bae64c92.tar.gz busybox-w32-0aa6ba5d44af32d0bf460c8d92cda686bae64c92.tar.bz2 busybox-w32-0aa6ba5d44af32d0bf460c8d92cda686bae64c92.zip | |
make sure ps/top output what they claim: vsz, not rss ... down the line we should make the output controllable either at runtime or buildtime as both statistics are quite useful
Diffstat (limited to 'include')
| -rw-r--r-- | include/libbb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/libbb.h b/include/libbb.h index 5b2f6251f..bb4a68741 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
| @@ -668,7 +668,7 @@ typedef struct { | |||
| 668 | DIR *dir; | 668 | DIR *dir; |
| 669 | /* Fields are set to 0/NULL if failed to determine (or not requested) */ | 669 | /* Fields are set to 0/NULL if failed to determine (or not requested) */ |
| 670 | char *cmd; | 670 | char *cmd; |
| 671 | unsigned long rss; | 671 | unsigned long vsz; |
| 672 | unsigned long stime, utime; | 672 | unsigned long stime, utime; |
| 673 | unsigned pid; | 673 | unsigned pid; |
| 674 | unsigned ppid; | 674 | unsigned ppid; |
| @@ -691,13 +691,13 @@ enum { | |||
| 691 | PSSCAN_COMM = 1 << 5, | 691 | PSSCAN_COMM = 1 << 5, |
| 692 | PSSCAN_CMD = 1 << 6, | 692 | PSSCAN_CMD = 1 << 6, |
| 693 | PSSCAN_STATE = 1 << 7, | 693 | PSSCAN_STATE = 1 << 7, |
| 694 | PSSCAN_RSS = 1 << 8, | 694 | PSSCAN_VSZ = 1 << 8, |
| 695 | PSSCAN_STIME = 1 << 9, | 695 | PSSCAN_STIME = 1 << 9, |
| 696 | PSSCAN_UTIME = 1 << 10, | 696 | PSSCAN_UTIME = 1 << 10, |
| 697 | /* These are all retrieved from proc/NN/stat in one go: */ | 697 | /* These are all retrieved from proc/NN/stat in one go: */ |
| 698 | PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID | 698 | PSSCAN_STAT = PSSCAN_PPID | PSSCAN_PGID | PSSCAN_SID |
| 699 | | PSSCAN_COMM | PSSCAN_STATE | 699 | | PSSCAN_COMM | PSSCAN_STATE |
| 700 | | PSSCAN_RSS | PSSCAN_STIME | PSSCAN_UTIME, | 700 | | PSSCAN_VSZ | PSSCAN_STIME | PSSCAN_UTIME, |
| 701 | }; | 701 | }; |
| 702 | procps_status_t* alloc_procps_scan(int flags); | 702 | procps_status_t* alloc_procps_scan(int flags); |
| 703 | void free_procps_scan(procps_status_t* sp); | 703 | void free_procps_scan(procps_status_t* sp); |
