|
@@ -69,7 +69,7 @@ struct map *map__new(struct list_head *dsos__list, u64 start, u64 len,
|
|
|
map->ino = ino;
|
|
|
map->ino_generation = ino_gen;
|
|
|
|
|
|
- if (anon) {
|
|
|
+ if ((anon || no_dso) && type == MAP__FUNCTION) {
|
|
|
snprintf(newfilename, sizeof(newfilename), "/tmp/perf-%d.map", pid);
|
|
|
filename = newfilename;
|
|
|
}
|
|
@@ -93,7 +93,7 @@ struct map *map__new(struct list_head *dsos__list, u64 start, u64 len,
|
|
|
* functions still return NULL, and we avoid the
|
|
|
* unnecessary map__load warning.
|
|
|
*/
|
|
|
- if (no_dso)
|
|
|
+ if (type != MAP__FUNCTION)
|
|
|
dso__set_loaded(dso, map->type);
|
|
|
}
|
|
|
}
|