Blob Blame History Raw
diff -up irqbalance-1.0.6/irqbalance.1.orig irqbalance-1.0.6/irqbalance.1
--- irqbalance-1.0.6/irqbalance.1.orig	2013-02-13 21:35:48.000000000 +0100
+++ irqbalance-1.0.6/irqbalance.1	2013-08-12 20:29:51.322114469 +0200
@@ -34,19 +34,19 @@ The purpose of \fBirqbalance\fR is distr
 .SH "OPTIONS"
 
 .TP
-.B --oneshot
+.B -o, --oneshot
 Causes irqbalance to be run once, after which the daemon exits
 .TP
 
-.B --debug
+.B -d, --debug
 Causes irqbalance to print extra debug information.  Implies --foreground
 
 .TP
-.B --foreground
+.B -f, --foreground
 Causes irqbalance to run in the foreground (without --debug)
 
 .TP
-.B --hintpolicy=[exact | subset | ignore]
+.B -h, --hintpolicy=[exact | subset | ignore]
 Set the policy for how irq kernel affinity hinting is treated.  Can be one of:
 .P
 .I exact
@@ -59,7 +59,7 @@ irq is balanced, but the assigned object
 irq affinity hint value is completely ignored
 
 .TP
-.B --powerthresh=<threshold>
+.B -p, --powerthresh=<threshold>
 Set the threshold at which we attempt to move a cpu into powersave mode
 If more than <threshold> cpus are more than 1 standard deviation below the
 average cpu softirq workload, and no cpus are more than 1 standard deviation
@@ -68,7 +68,7 @@ powersave mode.  In powersave mode, a cp
 in an effort to prevent that cpu from waking up without need.
 
 .TP
-.B --banirq=<irqnum>
+.B -i, --banirq=<irqnum>
 Add the specified irq to the set of banned irqs. irqbalance will not affect
 the affinity of any irqs on the banned list, allowing them to be specified
 manually.  This option is addative and can be specified multiple times. For
@@ -77,7 +77,7 @@ example to ban irqs 43 and 44 from balan
 
 
 .TP
-.B --policyscript=<script>
+.B -l, --policyscript=<script>
 When specified, the referenced script will execute once for each discovered irq,
 with the sysfs device path and irq number passed as arguments.
 The script may specify zero or more key=value pairs that will guide irqbalance in
@@ -103,7 +103,7 @@ that irqbalance can bias irq affinity fo
 node.  Note that specifying a -1 here forces irqbalance to consider an interrupt
 from a device to be equidistant from all nodes.
 .TP
-.B --pid=<file>
+.B -s, --pid=<file>
 Have irqbalance write its process id to the specified file.  By default no
 pidfile is written.  The written pidfile is automatically unlinked when
 irqbalance exits.
diff -up irqbalance-1.0.6/irqbalance.c.orig irqbalance-1.0.6/irqbalance.c
--- irqbalance-1.0.6/irqbalance.c.orig	2013-05-13 12:38:58.000000000 +0200
+++ irqbalance-1.0.6/irqbalance.c	2013-08-12 20:11:01.742355959 +0200
@@ -87,7 +87,7 @@ struct option lopts[] = {
 static void usage(void)
 {
 	log(TO_CONSOLE, LOG_INFO, "irqbalance [--oneshot | -o] [--debug | -d] [--foreground | -f] [--hintpolicy= | -h [exact|subset|ignore]]\n");
-	log(TO_CONSOLE, LOG_INFO, "	[--powerthresh= | -p <off> | <n>] [--banirq= | -i <n>] [--policyscript=<script>]\n");
+	log(TO_CONSOLE, LOG_INFO, "	[--powerthresh= | -p <off> | <n>] [--banirq= | -i <n>] [--policyscript=<script>] [--pid= | -s <file>]\n");
 }
 
 static void parse_command_line(int argc, char **argv)