summaryrefslogtreecommitdiffstats
path: root/runtime/alloc.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-05-26 07:43:25 +0000
committerhunt <hunt>2005-05-26 07:43:25 +0000
commitabedf3db3774b54ee4ed227e3ae69e55fb0ff76c (patch)
tree77bf164eda3f977ba0e964c92493ea8c248fb6f3 /runtime/alloc.c
parent3750373a50833fcda902407e5b260cb8c5799ad6 (diff)
downloadsystemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.tar.gz
systemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.tar.xz
systemtap-steved-abedf3db3774b54ee4ed227e3ae69e55fb0ff76c.zip
2005-05-26 Martin Hunt <hunt@redhat.com>
* current.c (_stp_sprint_regs): Implement for i386. * sym.c (_stp_symbol_sprint): Check name before trying to print it. (_stp_symbol_print): Change to macro that calls _stp_symbol_sprint().
Diffstat (limited to 'runtime/alloc.c')
-rw-r--r--runtime/alloc.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/runtime/alloc.c b/runtime/alloc.c
index 9b348b27..480484d3 100644
--- a/runtime/alloc.c
+++ b/runtime/alloc.c
@@ -1,7 +1,6 @@
-#ifndef _ALLOC_C_
+#ifndef _ALLOC_C_ /* -*- linux-c -*- */
#define _ALLOC_C_
-/* -*- linux-c -*- */
/** @file alloc.c
* @brief Memory functions.
*/
@@ -11,9 +10,6 @@
* send a signal to the user-space daemon that will trigger the module to
* be unloaded.
* @todo Need error handling for memory allocations
- * @todo Some of these currently use kmalloc (GFP_ATOMIC) for
- * small allocations. This should be evaluated for performance
- * and stability.
* @{
*/
@@ -25,7 +21,7 @@ enum errorcode _stp_error = ERR_NONE;
* probe where the process cannot sleep.
* @param len Number of bytes to allocate.
* @return a valid pointer on success or NULL on failure.
- * @bug Currently uses kmalloc (GFP_ATOMIC).
+ * @note Not currently used by the runtime. Deprecate?
*/
void *_stp_alloc(size_t len)
@@ -41,7 +37,7 @@ void *_stp_alloc(size_t len)
* probe where the process cannot sleep.
* @param len Number of bytes to allocate.
* @return a valid pointer on success or NULL on failure.
- * @bug Currently uses kmalloc (GFP_ATOMIC).
+ * @note Not currently used by the runtime. Deprecate?
*/
void *_stp_calloc(size_t len)
@@ -71,6 +67,7 @@ void *_stp_valloc(size_t len)
/** Frees memory allocated by _stp_alloc or _stp_calloc.
* @param ptr pointer to memory to free
+ * @note Not currently used by the runtime. Deprecate?
*/
void _stp_free(void *ptr)