aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-10-11 20:59:02 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-10-11 20:59:02 +0000
commit1db39b2f51c2877ad4b5c0094f2e1f8d6449ca91 (patch)
treec3e9787a51628fbb2314ade4785d7a6d887686e1 /include
parent1114de7219f8e42d6d883c476a9458f637806365 (diff)
downloadbusybox-1db39b2f51c2877ad4b5c0094f2e1f8d6449ca91.tar.gz
nmeter: new applet. ~4k
Fix build proble on x86_64
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h24
2 files changed, 25 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 328848478..3b759de20 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -207,6 +207,7 @@ USE_NAMEIF(APPLET(nameif, _BB_DIR_SBIN, _BB_SUID_NEVER))
USE_NC(APPLET(nc, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_NETSTAT(APPLET(netstat, _BB_DIR_BIN, _BB_SUID_NEVER))
USE_NICE(APPLET(nice, _BB_DIR_BIN, _BB_SUID_NEVER))
+USE_NMETER(APPLET(nmeter, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_NOHUP(APPLET(nohup, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_NSLOOKUP(APPLET(nslookup, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
USE_OD(APPLET(od, _BB_DIR_USR_BIN, _BB_SUID_NEVER))
diff --git a/include/usage.h b/include/usage.h
index ef348a2a9..b119c55c1 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2172,6 +2172,30 @@ USE_FEATURE_MDEV_CONFIG( \
"Options:\n" \
"\t-n ADJUST\tAdjust the scheduling priority by ADJUST"
+#define nmeter_trivial_usage \
+ "format_string"
+#define nmeter_full_usage \
+ "Nmeter monitors your system in real time.\n\n" \
+ "Format specifiers:\n" \
+ "%Nc or %[cN] monitor CPU. N - bar size, default 10\n" \
+ " (displays: S:system U:user N:niced D:iowait I:irq i:softirq)\n" \
+ "%[niface] monitor network interface 'iface'\n" \
+ "%m monitor allocated memory\n" \
+ "%[mf] monitor free memory\n" \
+ "%[mt] monitor total memory\n" \
+ "%s monitor allocated swap\n" \
+ "%f monitor number of used file descriptors\n" \
+ "%Ni monitor total/specific IRQ rate\n" \
+ "%x monitor context switch rate\n" \
+ "%p monitor forks\n" \
+ "%[pn] monitor # of processes\n" \
+ "%b monitor block io\n" \
+ "%Nt show time (with N decimal points)\n" \
+ "%Nd milliseconds between updates (default=1000)\n" \
+ "%r print <cr> instead of <lf> at EOL"
+#define nmeter_example_usage \
+ "nmeter '%250d%t %20c int %i bio %b mem %m forks%p'"
+
#define nohup_trivial_usage \
"COMMAND [ARGS]"
#define nohup_full_usage \