aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-04-02 12:30:57 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2010-04-02 16:28:35 -0300
commit2aefa4f733f2c5ce51dd2316ffecb258463fde71 (patch)
treeb1c0ef5fb2541619630c00d6596a003a11e79512 /tools/perf/builtin-report.c
parentad5b217b152d99ca3922153500c619d9758dd87a (diff)
downloadkernel_samsung_tuna-2aefa4f733f2c5ce51dd2316ffecb258463fde71.zip
kernel_samsung_tuna-2aefa4f733f2c5ce51dd2316ffecb258463fde71.tar.gz
kernel_samsung_tuna-2aefa4f733f2c5ce51dd2316ffecb258463fde71.tar.bz2
perf tools: sort_dimension__add shouldn't die
Propagate error instead. LKML-Reference: <new-submission> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index 6767f10..b13a7e2 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -473,7 +473,8 @@ int cmd_report(int argc, const char **argv, const char *prefix __used)
setup_sorting(report_usage, options);
if (parent_pattern != default_parent_pattern) {
- sort_dimension__add("parent");
+ if (sort_dimension__add("parent") < 0)
+ return -1;
sort_parent.elide = 1;
} else
symbol_conf.exclude_other = false;