|
umem
1.0.1
|
#include "config.h"#include <sys/types.h>#include <sys/time.h>#include "sol_compat.h"#include <stdarg.h>Go to the source code of this file.
Macros | |
| #define | offsetof(s, m) ((size_t)(&(((s *)0)->m))) |
| #define | ASSERT(assertion) |
Functions | |
| void | debug_printf (const char *format,...) |
| void | log_message (const char *format,...) |
| int | highbit (ulong_t) __attribute__((pure)) |
| int | lowbit (ulong_t) __attribute__((pure)) |
| void | hrt2ts (hrtime_t hrt, timestruc_t *tsp) |
| int | print_sym (void *pointer) |
| void | umem_printf (const char *format,...) |
| void | umem_vprintf (const char *format, va_list) |
| void | umem_printf_warn (void *ignored, const char *format,...) |
| void | umem_error_enter (const char *) |
| void | umem_panic (const char *format,...) __attribute__((noreturn)) |
| void | umem_err_recoverable (const char *format,...) |
| int | __umem_assert_failed (const char *assertion, const char *file, int line) __attribute__((noreturn)) |
| void * | getfp (void) |
| int | getpcstack (uintptr_t *pcstack, int pcstack_limit, int check_sighandler) |
Variables | |
| uint_t | umem_abort |
| uint_t | umem_output |
| caddr_t | umem_min_stack |
| caddr_t | umem_max_stack |
| #define ASSERT | ( | assertion | ) |
Referenced by _umem_alloc_align(), _vmem_extend_alloc(), memalign(), umem_cache_create(), umem_cache_update(), umem_create_update_thread(), umem_init(), umem_process_updates(), vmem_add(), vmem_alloc(), and vmem_contains().
| #define offsetof | ( | s, | |
| m | |||
| ) | ((size_t)(&(((s *)0)->m))) |
Referenced by vmem_no_debug().
| int __umem_assert_failed | ( | const char * | assertion, |
| const char * | file, | ||
| int | line | ||
| ) |
References umem_panic().
| void debug_printf | ( | const char * | format, |
| ... | |||
| ) |
References UMEM_ERRFD, and UMEM_MAX_ERROR_SIZE.
| void* getfp | ( | void | ) |
Referenced by getpcstack().
| int getpcstack | ( | uintptr_t * | pcstack, |
| int | pcstack_limit, | ||
| int | check_sighandler | ||
| ) |
References getfp(), umem_max_stack, umem_min_stack, and umem_panic().
| int highbit | ( | ulong_t | ) |
| void hrt2ts | ( | hrtime_t | hrt, |
| timestruc_t * | tsp | ||
| ) |
References NANOSEC.
| void log_message | ( | const char * | format, |
| ... | |||
| ) |
References UMEM_ERRFD, UMEM_MAX_ERROR_SIZE, and umem_output.
Referenced by umem_process_value(), umem_setup_envvars(), and vmem_heap_init().
| int lowbit | ( | ulong_t | ) |
| int print_sym | ( | void * | pointer | ) |
References umem_printf().
| void umem_err_recoverable | ( | const char * | format, |
| ... | |||
| ) |
References umem_error_enter(), and umem_vprintf().
| void umem_error_enter | ( | const char * | ) |
References issetugid, UMEM_ERRFD, and umem_output.
Referenced by umem_err_recoverable(), umem_panic(), and umem_vprintf().
| void umem_panic | ( | const char * | format, |
| ... | |||
| ) |
References umem_error_enter(), and umem_vprintf().
Referenced by __umem_assert_failed(), getpcstack(), umem_init(), vmem_add(), and vmem_xalloc().
| void umem_printf | ( | const char * | format, |
| ... | |||
| ) |
References umem_vprintf().
Referenced by print_sym().
| void umem_printf_warn | ( | void * | ignored, |
| const char * | format, | ||
| ... | |||
| ) |
References umem_vprintf().
| void umem_vprintf | ( | const char * | format, |
| va_list | |||
| ) |
References umem_error_enter(), and UMEM_MAX_ERROR_SIZE.
Referenced by umem_err_recoverable(), umem_panic(), umem_printf(), and umem_printf_warn().
| uint_t umem_abort |
| caddr_t umem_max_stack |
Referenced by getpcstack(), and umem_startup().
| caddr_t umem_min_stack |
Referenced by getpcstack(), and umem_startup().
| uint_t umem_output |
Referenced by log_message(), and umem_error_enter().
1.8.14