aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r--tools/perf/util/map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index 9b9bd719aa19..ee1dd687a262 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -69,7 +69,7 @@ struct map *map__new(struct list_head *dsos__list, u64 start, u64 len,
69 map->ino = ino; 69 map->ino = ino;
70 map->ino_generation = ino_gen; 70 map->ino_generation = ino_gen;
71 71
72 if (anon) { 72 if ((anon || no_dso) && type == MAP__FUNCTION) {
73 snprintf(newfilename, sizeof(newfilename), "/tmp/perf-%d.map", pid); 73 snprintf(newfilename, sizeof(newfilename), "/tmp/perf-%d.map", pid);
74 filename = newfilename; 74 filename = newfilename;
75 } 75 }
@@ -93,7 +93,7 @@ struct map *map__new(struct list_head *dsos__list, u64 start, u64 len,
93 * functions still return NULL, and we avoid the 93 * functions still return NULL, and we avoid the
94 * unnecessary map__load warning. 94 * unnecessary map__load warning.
95 */ 95 */
96 if (no_dso) 96 if (type != MAP__FUNCTION)
97 dso__set_loaded(dso, map->type); 97 dso__set_loaded(dso, map->type);
98 } 98 }
99 } 99 }