summaryrefslogtreecommitdiffstats
path: root/runtime/map.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-28 22:08:39 +0000
committerhunt <hunt>2005-11-28 22:08:39 +0000
commita432e18a24569804c82f14b36ae7d8dfcc245da7 (patch)
treea59fbb363f9837117053d54ead454895609c4314 /runtime/map.c
parentbdf00cf6b089eccd30b5cfec8c06be7b949749d8 (diff)
downloadsystemtap-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/map.c')
-rw-r--r--runtime/map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/map.c b/runtime/map.c
index 70efd365..556cd85f 100644
--- a/runtime/map.c
+++ b/runtime/map.c
@@ -249,7 +249,7 @@ static MAP _stp_pmap_new(unsigned max_entries, int type, int key_size, int data_
return NULL;
for_each_cpu(i) {
- m = per_cpu_ptr (map, i);
+ m = _stp_per_cpu_ptr (map, i);
if (_stp_map_init(m, max_entries, type, key_size, data_size, i)) {
failed = i;
goto err;
@@ -370,7 +370,7 @@ void _stp_pmap_del(MAP map)
return;
for_each_cpu(i) {
- m = per_cpu_ptr (map, i);
+ m = _stp_per_cpu_ptr (map, i);
_stp_vfree(m->membuf);
}
@@ -711,7 +711,7 @@ void _stp_map_printn (MAP map, int n, const char *fmt)
void _stp_pmap_printn_cpu (MAP map, int n, const char *fmt, int cpu)
{
- MAP m = per_cpu_ptr (map, cpu);
+ MAP m = _stp_per_cpu_ptr (map, cpu);
_stp_map_printn (m, n, fmt);
}
@@ -826,7 +826,7 @@ MAP _stp_pmap_agg (MAP map)
_stp_map_clear (agg);
for_each_cpu(i) {
- m = per_cpu_ptr (map, i);
+ m = _stp_per_cpu_ptr (map, i);
/* walk the hash chains. */
for (hash = 0; hash < HASH_TABLE_SIZE; hash++) {
head = &m->hashes[hash];