summaryrefslogtreecommitdiffstats
path: root/runtime/map.h
diff options
context:
space:
mode:
authorhunt <hunt>2005-12-14 21:06:57 +0000
committerhunt <hunt>2005-12-14 21:06:57 +0000
commitc5a2dde1672adc9e326fda6533e9dd90f69dc2f1 (patch)
tree69db3e637edec2e4ffcc1aec241e4cd53be4e50b /runtime/map.h
parent51566dc440ab46954f4bfc96048ca1576867297d (diff)
downloadsystemtap-steved-c5a2dde1672adc9e326fda6533e9dd90f69dc2f1.tar.gz
systemtap-steved-c5a2dde1672adc9e326fda6533e9dd90f69dc2f1.tar.xz
systemtap-steved-c5a2dde1672adc9e326fda6533e9dd90f69dc2f1.zip
2005-12-14 Martin Hunt <hunt@redhat.com>
* pmap-gen.c (_stp_pmap_new_*): Initialize lock. (_stp_pmap_set_*): Lock map while in use. (_stp_pmap_add_*): Lock map while in use. (_stp_pmap_get_cpu): Ditto. (_stp_pmap_get): Lock each per-cpu map. * map-gen.c: Define and use NULLRET for a NULL return value. * map.c (_stp_pmap_clear): New function. (_stp_pmap_agg): Lock each per-cpu map as it gets aggregated.
Diffstat (limited to 'runtime/map.h')
-rw-r--r--runtime/map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/map.h b/runtime/map.h
index cc470e19..4bb8aee2 100644
--- a/runtime/map.h
+++ b/runtime/map.h
@@ -102,6 +102,8 @@ struct map_root {
int data_offset;
+ spinlock_t lock;
+
/* the hash table for this array */
struct hlist_head hashes[HASH_TABLE_SIZE];