Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 333952
b: refs/heads/master
c: 002439e
h: refs/heads/master
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Oct 2, 2012
1 parent f8bd848 commit be4b7fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 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: 61eaa3be152afcbfb862a10f81341f96371c3ce3
refs/heads/master: 002439e84ed67cbb33cab4057fcd6a4146c0f815
13 changes: 6 additions & 7 deletions trunk/tools/perf/builtin-inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,11 +242,6 @@ static int __cmd_inject(struct perf_inject *inject)
return ret;
}

static const char * const report_usage[] = {
"perf inject [<options>]",
NULL
};

int cmd_inject(int argc, const char **argv, const char *prefix __maybe_unused)
{
struct perf_inject inject = {
Expand All @@ -273,14 +268,18 @@ int cmd_inject(int argc, const char **argv, const char *prefix __maybe_unused)
"be more verbose (show build ids, etc)"),
OPT_END()
};
const char * const inject_usage[] = {
"perf inject [<options>]",
NULL
};

argc = parse_options(argc, argv, options, report_usage, 0);
argc = parse_options(argc, argv, options, inject_usage, 0);

/*
* Any (unrecognized) arguments left?
*/
if (argc)
usage_with_options(report_usage, options);
usage_with_options(inject_usage, options);

if (symbol__init() < 0)
return -1;
Expand Down

0 comments on commit be4b7fe

Please sign in to comment.