diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-02 23:16:01 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-03-02 23:16:01 -0500 |
| commit | 013daec9c19b73ef1e8e427dd7c8acca5766c17e (patch) | |
| tree | c14c687f40ec22c5f48e23a08e8ae00c2ddfc2f9 /tools/perf/util/annotate.c | |
| parent | bf13c9a894162a91c8bb7d9555933e9fc3ff7d0e (diff) | |
| parent | 0414855fdc4a40da05221fc6062cccbc0c30f169 (diff) | |
Merge 3.14-rc5 into tty-next
We want these fixes in here
Diffstat (limited to 'tools/perf/util/annotate.c')
| -rw-r--r-- | tools/perf/util/annotate.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 469eb679fb9d..3aa555ff9d89 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
| @@ -8,6 +8,8 @@ | |||
| 8 | */ | 8 | */ |
| 9 | 9 | ||
| 10 | #include "util.h" | 10 | #include "util.h" |
| 11 | #include "ui/ui.h" | ||
| 12 | #include "sort.h" | ||
| 11 | #include "build-id.h" | 13 | #include "build-id.h" |
| 12 | #include "color.h" | 14 | #include "color.h" |
| 13 | #include "cache.h" | 15 | #include "cache.h" |
| @@ -489,7 +491,7 @@ static int symbol__inc_addr_samples(struct symbol *sym, struct map *map, | |||
| 489 | { | 491 | { |
| 490 | struct annotation *notes; | 492 | struct annotation *notes; |
| 491 | 493 | ||
| 492 | if (sym == NULL || use_browser != 1 || !sort__has_sym) | 494 | if (sym == NULL) |
| 493 | return 0; | 495 | return 0; |
| 494 | 496 | ||
| 495 | notes = symbol__annotation(sym); | 497 | notes = symbol__annotation(sym); |
| @@ -1399,3 +1401,8 @@ int hist_entry__annotate(struct hist_entry *he, size_t privsize) | |||
| 1399 | { | 1401 | { |
| 1400 | return symbol__annotate(he->ms.sym, he->ms.map, privsize); | 1402 | return symbol__annotate(he->ms.sym, he->ms.map, privsize); |
| 1401 | } | 1403 | } |
| 1404 | |||
| 1405 | bool ui__has_annotation(void) | ||
| 1406 | { | ||
| 1407 | return use_browser == 1 && sort__has_sym; | ||
| 1408 | } | ||
