summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r--tools/perf/util/map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h
index e3702fd..6796f27 100644
--- a/tools/perf/util/map.h
+++ b/tools/perf/util/map.h
@@ -5,6 +5,7 @@
#include <linux/compiler.h>
#include <linux/list.h>
#include <linux/rbtree.h>
+#include <pthread.h>
#include <stdio.h>
#include <stdbool.h>
#include <linux/types.h>
@@ -60,6 +61,7 @@ struct kmap {
struct maps {
struct rb_root entries;
+ pthread_rwlock_t lock;
struct list_head removed_maps;
};
OpenPOWER on IntegriCloud