aboutsummaryrefslogtreecommitdiff
path: root/procps/top.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-2/+2
|
* whitespace fixes. no code changesDenis Vlasenko2008-06-251-6/+5
|
* - use STD*_FILENO some more. No object-code changesBernhard Reutner-Fischer2008-05-191-1/+1
|
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesBernhard Reutner-Fischer2008-05-191-1/+1
|
* more -Wall warning fixes. -Wall is enabled now.Denis Vlasenko2008-05-181-2/+3
|
* more of -Wall fixes from Cristian Ionescu-Idbohrn.Denis Vlasenko2008-05-151-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some are fixing real bugs. function old new delta syslogd_main 938 958 +20 get_signum 136 143 +7 obj_load 777 782 +5 recv_from_to 210 214 +4 get_next_block 1795 1799 +4 display_topmem_process_list 1117 1121 +4 logread_main 484 487 +3 buffer_fill_and_print 73 76 +3 kill_main 687 689 +2 ll_remember_index 240 241 +1 do_stats 452 453 +1 if_readconf 166 165 -1 display_process_list 1192 1191 -1 run_applet_and_exit 507 505 -2 print_signames 33 31 -2 parse_one_line 1092 1090 -2 find_out_spec 57 55 -2 add_ksymoops_symbols 421 419 -2 ash_main 1407 1402 -5 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 11/8 up/down: 54/-17) Total: 37 bytes
* top: fix build failureDenis Vlasenko2008-04-171-1/+6
|
* let top build without TERMIOS enabledPaul Fox2008-03-201-0/+2
|
* *: s/BB_SIGS_FATAL/BB_FATAL_SIGS/ (latter proved easier to remember)Denis Vlasenko2008-03-191-19/+29
| | | | | top: fix "top </dev/null" case (by Cristian Ionescu-Idbohrn)
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* libbb: introduce bb_signals and bb_signals_recursive,Denis Vlasenko2008-02-161-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | which sets same handler for many signals. sig_catch is nuked (bb_signals_recursive is more descriptive name). *: use them as appropriate. function old new delta bb_signals_recursive - 95 +95 bb_signals - 52 +52 run_command 258 273 +15 svlogd_main 1368 1377 +9 runsv_main 1746 1752 +6 runsvdir_main 1643 1646 +3 UNSPEC_print 64 66 +2 time_main 1128 1127 -1 ... resize_main 246 210 -36 sig_catch 63 - -63 set_fatal_sighandler 85 14 -71 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 5/24 up/down: 182/-548) Total: -366 bytes
* - spelling fixesBernhard Reutner-Fischer2008-02-111-1/+1
|
* getpot: add support for "a+" specifier for nonnegative int parameters.Denis Vlasenko2008-02-101-6/+3
| | | | | | | | | | | | | By Vladimir Dronnikov <dronnikov at gmail.com>. fdisk and top are converted as an example. function old new delta getopt32 1340 1370 +30 top_main 1137 1120 -17 fdisk_main 3033 2949 -84 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/2 up/down: 30/-101) Total: -71 bytes
* - be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer2008-01-291-12/+12
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* ps: fix overflow in USER and VSZ columnsDenis Vlasenko2008-01-061-61/+11
| | | | | | | | | | | | | | | | | function old new delta smart_ulltoa4 - 280 +280 smart_ulltoa5 283 408 +125 ulltoa6_and_space - 25 +25 scale 28 38 +10 bbunpack 358 366 +8 ps_main 259 261 +2 glob3 35 37 +2 fill_bounds 172 174 +2 process_stdin 456 446 -10 smart_ulltoa6 406 - -406 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 6/1 up/down: 454/-416) Total: 38 bytes
* defconfig: updateDenis Vlasenko2007-12-241-1/+1
| | | | | | | appletli.c: add vda's (C) top: fixlet for incorrect display of "0" Makefile: reduce stack size from 20k to 16k
* fixes revealed by randomconfig runDenis Vlasenko2007-10-161-1/+3
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-3/+3
|
* introduce safe_poll (fixes a problem in top)Denis Vlasenko2007-09-271-1/+1
| | | | | | | | | | | | | | | | | | | | function old new delta safe_poll - 77 +77 svlogd_main 1470 1466 -4 zcip_main 1530 1524 -6 forkexec 1345 1338 -7 decode_format_string 795 788 -7 collect_blk 474 467 -7 buffer_pread 540 532 -8 tftp 1182 1172 -10 microcom_main 763 749 -14 arpping 441 424 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/9 up/down: 77/-80) Total: -3 bytes text data bss dec hex filename 770162 1034 10404 781600 bed20 busybox_old 770158 1034 10404 781596 bed1c busybox_unstripped
* top: small fix for command line wrappingDenis Vlasenko2007-09-081-2/+2
|
* top: get rid of on-stack variable buffers, use permanent one.Denis Vlasenko2007-09-081-21/+24
| | | | | | | | | | | | | | | | code shrank with and without TOPMEM: top_main 828 844 +16 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 16/-52) Total: -36 bytes top_main 1150 1171 +21 display_topmem_process_list 1150 1167 +17 display_process_list 1525 1473 -52 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 38/-52) Total: -14 bytes
* top: add sizeof(G) check; fix styleDenis Vlasenko2007-09-081-31/+17
|
* top: TOPMEM feature - 's(how sizes)' command. +2.5k when enabled,Denis Vlasenko2007-09-081-53/+382
| | | | | | +80 bytes when disabled (mainly because of text wrapping fixes in display_process_list).
* top: another readability fixDenis Vlasenko2007-08-291-3/+2
|
* top: don't wait before final bailout (try top -b -n1).Denis Vlasenko2007-08-291-37/+22
| | | | | top: make code a bit more readable.
* top: use poll instead of select for waiting on one descriptorDenis Vlasenko2007-08-281-20/+19
| | | | | | | | | | | | | | | | | | | | | smart_ulltoa5: make it more cryptic. -50 bytes. function old new delta passwd_main 1095 1103 +8 getNum 557 565 +8 buffer_fill_and_print 73 76 +3 udhcpc_main 2393 2395 +2 mkfs_minix_main 3071 3070 -1 dname_enc 377 373 -4 expmeta 480 472 -8 smart_ulltoa5 334 283 -51 top_main 911 815 -96 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/5 up/down: 21/-160) Total: -139 bytes text data bss dec hex filename 770872 1063 10788 782723 bf183 busybox_old 770732 1063 10788 782583 bf0f7 busybox_unstripped
* *: compile fixes for 64-bit buildDenis Vlasenko2007-08-231-29/+27
|
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* assorted fixes for breakage found by randomconfigDenis Vlasenko2007-08-171-27/+29
|
* top: nested function allows us to reuse some codeDenis Vlasenko2007-07-151-53/+57
| | | | | | | | | | | | | | | (not everyone likes them - but code does get smaller). display_generic - 761 +761 static.fmt_100percent_8 - 111 +111 fmt_100percent_8 101 - -101 display_status 1489 581 -908 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 0/1 up/down: 872/-1009) Total: -137 bytes text data bss dec hex filename 677020 3344 13936 694300 a981c busybox_old 676876 3344 13936 694156 a978c busybox_unstripped
* top: make "100%" case less ugly, and shrink code while at itDenis Vlasenko2007-07-151-20/+42
| | | | | | | | | | | | fmt_100percent_8 - 101 +101 .rodata 129185 129153 -32 display_status 1726 1489 -237 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 101/-269) Total: -168 bytes text data bss dec hex filename 677180 3344 13936 694460 a98bc busybox_old 677020 3344 13936 694300 a981c busybox_unstripped
* top: simpler loadavg processingDenis Vlasenko2007-07-151-14/+10
| | | | | | | | | | display_status 1787 1726 -61 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-61) Total: -61 bytes text data bss dec hex filename 677244 3344 13936 694524 a98fc busybox_old 677180 3344 13936 694460 a98bc busybox_unstripped
* top: truncate usernames to 8 charsDenis Vlasenko2007-07-151-1/+1
|
* top,ps: improve /proc/PID/cmdinfo reading codeDenis Vlasenko2007-06-301-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | function old new delta display_status - 1231 +1231 read_cmdline - 101 +101 parse_conf 1284 1303 +19 arith 2033 2042 +9 collect_blk 467 474 +7 fsck_main 1909 1911 +2 dhcprelay_main 1125 1122 -3 singlemount 4555 4547 -8 read_close 50 36 -14 get_lcm 123 105 -18 ed_main 3111 3084 -27 func_args 73 28 -45 procps_scan 732 658 -74 top_main 2187 899 -1288 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 4/8 up/down: 1369/-1477) Total: -108 bytes text data bss dec hex filename 676048 2744 13968 692760 a9218 busybox_old 675940 2744 13968 692652 a91ac busybox_unstripped
* killall, pidof: use argv0 for process matching tooDenis Vlasenko2007-06-301-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | top: show cmdline, not comm field (fixes problems with re-execed applets showing as processes with name "exe", and not being found by pidof/killall by applet name) function old new delta find_pid_by_name 98 156 +58 procps_scan 692 732 +40 top_main 2724 2762 +38 find_pair 164 180 +16 collect_int 114 123 +9 cmp_main 547 555 +8 collect_fork 112 119 +7 collect_ctx 112 119 +7 read_package_field 253 257 +4 passwd_main 1983 1985 +2 process_stdin 435 433 -2 xstrtoul_range_sfx 229 226 -3 get_next_block 1852 1849 -3 arith 2042 2033 -9 sv_main 1236 1226 -10 singlemount 4690 4672 -18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 10/6 up/down: 189/-45) Total: 144 bytes text data bss dec hex filename 734789 3028 14400 752217 b7a59 busybox_old 734933 3028 14400 752361 b7ae9 busybox_unstripped
* top: on user suggestion make percentile calculations configurable. -56 bytes ↵Denis Vlasenko2007-06-111-37/+63
| | | | | | when off. +600 bytes when on top: reorder columns, so that [P]PIDs are together and VSZ/%MEM are together. Makes more sense
* top: improve global CPU percentage (smaller & faster code)Denis Vlasenko2007-06-101-6/+14
|
* top: add config option and code for global CPU % displayDenis Vlasenko2007-06-101-16/+42
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* procps: remove all global variablesDenis Vlasenko2007-04-191-29/+48
| | | | | | | | text data bss dec hex filename 1462 14 24 1500 5dc busybox.t2/procps/ps.o 1484 0 0 1484 5cc busybox.t3/procps/ps.o 3122 0 252 3374 d2e busybox.t1/procps/top.o 3117 0 0 3117 c2d busybox.t3/procps/top.o
* style fixes, no code changesDenis Vlasenko2007-04-161-1/+2
|
* make sure ps/top output what they claim: vsz, not rss ... down the line we ↵Mike Frysinger2007-02-081-21/+21
| | | | should make the output controllable either at runtime or buildtime as both statistics are quite useful
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* Trailing whitespace removal over entire treeDenis Vlasenko2007-01-111-1/+1
|
* done a dozen of randconfig test. guess what? ALL failed...Denis Vlasenko2006-12-301-1/+4
| | | | these are resulting fixes
* replace /proc scanning code by more versatile one.Denis Vlasenko2006-11-051-51/+93
| | | | | | | Use it where appropriate. Stop scanning /etc/passwd *for every process*!!! (uid->username) top: reduce memory usage - we won't save unneeded fields from /proc info anymore. Downside: ~+250 bytes of code
* top: improve CPU% calculationDenis Vlasenko2006-11-051-35/+39
| | | | style fixes
* PID should be stored in pid_t, not int or long.Denis Vlasenko2006-11-011-4/+5
| | | | | find_pid_by_name() was returning 0 or -1 in last array element, but -1 was never checked. We can use just 0 intead.
* top: batch mode should output all processesDenis Vlasenko2006-10-271-8/+4
|