From ff027d6f50bfa24228e230b84a3297c51d37d000 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 4 May 2010 15:45:25 +0200 Subject: 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 --- include/applets.h | 1 + include/usage.h | 34 ++++++++++++++++++++++------------ 2 files changed, 23 insertions(+), 12 deletions(-) (limited to 'include') 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)) //IF_BBSH(APPLET(bbsh, _BB_DIR_BIN, _BB_SUID_DROP)) IF_BEEP(APPLET(beep, _BB_DIR_USR_BIN, _BB_SUID_DROP)) IF_BLKID(APPLET(blkid, _BB_DIR_SBIN, _BB_SUID_DROP)) +IF_BOOTCHARTD(APPLET(bootchartd, _BB_DIR_SBIN, _BB_SUID_DROP)) IF_BRCTL(APPLET(brctl, _BB_DIR_USR_SBIN, _BB_SUID_DROP)) IF_BUNZIP2(APPLET(bunzip2, _BB_DIR_USR_BIN, _BB_SUID_DROP)) 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 @@ "\n -r Repetitions" \ "\n -n Start new tone" \ -#define fbsplash_trivial_usage \ - "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" -#define fbsplash_full_usage "\n\n" \ - "Options:" \ - "\n -s Image" \ - "\n -c Hide cursor" \ - "\n -d Framebuffer device (default /dev/fb0)" \ - "\n -i Config file (var=value):" \ - "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \ - "\n BAR_R,BAR_G,BAR_B" \ - "\n -f Control pipe (else exit after drawing image)" \ - "\n commands: 'NN' (% for progress bar) or 'exit'" \ +#define bootchartd_trivial_usage \ + "start [PROG ARGS]|stop|init" +#define bootchartd_full_usage "\n\n" \ + "Create /var/log/bootchart.tgz with boot chart data\n" \ + "\nOptions:" \ + "\nstart: start background logging; with PROG, run PROG, then kill logging with USR1" \ + "\nstop: send USR1 to all bootchartd processes" \ + "\ninit: start background logging; stop when getty/xdm is seen (for init scripts)" \ + "\nUnder PID 1: as init, then exec $bootchart_init, /init, /sbin/init" \ #define brctl_trivial_usage \ "COMMAND [BRIDGE [INTERFACE]]" @@ -1174,6 +1171,19 @@ "$ echo $?\n" \ "1\n" +#define fbsplash_trivial_usage \ + "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" +#define fbsplash_full_usage "\n\n" \ + "Options:" \ + "\n -s Image" \ + "\n -c Hide cursor" \ + "\n -d Framebuffer device (default /dev/fb0)" \ + "\n -i Config file (var=value):" \ + "\n BAR_LEFT,BAR_TOP,BAR_WIDTH,BAR_HEIGHT" \ + "\n BAR_R,BAR_G,BAR_B" \ + "\n -f Control pipe (else exit after drawing image)" \ + "\n commands: 'NN' (% for progress bar) or 'exit'" \ + #define fbset_trivial_usage \ "[OPTIONS] [MODE]" #define fbset_full_usage "\n\n" \ -- cgit v1.2.3