aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/perf_counter/perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/perf_counter/perf.c')
-rw-r--r--Documentation/perf_counter/perf.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/perf_counter/perf.c b/Documentation/perf_counter/perf.c
index 161824f1241f..4eb725933703 100644
--- a/Documentation/perf_counter/perf.c
+++ b/Documentation/perf_counter/perf.c
@@ -263,6 +263,7 @@ static void handle_internal_command(int argc, const char **argv)
263 { "report", cmd_report, 0 }, 263 { "report", cmd_report, 0 },
264 { "stat", cmd_stat, 0 }, 264 { "stat", cmd_stat, 0 },
265 { "top", cmd_top, 0 }, 265 { "top", cmd_top, 0 },
266 { "annotate", cmd_annotate, 0 },
266 { "version", cmd_version, 0 }, 267 { "version", cmd_version, 0 },
267 }; 268 };
268 int i; 269 int i;
@@ -402,9 +403,11 @@ int main(int argc, const char **argv)
402 while (1) { 403 while (1) {
403 static int done_help = 0; 404 static int done_help = 0;
404 static int was_alias = 0; 405 static int was_alias = 0;
406
405 was_alias = run_argv(&argc, &argv); 407 was_alias = run_argv(&argc, &argv);
406 if (errno != ENOENT) 408 if (errno != ENOENT)
407 break; 409 break;
410
408 if (was_alias) { 411 if (was_alias) {
409 fprintf(stderr, "Expansion of alias '%s' failed; " 412 fprintf(stderr, "Expansion of alias '%s' failed; "
410 "'%s' is not a perf-command\n", 413 "'%s' is not a perf-command\n",