perf maps: Add maps__refcnt() accessor to allow checking maps pointer
[linux-2.6-microblaze.git] / tools / perf / util / maps.h
index bde3390..cfb1b79 100644 (file)
@@ -88,6 +88,11 @@ static inline unsigned int maps__nr_maps(const struct maps *maps)
        return maps->nr_maps;
 }
 
+static inline refcount_t *maps__refcnt(struct maps *maps)
+{
+       return &maps->refcnt;
+}
+
 #ifdef HAVE_LIBUNWIND_SUPPORT
 static inline void *maps__addr_space(struct maps *maps)
 {