diff options
author | Ingo Molnar <mingo@kernel.org> | 2012-10-25 03:42:03 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2012-10-25 03:42:03 -0400 |
commit | 6ca2a9c6543dd1a307c0250991d4de93550209ce (patch) | |
tree | fc0e6ea775be9bc10e16d2aab31f018f4b027c0c /tools/perf/builtin-annotate.c | |
parent | ce37f400336a34bb6e72c4700f9dcc2a41ff7163 (diff) | |
parent | af3df2cf17f5df079189c3cc88870d28e219496b (diff) |
Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core
Pull perf/core improvements and fixes from Arnaldo Carvalho de Melo:
* Align the 'Ok'/'FAILED!' test results in 'perf test.
* Support interrupted syscalls in 'trace'
* Add an event duration column and filter in 'trace'.
* There are references to the man pages in some tools, so try to build
Documentation when installing, warning the user if that is not possible,
from Borislav Petkov.
* Give user better message if precise is not supported, from David Ahern.
* Try to find cross-built objdump path by using the session environment
information in the perf.data file header, from Irina Tirdea, original
patch and idea by Namhyung Kim.
* Diplays more output on features check for make V=1, so that one can figure
out what is happening by looking at gcc output, etc. From Jiri Olsa.
* Account the nr_entries in rblist properly, fix by Suzuki K. Poulose.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 690fa9a54657..c4bb6457b19e 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
@@ -28,6 +28,7 @@ | |||
28 | #include "util/hist.h" | 28 | #include "util/hist.h" |
29 | #include "util/session.h" | 29 | #include "util/session.h" |
30 | #include "util/tool.h" | 30 | #include "util/tool.h" |
31 | #include "arch/common.h" | ||
31 | 32 | ||
32 | #include <linux/bitmap.h> | 33 | #include <linux/bitmap.h> |
33 | 34 | ||
@@ -186,6 +187,12 @@ static int __cmd_annotate(struct perf_annotate *ann) | |||
186 | goto out_delete; | 187 | goto out_delete; |
187 | } | 188 | } |
188 | 189 | ||
190 | if (!objdump_path) { | ||
191 | ret = perf_session_env__lookup_objdump(&session->header.env); | ||
192 | if (ret) | ||
193 | goto out_delete; | ||
194 | } | ||
195 | |||
189 | ret = perf_session__process_events(session, &ann->tool); | 196 | ret = perf_session__process_events(session, &ann->tool); |
190 | if (ret) | 197 | if (ret) |
191 | goto out_delete; | 198 | goto out_delete; |