Macros | Functions | Variables
tlsf_rtt.c File Reference
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include "tlsf.h"
#include "tlsf_rtt.h"
Include dependency graph for tlsf_rtt.c:

Go to the source code of this file.

Macros

#define _DBG(x, mask, fmt, ...)   do{ if (mask & x) printf("%s: " fmt "\n", __FUNCTION__, __VA_ARGS__); } while(0)
 
#define DEBUG_TLSF_ALLOC   (1<<0)
 
#define DEBUG_TLSF_FREE   (1<<1)
 
#define DEBUG_TLSF_TRACE   (1<<20)
 
#define RTL_TLSF_DEBUG   1
 
#define TLSF_POOL_MIN_SIZE   1*1014*1024
 

Functions

struct lua_tlsf_infoget_context_tlsf_info (lua_State *L)
 
void register_tlsf_api (lua_State *L)
 
void set_context_tlsf_info (struct lua_tlsf_info *tlsf_inf)
 
void * tlsf_alloc (void *ud, void *ptr, size_t osize, size_t nsize)
 
void tlsf_rtt_free_mp (struct lua_tlsf_info *tlsf_inf)
 
int tlsf_rtt_incmem (struct lua_tlsf_info *tlsf_inf, size_t sz)
 
int tlsf_rtt_init_mp (struct lua_tlsf_info *tlsf_inf, size_t sz)
 
static int tlsf_stats (lua_State *L)
 
static int tlsf_trace (lua_State *L)
 
static void tlsf_trace_hook (lua_State *L, lua_Debug *ar)
 
static int tlsf_warn (lua_State *L)
 

Variables

static const struct luaL_Reg tlsf_f []
 

Macro Definition Documentation

#define _DBG (   x,
  mask,
  fmt,
  ... 
)    do{ if (mask & x) printf("%s: " fmt "\n", __FUNCTION__, __VA_ARGS__); } while(0)

Definition at line 16 of file tlsf_rtt.c.

#define DEBUG_TLSF_ALLOC   (1<<0)

Definition at line 11 of file tlsf_rtt.c.

#define DEBUG_TLSF_FREE   (1<<1)

Definition at line 12 of file tlsf_rtt.c.

#define DEBUG_TLSF_TRACE   (1<<20)

Definition at line 13 of file tlsf_rtt.c.

#define RTL_TLSF_DEBUG   1

Definition at line 9 of file tlsf_rtt.c.

#define TLSF_POOL_MIN_SIZE   1*1014*1024

Definition at line 21 of file tlsf_rtt.c.

Function Documentation

struct lua_tlsf_info* get_context_tlsf_info ( lua_State L)

Definition at line 112 of file tlsf_rtt.c.

void register_tlsf_api ( lua_State L)

Definition at line 185 of file tlsf_rtt.c.

void set_context_tlsf_info ( struct lua_tlsf_info tlsf_inf)

Definition at line 105 of file tlsf_rtt.c.

void* tlsf_alloc ( void *  ud,
void *  ptr,
size_t  osize,
size_t  nsize 
)

Definition at line 68 of file tlsf_rtt.c.

void tlsf_rtt_free_mp ( struct lua_tlsf_info tlsf_inf)

Definition at line 50 of file tlsf_rtt.c.

int tlsf_rtt_incmem ( struct lua_tlsf_info tlsf_inf,
size_t  sz 
)

Definition at line 88 of file tlsf_rtt.c.

int tlsf_rtt_init_mp ( struct lua_tlsf_info tlsf_inf,
size_t  sz 
)

Definition at line 24 of file tlsf_rtt.c.

static int tlsf_stats ( lua_State L)
static

Definition at line 168 of file tlsf_rtt.c.

static int tlsf_trace ( lua_State L)
static

Definition at line 119 of file tlsf_rtt.c.

static void tlsf_trace_hook ( lua_State L,
lua_Debug ar 
)
static

Definition at line 60 of file tlsf_rtt.c.

static int tlsf_warn ( lua_State L)
static

Definition at line 145 of file tlsf_rtt.c.

Variable Documentation

const struct luaL_Reg tlsf_f[]
static
Initial value:
= {
{"stats", tlsf_stats },
{"warn", tlsf_warn },
{"trace", tlsf_trace },
{NULL, NULL}
}
static int tlsf_trace(lua_State *L)
Definition: tlsf_rtt.c:119
static int tlsf_warn(lua_State *L)
Definition: tlsf_rtt.c:145
static int tlsf_stats(lua_State *L)
Definition: tlsf_rtt.c:168

Definition at line 178 of file tlsf_rtt.c.



ocl
Author(s): OCL Development Team
autogenerated on Wed Jun 26 2019 19:26:27