aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-06-04 12:21:53 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-06-04 12:21:53 +0000
commitef4bb26f937b6628306742c417305b813d8f2913 (patch)
tree93073c9f6da8f76bc8522ece04f850cc2d08d884 /miscutils
parent821cc25f435fa4b463f20669b2b9baf198ea04c4 (diff)
downloadbusybox-w32-ef4bb26f937b6628306742c417305b813d8f2913.tar.gz
busybox-w32-ef4bb26f937b6628306742c417305b813d8f2913.tar.bz2
busybox-w32-ef4bb26f937b6628306742c417305b813d8f2913.zip
diff: stop using data/bss
function old new delta do_diff 385 436 +51 diff_main 850 895 +45 dump_unified_vec 437 457 +20 prepare 335 334 -1 anychange 1 - -1 suff 4 - -4 status 135 131 -4 static.max_context 4 - -4 start 12 8 -4 pref 4 - -4 member 4 - -4 label2 4 - -4 label1 4 - -4 klist 4 - -4 ixold 4 - -4 ixnew 4 - -4 dl_count 4 - -4 dl 4 - -4 context_vec_start 4 - -4 context_vec_ptr 4 - -4 context_vec_end 4 - -4 context 4 - -4 clistlen 4 - -4 clist 4 - -4 clen 4 - -4 class 4 - -4 J 4 - -4 add_to_dirlist 71 64 -7 slen 8 - -8 sfile 8 - -8 len 8 - -8 file 8 - -8 get_dir 196 185 -11 newcand 97 85 -12 change 351 331 -20 stb2 96 - -96 stb1 96 - -96 diffreg 2835 2717 -118 ------------------------------------------------------------------------------ (add/remove: 0/27 grow/shrink: 3/8 up/down: 116/-482) Total: -366 bytes # size */*/diff.o text data bss dec hex filename 7055 8 305 7368 1cc8 busybox.t2/coreutils/diff.o 7002 0 0 7002 1b5a busybox.t3/coreutils/diff.o
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/nmeter.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/miscutils/nmeter.c b/miscutils/nmeter.c
index 3152b74e3..1d58eb2c1 100644
--- a/miscutils/nmeter.c
+++ b/miscutils/nmeter.c
@@ -69,16 +69,16 @@ struct globals {
69#define proc_meminfo (G.proc_meminfo ) 69#define proc_meminfo (G.proc_meminfo )
70#define proc_diskstats (G.proc_diskstats ) 70#define proc_diskstats (G.proc_diskstats )
71#define proc_sys_fs_filenr (G.proc_sys_fs_filenr) 71#define proc_sys_fs_filenr (G.proc_sys_fs_filenr)
72
73// We depend on this being a char[], not char* - we take sizeof() of it
74#define outbuf bb_common_bufsiz1
75
76#define INIT_G() do { \ 72#define INIT_G() do { \
73 PTR_TO_GLOBALS = xzalloc(sizeof(G)); \
77 cur_outbuf = outbuf; \ 74 cur_outbuf = outbuf; \
78 final_str = "\n"; \ 75 final_str = "\n"; \
79 deltanz = delta = 1000000; \ 76 deltanz = delta = 1000000; \
80 } while (0) 77 } while (0)
81 78
79// We depend on this being a char[], not char* - we take sizeof() of it
80#define outbuf bb_common_bufsiz1
81
82static inline void reset_outbuf(void) 82static inline void reset_outbuf(void)
83{ 83{
84 cur_outbuf = outbuf; 84 cur_outbuf = outbuf;
@@ -774,7 +774,6 @@ int nmeter_main(int argc, char **argv)
774 s_stat *s; 774 s_stat *s;
775 char *cur, *prev; 775 char *cur, *prev;
776 776
777 PTR_TO_GLOBALS = xzalloc(sizeof(G));
778 INIT_G(); 777 INIT_G();
779 778
780 xchdir("/proc"); 779 xchdir("/proc");