Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph...
[firefly-linux-kernel-4.4.55.git] / tools / perf / util / map.h
index d73e687b224e4e0d3b427f1244695ea4e19c4fcb..57829e89b78b2f22e1977bb7c2ca2c315bcfa5f0 100644 (file)
@@ -256,4 +256,11 @@ int map_groups__fixup_overlappings(struct map_groups *mg, struct map *map,
 struct map *map_groups__find_by_name(struct map_groups *mg,
                                     enum map_type type, const char *name);
 
+bool __map__is_kernel(const struct map *map);
+
+static inline bool __map__is_kmodule(const struct map *map)
+{
+       return !__map__is_kernel(map);
+}
+
 #endif /* __PERF_MAP_H */