From 204b456c7c08bc40ffe1f21575461d92a544e92b Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 9 Mar 2005 21:30:05 +0000 Subject: Initial runtime checkin. --- runtime/docs/html/alloc_8h.html | 276 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 276 insertions(+) create mode 100644 runtime/docs/html/alloc_8h.html (limited to 'runtime/docs/html/alloc_8h.html') diff --git a/runtime/docs/html/alloc_8h.html b/runtime/docs/html/alloc_8h.html new file mode 100644 index 00000000..6a5db5ab --- /dev/null +++ b/runtime/docs/html/alloc_8h.html @@ -0,0 +1,276 @@ + + +SystemTap: SystemTap Runtime Library + + +
Intro | Functions | Defines | Enumerations | Enumeration Values
+ + +

alloc.h File Reference

+

+Go to the source code of this file. + + + + + + + + + + + + + + + + + + + + +

Enumerations

enum  errorcode { ERR_NONE = 0, +ERR_NO_MEM + }

Functions

void * _stp_alloc (size_t len)
 Allocates memory within a probe.
void * _stp_calloc (size_t len)
 Allocates and clears memory within a probe.
void * _stp_valloc (size_t len)
 Allocates and clears memory outside a probe.
void _stp_free (void *ptr)
 Frees memory allocated by _stp_alloc or _stp_calloc.
void _stp_vfree (void *ptr)
 Frees memory allocated by _stp_valloc.
+


Enumeration Type Documentation

+

+ + + + +
+ + + + +
enum errorcode
+
+ + + + + +
+   + + +

+

Enumeration values:
+ + + +
ERR_NONE  +
ERR_NO_MEM  +
+
+ +

+Definition at line 1 of file alloc.h.

+


Function Documentation

+

+ + + + +
+ + + + + + + + + +
void* _stp_alloc size_t  len  )  [inline]
+
+ + + + + +
+   + + +

+Allocates memory within a probe. +

+This is used for small allocations from within a running probe where the process cannot sleep.

Parameters:
+ + +
len Number of bytes to allocate.
+
+
Returns:
a valid pointer on success or NULL on failure.
+
Bug:
Currently uses kmalloc (GFP_ATOMIC).
+ +

+Definition at line 12 of file alloc.h. +

+Referenced by _stp_calloc(), and _stp_map_set_str().

+

+ + + + +
+ + + + + + + + + +
void* _stp_calloc size_t  len  )  [inline]
+
+ + + + + +
+   + + +

+Allocates and clears memory within a probe. +

+This is used for small allocations from within a running probe where the process cannot sleep.

Parameters:
+ + +
len Number of bytes to allocate.
+
+
Returns:
a valid pointer on success or NULL on failure.
+
Bug:
Currently uses kmalloc (GFP_ATOMIC).
+ +

+Definition at line 28 of file alloc.h. +

+References _stp_alloc(). +

+Referenced by _stp_map_set_int64(), _stp_map_set_stat(), and _stp_map_set_str().

+

+ + + + +
+ + + + + + + + + +
void _stp_free void *  ptr  )  [inline]
+
+ + + + + +
+   + + +

+Frees memory allocated by _stp_alloc or _stp_calloc. +

+

Parameters:
+ + +
ptr pointer to memory to free
+
+ +

+Definition at line 57 of file alloc.h. +

+Referenced by _stp_list_clear(), _stp_map_key_del(), and _stp_map_set_str().

+

+ + + + +
+ + + + + + + + + +
void* _stp_valloc size_t  len  )  [inline]
+
+ + + + + +
+   + + +

+Allocates and clears memory outside a probe. +

+This is typically used in the module initialization to allocate new maps, lists, etc.

Parameters:
+ + +
len Number of bytes to allocate.
+
+
Returns:
a valid pointer on success or NULL on failure.
+ +

+Definition at line 43 of file alloc.h. +

+Referenced by _stp_map_new().

+

+ + + + +
+ + + + + + + + + +
void _stp_vfree void *  ptr  )  [inline]
+
+ + + + + +
+   + + +

+Frees memory allocated by _stp_valloc. +

+

Parameters:
+ + +
ptr pointer to memory to free
+
+ +

+Definition at line 67 of file alloc.h. +

+Referenced by _stp_map_del().

+


Generated on Wed Mar 9 13:21:28 2005 for SystemTap by  + +doxygen 1.3.9.1
+ + -- cgit