projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf maps: Add maps__refcnt() accessor to allow checking maps pointer
[linux-2.6-microblaze.git]
/
tools
/
perf
/
util
/
maps.h
diff --git
a/tools/perf/util/maps.h
b/tools/perf/util/maps.h
index
bde3390
..
cfb1b79
100644
(file)
--- a/
tools/perf/util/maps.h
+++ b/
tools/perf/util/maps.h
@@
-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)
{