From d5393a81d711d7ef837fe7730043c34503492826 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Wed, 22 Jul 2009 23:04:12 +1000 Subject: [PATCH] --- yaml --- r: 155723 b: refs/heads/master c: a0541234f89c93f313961ce7b28676e11488a5f0 h: refs/heads/master i: 155721: 3a645b6dbda3bddcfd14cf8dfeb0c7bb206b34a1 155719: 1307239da9deb08b61a008833064527b552a7d34 v: v3 --- [refs] | 2 +- trunk/tools/perf/builtin-record.c | 3 ++- trunk/tools/perf/builtin-stat.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 05f7ce575516..486e643cd639 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7f453c24b95a085fc7bd35d53b33abc4dc5a048b +refs/heads/master: a0541234f89c93f313961ce7b28676e11488a5f0 diff --git a/trunk/tools/perf/builtin-record.c b/trunk/tools/perf/builtin-record.c index 68a9be0d1513..6da09928130f 100644 --- a/trunk/tools/perf/builtin-record.c +++ b/trunk/tools/perf/builtin-record.c @@ -664,7 +664,8 @@ int cmd_record(int argc, const char **argv, const char *prefix __used) { int counter; - argc = parse_options(argc, argv, options, record_usage, 0); + argc = parse_options(argc, argv, options, record_usage, + PARSE_OPT_STOP_AT_NON_OPTION); if (!argc && target_pid == -1 && !system_wide) usage_with_options(record_usage, options); diff --git a/trunk/tools/perf/builtin-stat.c b/trunk/tools/perf/builtin-stat.c index 27921a8ce1a9..f9510eeeb6c7 100644 --- a/trunk/tools/perf/builtin-stat.c +++ b/trunk/tools/perf/builtin-stat.c @@ -511,7 +511,8 @@ int cmd_stat(int argc, const char **argv, const char *prefix __used) { int status; - argc = parse_options(argc, argv, options, stat_usage, 0); + argc = parse_options(argc, argv, options, stat_usage, + PARSE_OPT_STOP_AT_NON_OPTION); if (!argc) usage_with_options(stat_usage, options); if (run_count <= 0 || run_count > MAX_RUN)