提交 f16825bb 编写于 作者: R Randy Dunlap 提交者: Linus Torvalds

Taskstats: fix getdelays usage information

Add usage to getdelays.c. This patch was originally posted by Randy Dunlap
http://lkml.org/lkml/2007/3/19/168Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
Signed-off-by: NBalbir Singh <balbir@in.ibm.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 9e860d00
......@@ -72,6 +72,16 @@ struct msgtemplate {
char cpumask[100+6*MAX_CPUS];
static void usage(void)
{
fprintf(stderr, "getdelays [-dilv] [-w logfile] [-r bufsize] "
"[-m cpumask] [-t tgid] [-p pid]\n");
fprintf(stderr, " -d: print delayacct stats\n");
fprintf(stderr, " -i: print IO accounting (works only with -p)\n");
fprintf(stderr, " -l: listen forever\n");
fprintf(stderr, " -v: debug on\n");
}
/*
* Create a raw netlink socket and bind
*/
......@@ -227,7 +237,7 @@ int main(int argc, char *argv[])
struct msgtemplate msg;
while (1) {
c = getopt(argc, argv, "diw:r:m:t:p:v:l");
c = getopt(argc, argv, "diw:r:m:t:p:vl");
if (c < 0)
break;
......@@ -277,7 +287,7 @@ int main(int argc, char *argv[])
loop = 1;
break;
default:
printf("Unknown option %d\n", c);
usage();
exit(-1);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册