diff options
author | Namhyung Kim <namhyung.kim@lge.com> | 2013-02-06 00:57:16 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-02-06 16:09:26 -0500 |
commit | 553099857702bb77e541c47bde47f6863834d2e2 (patch) | |
tree | fdc46d986f30efdbca79be57117330205b6c1ce3 /tools/perf/builtin-report.c | |
parent | 51f27d1440cede5a413d279a20b38767b6f85097 (diff) |
perf sort: Make setup_sorting returns an error code
Currently the setup_sorting() is called for parsing sort keys and exits
if it failed to add the sort key. As it's included in libperf it'd be
better returning an error code rather than exiting application inside of
the library.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Suggested-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1360130237-9963-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index 91555d4885f4..96b5a7fee4bb 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -751,7 +751,8 @@ repeat: | |||
751 | 751 | ||
752 | } | 752 | } |
753 | 753 | ||
754 | setup_sorting(report_usage, options); | 754 | if (setup_sorting() < 0) |
755 | usage_with_options(report_usage, options); | ||
755 | 756 | ||
756 | /* | 757 | /* |
757 | * Only in the newt browser we are doing integrated annotation, | 758 | * Only in the newt browser we are doing integrated annotation, |