diff options
-rw-r--r-- | tools/perf/util/event.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index 5a6e827a09eb..966d207a1509 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c | |||
@@ -345,15 +345,15 @@ int event__process_mmap(event_t *self, struct perf_session *session) | |||
345 | 345 | ||
346 | map = perf_session__new_module_map(session, | 346 | map = perf_session__new_module_map(session, |
347 | self->mmap.start, | 347 | self->mmap.start, |
348 | short_module_name); | 348 | self->mmap.filename); |
349 | if (map == NULL) | 349 | if (map == NULL) |
350 | goto out_problem; | 350 | goto out_problem; |
351 | 351 | ||
352 | name = strdup(self->mmap.filename); | 352 | name = strdup(short_module_name); |
353 | if (name == NULL) | 353 | if (name == NULL) |
354 | goto out_problem; | 354 | goto out_problem; |
355 | 355 | ||
356 | dso__set_long_name(map->dso, name); | 356 | map->dso->short_name = name; |
357 | map->end = map->start + self->mmap.len; | 357 | map->end = map->start + self->mmap.len; |
358 | } else if (memcmp(self->mmap.filename, kmmap_prefix, | 358 | } else if (memcmp(self->mmap.filename, kmmap_prefix, |
359 | sizeof(kmmap_prefix) - 1) == 0) { | 359 | sizeof(kmmap_prefix) - 1) == 0) { |