diff options
Diffstat (limited to 'tools/perf/util/annotate.c')
-rw-r--r-- | tools/perf/util/annotate.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.c b/tools/perf/util/annotate.c index 2baa22933b0e..f91775b4bc3c 100644 --- a/tools/perf/util/annotate.c +++ b/tools/perf/util/annotate.c | |||
@@ -819,6 +819,11 @@ static int __symbol__inc_addr_samples(struct symbol *sym, struct map *map, | |||
819 | 819 | ||
820 | offset = addr - sym->start; | 820 | offset = addr - sym->start; |
821 | h = annotated_source__histogram(src, evidx); | 821 | h = annotated_source__histogram(src, evidx); |
822 | if (h == NULL) { | ||
823 | pr_debug("%s(%d): ENOMEM! sym->name=%s, start=%#" PRIx64 ", addr=%#" PRIx64 ", end=%#" PRIx64 ", func: %d\n", | ||
824 | __func__, __LINE__, sym->name, sym->start, addr, sym->end, sym->type == STT_FUNC); | ||
825 | return -ENOMEM; | ||
826 | } | ||
822 | h->nr_samples++; | 827 | h->nr_samples++; |
823 | h->addr[offset].nr_samples++; | 828 | h->addr[offset].nr_samples++; |
824 | h->period += sample->period; | 829 | h->period += sample->period; |