summaryrefslogtreecommitdiffstats
path: root/runtime/map-stat.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-stat.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-stat.c')
-rw-r--r--runtime/map-stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/map-stat.c b/runtime/map-stat.c
index 51377d00..c9ba4b02 100644
--- a/runtime/map-stat.c
+++ b/runtime/map-stat.c
@@ -79,7 +79,7 @@ static MAP _stp_pmap_new_hstat_linear (unsigned max_entries, int ksize, int star
int i;
MAP m;
for_each_cpu(i) {
- m = per_cpu_ptr (map, i);
+ m = _stp_per_cpu_ptr (map, i);
m->hist.type = HIST_LINEAR;
m->hist.start = start;
m->hist.stop = stop;
@@ -106,7 +106,7 @@ static MAP _stp_pmap_new_hstat_log (unsigned max_entries, int key_size, int buck
int i;
MAP m;
for_each_cpu(i) {
- m = per_cpu_ptr (map, i);
+ m = _stp_per_cpu_ptr (map, i);
m->hist.type = HIST_LOG;
m->hist.buckets = buckets;
}