diff options
author | hunt <hunt> | 2005-11-28 22:08:39 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-11-28 22:08:39 +0000 |
commit | a432e18a24569804c82f14b36ae7d8dfcc245da7 (patch) | |
tree | a59fbb363f9837117053d54ead454895609c4314 /runtime/pmap-gen.c | |
parent | bdf00cf6b089eccd30b5cfec8c06be7b949749d8 (diff) | |
download | systemtap-steved-a432e18a24569804c82f14b36ae7d8dfcc245da7.tar.gz systemtap-steved-a432e18a24569804c82f14b36ae7d8dfcc245da7.tar.xz systemtap-steved-a432e18a24569804c82f14b36ae7d8dfcc245da7.zip |
2005-11-28 Martin Hunt <hunt@redhat.com>
* alloc.c (__stp_valloc_percpu): Use same code for up and smp.
(_stp_per_cpu_ptr): New macro.
* user/alloc.c: Ditto.
* map.c: Use _stp_map_cpu_ptr().
* map-stat.c: Ditto.
* pmap-gen.c: Ditto.
* runtime.h: Include alloc.c
* user/runtime.h: Ditto.
Diffstat (limited to 'runtime/pmap-gen.c')
-rw-r--r-- | runtime/pmap-gen.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/pmap-gen.c b/runtime/pmap-gen.c index 038eba62..a57806d4 100644 --- a/runtime/pmap-gen.c +++ b/runtime/pmap-gen.c @@ -407,7 +407,7 @@ MAP KEYSYM(_stp_pmap_new) (unsigned max_entries) int i; MAP m; for_each_cpu(i) { - m = per_cpu_ptr (map, i); + m = _stp_per_cpu_ptr (map, i); m->get_key = KEYSYM(pmap_get_key); m->copy = KEYSYM(pmap_copy_keys); m->cmp = KEYSYM(pmap_key_cmp); @@ -464,7 +464,7 @@ MAP KEYSYM(_stp_pmap_new) (unsigned max_entries, int htype, ...) int i; MAP m; for_each_cpu(i) { - m = per_cpu_ptr (map, i); + m = _stp_per_cpu_ptr (map, i); m->get_key = KEYSYM(pmap_get_key); m->copy = KEYSYM(pmap_copy_keys); m->cmp = KEYSYM(pmap_key_cmp); @@ -534,7 +534,7 @@ int KEYSYM(__stp_pmap_set) (MAP map, ALLKEYSD(key), VSTYPE val, int add) int KEYSYM(_stp_pmap_set) (MAP map, ALLKEYSD(key), VSTYPE val) { - MAP m = per_cpu_ptr (map, get_cpu()); + MAP m = _stp_per_cpu_ptr (map, get_cpu()); int res = KEYSYM(__stp_pmap_set) (m, ALLKEYS(key), val, 0); put_cpu(); return res; @@ -542,7 +542,7 @@ int KEYSYM(_stp_pmap_set) (MAP map, ALLKEYSD(key), VSTYPE val) int KEYSYM(_stp_pmap_add) (MAP map, ALLKEYSD(key), VSTYPE val) { - MAP m = per_cpu_ptr (map, get_cpu()); + MAP m = _stp_per_cpu_ptr (map, get_cpu()); int res = KEYSYM(__stp_pmap_set) (m, ALLKEYS(key), val, 1); put_cpu(); return res; @@ -561,7 +561,7 @@ VALTYPE KEYSYM(_stp_pmap_get_cpu) (MAP pmap, ALLKEYSD(key)) if (pmap == NULL) return (VALTYPE)0; - map = per_cpu_ptr (pmap, get_cpu()); + map = _stp_per_cpu_ptr (pmap, get_cpu()); hv = KEYSYM(phash) (ALLKEYS(key)); head = &map->hashes[hv]; @@ -639,7 +639,7 @@ VALTYPE KEYSYM(_stp_pmap_get) (MAP pmap, ALLKEYSD(key)) /* now total each cpu */ for_each_cpu(cpu) { - map = per_cpu_ptr (pmap, cpu); + map = _stp_per_cpu_ptr (pmap, cpu); head = &map->hashes[hv]; hlist_for_each(e, head) { n = (struct KEYSYM(pmap_node) *)((long)e - sizeof(struct list_head)); |