diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-04 15:45:25 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-04 15:45:25 +0200 |
commit | ff027d6f50bfa24228e230b84a3297c51d37d000 (patch) | |
tree | 9131e36c21870d52b02c079fe877be8a5c87970c /include | |
parent | fe360480aa30adf776a06dc9f09c704abcfa9000 (diff) | |
download | busybox-w32-ff027d6f50bfa24228e230b84a3297c51d37d000.tar.gz busybox-w32-ff027d6f50bfa24228e230b84a3297c51d37d000.tar.bz2 busybox-w32-ff027d6f50bfa24228e230b84a3297c51d37d000.zip |
bootchartd: new applet
Usage: bootchartd start [PROG ARGS]|init|stop
Create /var/log/bootchart.tgz with boot chart data
Options:
start: start background logging; with PROG, run PROG, then kill
logging with USR1
stop: send USR1 to all bootchartd processes
init: start background logging; stop when getty/gdm is seen (for init scripts)
Under PID 1: as init, then exec $bootchart_init, /init, /sbin/init
function old new delta
bootchartd_main - 907 +907
dump_procs - 353 +353
packed_usage 26566 26735 +169
dump_file - 91 +91
static.dirs - 23 +23
applet_names 2176 2187 +11
applet_main 1284 1288 +4
applet_nameofs 642 644 +2
------------------------------------------------------------------------------
(add/remove: 5/0 grow/shrink: 4/0 up/down: 1560/0) Total: 1560 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 34 |
2 files changed, 23 insertions, 12 deletions
diff --git a/include/applets.h b/include/applets.h index ef5dd781d..dfb20b9be 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -83,6 +83,7 @@ IF_BBCONFIG(APPLET(bbconfig, _BB_DIR_BIN, _BB_SUID_DROP)) | |||
83 | //IF_BBSH(APPLET(bbsh, _BB_DIR_BIN, _BB_SUID_DROP)) | 83 | //IF_BBSH(APPLET(bbsh, _BB_DIR_BIN, _BB_SUID_DROP)) |
84 | IF_BEEP(APPLET(beep, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 84 | IF_BEEP(APPLET(beep, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
85 | IF_BLKID(APPLET(blkid, _BB_DIR_SBIN, _BB_SUID_DROP)) | 85 | IF_BLKID(APPLET(blkid, _BB_DIR_SBIN, _BB_SUID_DROP)) |
86 | IF_BOOTCHARTD(APPLET(bootchartd, _BB_DIR_SBIN, _BB_SUID_DROP)) | ||
86 | IF_BRCTL(APPLET(brctl, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) | 87 | IF_BRCTL(APPLET(brctl, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) |
87 | IF_BUNZIP2(APPLET(bunzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP)) | 88 | IF_BUNZIP2(APPLET(bunzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP)) |
88 | IF_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP, bzcat)) | 89 | IF_BUNZIP2(APPLET_ODDNAME(bzcat, bunzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP, bzcat)) |
diff --git a/include/usage.h b/include/usage.h index 2c2a90d16..636d01943 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -154,18 +154,15 @@ | |||
154 | "\n -r Repetitions" \ | 154 | "\n -r Repetitions" \ |
155 | "\n -n Start new tone" \ | 155 | "\n -n Start new tone" \ |
156 | 156 | ||
157 | #define fbsplash_trivial_usage \ | 157 | #define bootchartd_trivial_usage \ |
158 | "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" | 158 | "start [PROG ARGS]|stop|init" |
159 | #define fbsplash_full_usage "\n\n" \ | 159 | #define bootchartd_full_usage "\n\n" \ |
160 | "Options:" \ | 160 | "Create /var/log/bootchart.tgz with boot chart data\n" \ |
161 | "\n -s Image" \ | 161 | "\nOptions:" \ |
162 | "\n -c Hide cursor" \ | 162 | "\nstart: start background logging; with PROG, run PROG, then kill logging with USR1" \ |
163 | "\n -d Framebuffer device (default /dev/fb0)" \ | 163 | "\nstop: send USR1 to all bootchartd processes" \ |
164 | "\n -i Config file (var=value):" \ | 164 | "\ninit: start background logging; stop when getty/xdm is seen (for init scripts)" \ |
165 | "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \ | 165 | "\nUnder PID 1: as init, then exec $bootchart_init, /init, /sbin/init" \ |
166 | "\n BAR_R,BAR_G,BAR_B" \ | ||
167 | "\n -f Control pipe (else exit after drawing image)" \ | ||
168 | "\n commands: 'NN' (% for progress bar) or 'exit'" \ | ||
169 | 166 | ||
170 | #define brctl_trivial_usage \ | 167 | #define brctl_trivial_usage \ |
171 | "COMMAND [BRIDGE [INTERFACE]]" | 168 | "COMMAND [BRIDGE [INTERFACE]]" |
@@ -1174,6 +1171,19 @@ | |||
1174 | "$ echo $?\n" \ | 1171 | "$ echo $?\n" \ |
1175 | "1\n" | 1172 | "1\n" |
1176 | 1173 | ||
1174 | #define fbsplash_trivial_usage \ | ||
1175 | "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" | ||
1176 | #define fbsplash_full_usage "\n\n" \ | ||
1177 | "Options:" \ | ||
1178 | "\n -s Image" \ | ||
1179 | "\n -c Hide cursor" \ | ||
1180 | "\n -d Framebuffer device (default /dev/fb0)" \ | ||
1181 | "\n -i Config file (var=value):" \ | ||
1182 | "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \ | ||
1183 | "\n BAR_R,BAR_G,BAR_B" \ | ||
1184 | "\n -f Control pipe (else exit after drawing image)" \ | ||
1185 | "\n commands: 'NN' (% for progress bar) or 'exit'" \ | ||
1186 | |||
1177 | #define fbset_trivial_usage \ | 1187 | #define fbset_trivial_usage \ |
1178 | "[OPTIONS] [MODE]" | 1188 | "[OPTIONS] [MODE]" |
1179 | #define fbset_full_usage "\n\n" \ | 1189 | #define fbset_full_usage "\n\n" \ |