Defines | 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.

Defines

#define _DBG(x, mask, fmt, args...)   do{ if (mask & x) printf("%s: " fmt "\n", __FUNCTION__, ##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 struct luaL_Reg tlsf_f []

Define Documentation

#define _DBG (   x,
  mask,
  fmt,
  args... 
)    do{ if (mask & x) printf("%s: " fmt "\n", __FUNCTION__, ##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

Definition at line 112 of file tlsf_rtt.c.

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

struct luaL_Reg tlsf_f[] [static]
Initial value:
 {
        {"stats", tlsf_stats },
        {"warn", tlsf_warn },
        {"trace", tlsf_trace },
        {NULL, NULL}
}

Definition at line 178 of file tlsf_rtt.c.



ocl
Author(s): OCL Development Team
autogenerated on Mon Sep 14 2015 14:21:47