summaryrefslogtreecommitdiffstats
path: root/runtime/alloc.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-10 21:22:35 +0000
committerhunt <hunt>2005-11-10 21:22:35 +0000
commit8d948813b76c1cbeb91379c3a701b95114266243 (patch)
treef3ff657e3a4697ed9ea7eeef82e4ee4e0a45a8fb /runtime/alloc.c
parentc4f0340669f6c859bfd66e277f235bac457d65d1 (diff)
downloadsystemtap-steved-8d948813b76c1cbeb91379c3a701b95114266243.tar.gz
systemtap-steved-8d948813b76c1cbeb91379c3a701b95114266243.tar.xz
systemtap-steved-8d948813b76c1cbeb91379c3a701b95114266243.zip
2005-11-10 Martin Hunt <hunt@redhat.com>
* map.c: Doc updates. * pmap-gen.c: Change a bunch of generated function names to avoid conflicts with maps with the same key and value types.
Diffstat (limited to 'runtime/alloc.c')
-rw-r--r--runtime/alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/alloc.c b/runtime/alloc.c
index 8f34dea3..b647a532 100644
--- a/runtime/alloc.c
+++ b/runtime/alloc.c
@@ -115,7 +115,7 @@ void *_stp_valloc_cpu(size_t len, int cpu)
struct _stp_percpu_data {
void *ptrs[NR_CPUS];
- void *blkp;
+ void *data;
};
#ifdef CONFIG_SMP
@@ -187,7 +187,7 @@ void _stp_vfree_percpu(const void *ptr)
#define _stp_valloc_percpu(type) \
((type *)(__stp_valloc_percpu(sizeof(type), __alignof__(type))))
-#define _stp_percpu_dptr(ptr) (((struct _stp_percpu_data *)~(unsigned long)(ptr))->blkp)
+#define _stp_percpu_dptr(ptr) (((struct _stp_percpu_data *)~(unsigned long)(ptr))->data)
/** Frees memory allocated by _stp_alloc or _stp_calloc.
* @param ptr pointer to memory to free