]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/map.c
perf machine: Use machine__kernel_map() thoroughly
[karo-tx-linux.git] / tools / perf / util / map.c
index 622c2c9a1e65f7d287fbe1cddad76e9f2e6e8343..2a9d859d30b9e28995309a2647d3eabba7c3bff5 100644 (file)
@@ -235,7 +235,7 @@ struct map *map__new2(u64 start, struct dso *dso, enum map_type type)
  */
 bool __map__is_kernel(const struct map *map)
 {
-       return map->groups->machine->vmlinux_maps[map->type] == map;
+       return machine__kernel_map(map->groups->machine, map->type) == map;
 }
 
 static void map__exit(struct map *map)