diff options
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/util/symbol.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 7b194cf53cc0..758bf5f74e6e 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
| @@ -718,6 +718,8 @@ static int map_groups__split_kallsyms_for_kcore(struct map_groups *kmaps, struct | |||
| 718 | } | 718 | } |
| 719 | 719 | ||
| 720 | pos->start -= curr_map->start - curr_map->pgoff; | 720 | pos->start -= curr_map->start - curr_map->pgoff; |
| 721 | if (pos->end > curr_map->end) | ||
| 722 | pos->end = curr_map->end; | ||
| 721 | if (pos->end) | 723 | if (pos->end) |
| 722 | pos->end -= curr_map->start - curr_map->pgoff; | 724 | pos->end -= curr_map->start - curr_map->pgoff; |
| 723 | symbols__insert(&curr_map->dso->symbols, pos); | 725 | symbols__insert(&curr_map->dso->symbols, pos); |
