Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54690
b: refs/heads/master
c: f16825b
h: refs/heads/master
v: v3
  • Loading branch information
Randy Dunlap authored and Linus Torvalds committed May 8, 2007
1 parent 96bfaad commit cd44e37
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9e860d000a90cfc9ca270ddb6e99b177e6aa91cd
refs/heads/master: f16825bbeb9e6e0970531aa2f21b18b2e8ae9e47
14 changes: 12 additions & 2 deletions trunk/Documentation/accounting/getdelays.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -277,7 +287,7 @@ int main(int argc, char *argv[])
loop = 1;
break;
default:
printf("Unknown option %d\n", c);
usage();
exit(-1);
}
}
Expand Down

0 comments on commit cd44e37

Please sign in to comment.