aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
authorMike Galbraith <[email protected]>2009-07-02 06:05:58 +0000
committerIngo Molnar <[email protected]>2009-07-02 06:42:20 +0000
commit9974f496782b7612e36a143bedda858f1cb953d4 (patch)
tree3552e4515a40691a9ae5e769117ee3676a6cab70 /tools/perf/builtin-annotate.c
parentperf stat: Handle pipe read failures in perf stat (diff)
downloadkernel-9974f496782b7612e36a143bedda858f1cb953d4.tar.gz
kernel-9974f496782b7612e36a143bedda858f1cb953d4.zip
perf_counter tools: Make symbol loading consistently return number of loaded symbols
perf_counter tools: Make symbol loading consistently return number of loaded symbols. Signed-off-by: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 132de8b28dbb..3becc8a35bee 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -172,7 +172,7 @@ static int load_kernel(void)
return -1;
err = dso__load_kernel(kernel_dso, vmlinux, NULL, verbose);
- if (err) {
+ if (err <= 0) {
dso__delete(kernel_dso);
kernel_dso = NULL;
} else