diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-06-06 09:19:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-06-06 12:58:30 -0400 |
commit | 8035e4288078cb806e7dd6bafe4d3e54d44cab3f (patch) | |
tree | 7b54e827020e9a9dbc2823009cb2815fc3e35fc9 /Documentation/perf_counter/perf.c | |
parent | 6e6b754ffdb6415723686c733f13275397e44422 (diff) |
perf_counter tools: Prepare for 'perf annotate'
Prepare for the 'perf annotate' implementation by splitting off
builtin-annotate.c from builtin-report.c.
( We keep this commit separate to ease the later librarization
of the facilities that perf-report and perf-annotate shares. )
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'Documentation/perf_counter/perf.c')
-rw-r--r-- | Documentation/perf_counter/perf.c | 3 |
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", |