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 | |
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.
-rw-r--r-- | runtime/user/ChangeLog | 6 | ||||
-rw-r--r-- | runtime/user/alloc.c | 8 | ||||
-rw-r--r-- | runtime/user/print.c | 3 | ||||
-rwxr-xr-x | runtime/user/recreate_links | 1 |
4 files changed, 15 insertions, 3 deletions
diff --git a/runtime/user/ChangeLog b/runtime/user/ChangeLog index ff5f1d54..8840eb38 100644 --- a/runtime/user/ChangeLog +++ b/runtime/user/ChangeLog @@ -1,3 +1,9 @@ +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. + 2005-10-26 Martin Hunt <hunt@redhat.com> * recreate_links: Add link to map-gen.c. 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 */ diff --git a/runtime/user/print.c b/runtime/user/print.c index dddb3d7e..261e191d 100644 --- a/runtime/user/print.c +++ b/runtime/user/print.c @@ -60,8 +60,7 @@ static char *next_fmt(char *fmt, int *num) { char *f = fmt; int in_fmt = 0; - dbug ("next_fmt %s\n", fmt); - *num = 0; + *num = 0; while (*f) { if (in_fmt) { if (*f == '%') { diff --git a/runtime/user/recreate_links b/runtime/user/recreate_links index 90fc09f9..bd824145 100755 --- a/runtime/user/recreate_links +++ b/runtime/user/recreate_links @@ -17,3 +17,4 @@ ln -s ../stat.h . ln -s ../stat-common.c . ln -s ../arith.c . ln -s ../map-gen.c . +ln -s ../pmap-gen.c . |