diff options
author | hunt <hunt> | 2005-11-08 19:26:16 +0000 |
---|---|---|
committer | hunt <hunt> | 2005-11-08 19:26:16 +0000 |
commit | 446ffd97017f72652b64c43bf25fc5fccbb3ddf0 (patch) | |
tree | 6cf177e4d820eabf7ca402a29ab61a0e225de34a /runtime/user/alloc.c | |
parent | b5c4668faa92b45d19ee38b64fc43684df1c365f (diff) | |
download | systemtap-steved-446ffd97017f72652b64c43bf25fc5fccbb3ddf0.tar.gz systemtap-steved-446ffd97017f72652b64c43bf25fc5fccbb3ddf0.tar.xz systemtap-steved-446ffd97017f72652b64c43bf25fc5fccbb3ddf0.zip |
2005-11-08 Martin Hunt <hunt@redhat.com>
* recreate_links: Add link to pmap-gen.c
* print.c (next_fmt): Remove unneeded dbug().
* alloc.c: Update to reflect changes to runtime/alloc.c.
Diffstat (limited to 'runtime/user/alloc.c')
-rw-r--r-- | runtime/user/alloc.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/user/alloc.c b/runtime/user/alloc.c index c9d36f3f..9c7fa5c0 100644 --- a/runtime/user/alloc.c +++ b/runtime/user/alloc.c @@ -38,6 +38,7 @@ void *_stp_alloc(size_t len) _stp_errorcode = ERR_NO_MEM; return ptr; } +#define _stp_alloc_cpu(len, cpu) _stp_alloc(len) /** Allocates and clears memory within a probe. * This is used for small allocations from within a running @@ -71,7 +72,12 @@ void *_stp_valloc(size_t len) _stp_errorcode = ERR_NO_MEM; return ptr; } - +#define _stp_valloc_cpu(len, cpu) _stp_valloc(len) +#define __stp_valloc_percpu(size,align) __alloc_percpu(size,align) +#define _stp_vfree_percpu(objp) free_percpu(objp) +#define _stp_valloc_percpu(type) \ + ((type *)(__stp_valloc_percpu(sizeof(type), __alignof__(type)))) +#define _stp_percpu_dptr(ptr) (((struct percpu_data *)~(unsigned long)(ptr))->blkp) /** Frees memory allocated by _stp_alloc or _stp_calloc. * @param ptr pointer to memory to free */ |