summaryrefslogtreecommitdiff
path: root/utils/vmstat.c
AgeCommit message (Collapse)Author
2011-08-22Be less aggressive about switching to bigger unitsOlaf Buddenhagen
* utils/vmstat.c (print_val): Switch size unit at 10000 instead of 1024.
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2003-08-032002-06-16 James A. Morrison <ja2morri@uwaterloo.ca>Marcus Brinkmann
* vmstat.c (vm_state_refresh): Use memset instead of bzero. (main): Likewise.
2002-06-252002-06-14 Roland McGrath <roland@frob.com>Roland McGrath
* vmstat.c (ensure_def_pager_info): If get_privileged_ports fails with EPERM, try to open /servers/default-pager instead. * Makefile (INSTALL-vmstat-ops): Variable removed (no setuid).
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* pids.c (add_fn_pids): unsigned -> size_t * w.c (add_utmp_procs): Likewise. * login.c (add_canonical_host): Likewise. * ps.c (main): Likewise. * login.c (add_entry, main): Likewise. * settrans.c (main): int -> size_t * showtrans.c (main): Likewise. * fsysopts.c (main): Likewise. * vmstat.c (main): Use int for FWIDTHS. * ping.c (main): size_t -> socklen_t * fakeauth.c (S_auth_getids, S_auth_makeauth, S_auth_server_authenticate): u_int -> size_t * showtrans.c (main): Cast field width/precision args to int.
2002-05-042002-05-03 Roland McGrath <roland@frob.com>Roland McGrath
* vmstat.c (print_val): Use %lld printf format for val_t.
1999-11-181999-11-18 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* vmstat.c (BADVAL): New macro. (SWAP_FIELD): New macro. This properly takes care of exciting C type promotion rules to properly indicate errors. (get_swap_size, get_swap_free, get_swap_active): Replace definitions with ones using SWAP_FIELD macro. (ensure_def_pager_info): Give an error message for lack of a default pager; check only once.
1997-07-15(ensure_def_pager_info):Miles Bader
Don't report any errors if there's no default pager.
1997-07-14(main):Miles Bader
Don't print fields we cannot get.
1997-02-20(argp_program_version): Make const.Miles Bader
1996-10-24(options):Miles Bader
Remove header for run-time supplied fields. (main): And add it back here as a child header. Replace PARENTS with CHILDREN, which uses the new argp_child structure.
1996-10-04(val_width):Miles Bader
New function. (name_to_option): Correct test for malloc failure. (main): Calculate verbose output widths differently. (main: FWIDTH): New macro. (fields): Rename `cache *' fields to `memobj *', and reword doc strings. Add `max' field. (get_memobj_hit_ratio): Renamed from get_cache_hit_ratio. (VAL_MAX_MEM, VAL_MAX_SWAP, K, M, G): New macros.
1996-10-02(struct field):Miles Bader
Remove desc field, add doc field. (fields): Initialize doc field, and not desc. (name_to_option): New function. (main): Rearrange use of name, doc, and desc fields in struct field.
1996-09-05*** empty log message ***Thomas Bushnell
1996-08-27(doc): Add program description.Miles Bader
1996-07-29(val_t): Make `long long'.Miles Bader
1996-07-26(enum val_display_type):Miles Bader
Add `PAGESZ'. `SIZES' -> `SIZE'; all uses updated. Remove BYTES, PAGES, and KBYTES. (main): Variable user_disp_type removed. Variable size_units added. Add SIZE_UNITS macro, remove FDISPTYPE macro. Calls to print_val now use new PVAL macro. (get_vmstats_field): Just test against a type of SIZE, instead of using val_display_type_is_size. (fields): disp_type of "pagesize" and "swap-pagesize" changed to PAGESZ. (val_display_type_is_size): Function removed. (struct field): `disp_type' field -> `type'; all used updated. (print_val): Add TYPE & SIZE_UNITS arguments; remove HOW & PSIZE.
1996-07-26(options, main): -k/--kilobytes, -v/--pages, and -b/--bytes options added.Miles Bader
(fields): New struct members initialized. `size', `cache-hit-ratio', `swap-size', `swap-active', `swap-free', and `swap-pagesize' added. (val_t, enum val_display_type, enum field_change_type): New types. (val_display_type_is_size, print_val, vm_state_refresh, vm_state_get_field, get_vmstats_field, get_size, ensure_def_pager_info, get_swap_size, get_swap_free, get_swap_page_size, get_swap_active): New functions. (struct field): CHANGE_TYPE, DISP_TYPE, STANDARD, and COMPUTE fields added. CUM field removed. (struct vm_state): New type. (main): Changed greatly to use vm_state type & functions, use print_val, and support CONST display types nicely. (argp_program_version): Version changed to 1.1.
1996-07-06(argp_program_version): New variable.Miles Bader
<hurd.h>: New include.
1996-05-11(parse_opt): Use ARGP_ERR_UNKNOWN instead of EINVAL.Miles Bader
1996-03-23(main): Pass new arg to argp_parse.Miles Bader
1996-02-05(main, args_doc, doc): Add repeat mode.Miles Bader
(FVAL): New macro.
1996-02-05(main):Miles Bader
Slightly decrease the space for numbers in the verbose output format. Twiddle the widths of the terse fields to make sure there's room for typical numbers. (fields, options): Make const.
1996-02-03Initial revisionMiles Bader