![]() |
My Project
debian-1:4.1.1-p2+ds-4build4
|
Go to the source code of this file.
Data Structures | |
struct | omMemCell_t |
Macros | |
#define | TRACK_LEVEL 1 |
#define | CHECK_LEVEL 1 |
#define | KEEP_LEVEL 20 |
#define | MAX_CELLS 100000 |
#define | KEEP_ADDR 100 |
#define | END_CHECK_LEVEL 5 |
#define | myprintf(format, args...) do {} while (0) |
#define | myfflush(what) do {} while (0) |
#define | IS_STICKY_BIN(spec) (spec & 1) |
#define | GET_SIZE(spec) (spec & ((((unsigned long) 1) << 14) -1)) |
#define | SET_SIZE(spec, size) spec = ((spec & ~((((unsigned long) 1) << 14) -1)) | (size)) |
#define | IS_ALIGNED(spec) (spec & (((unsigned long) 1) << 15)) |
#define | IS_ZERO(spec) (spec & (((unsigned long) 1) << 16)) |
#define | IS_BIN(spec) (spec & (((unsigned long) 1) << 17)) |
#define | IS_SPEC_BIN(spec) (spec & (((unsigned long) 1) << 18)) |
#define | IS_INLINE(spec) (spec & (((unsigned long) 1) << 19)) |
#define | DO_FREE(spec) (!(spec & (((unsigned long) 1) << 20)) && !(spec & (((unsigned long) 1) << 21))) |
#define | DO_REALLOC(spec) ((spec & (((unsigned long) 1) << 20)) && (spec & (((unsigned long) 1) << 21))) |
#define | DO_DUP(spec) ((spec & (((unsigned long) 1) << 20)) && ! (spec & (((unsigned long) 1) << 21))) |
#define | DO_CHECK(spec) (spec & (((unsigned long) 1) << 22)) |
#define | DO_FREE_CHECK(spec) (spec & (((unsigned long) 1) << 23)) |
#define | DO_TRACK(spec) (spec & (((unsigned long) 1) << 24)) |
#define | GET_TRACK(spec) (((spec & ((((unsigned long) 1) << 27) | (((unsigned long) 1) << 26) | (((unsigned long) 1) << 25))) >> 25) % 5) + TRACK_LEVEL |
#define | DO_KEEP(spec) (DO_CHECK(spec) && (spec % KEEP_LEVEL == 0)) |
#define | DO_FREE_KEEP(spec) (DO_FREE_CHECK(spec) && (spec % KEEP_LEVEL == 0)) |
#define | IS_FREE_SIZE(spec) (spec & (((unsigned long) 1) << 28)) |
#define | IS_FREE_BIN(spec) (spec & (((unsigned long) 1) << 29)) |
#define | IS_SLOPPY(spec) (spec & (((unsigned long) 1) << 30)) |
#define | IS_FREE_BINADDR(spec) (spec & (((unsigned long) 1) << 31)) |
#define | SPEC_MAX ULONG_MAX |
#define | SIZE_MAX ((((unsigned long) 1) << 14) -1) |
#define | RANGE_MIN (((unsigned long) 1) << 6) |
#define | RANGE_MAX (((unsigned long) 1) << 14) |
#define | PAGES_PER_REGION 128 |
Typedefs | |
typedef omMemCell_t * | omMemCell |
Functions | |
void | TestAlloc (omMemCell cell, unsigned long spec) |
void | TestRealloc (omMemCell cell, unsigned long spec) |
void | TestFree (omMemCell cell) |
void | omtTestAlloc (omMemCell cell, unsigned long spec) |
void | omtTestRealloc (omMemCell cell, unsigned long spec) |
void | omtTestDup (omMemCell cell, unsigned long spec) |
void | omtTestFree (omMemCell cell) |
void | omtTestAllocDebug (omMemCell cell, unsigned long spec) |
void | omtTestReallocDebug (omMemCell cell, unsigned long spec) |
void | omtTestDupDebug (omMemCell cell, unsigned long spec) |
void | omtTestFreeDebug (omMemCell cell) |
void | omtTestAllocKeep (omMemCell cell, unsigned long spec) |
void | omtTestReallocKeep (omMemCell cell, unsigned long spec) |
void | omtTestDupKeep (omMemCell cell, unsigned long spec) |
void | omtTestFreeKeep (omMemCell cell) |
void | InitCellAddrContent (omMemCell cell) |
int | omtTestErrors () |
omBin | omtGetStickyBin (omBin bin) |
void | omtTestDebug (omMemCell cell) |
void | TestAddrContent (void *addr, unsigned long value, size_t size) |
void | TestAddrContentEqual (void *s1, void *s2, size_t size) |
Variables | |
omMemCell_t | cells [] |
struct omMemCell_s |
#define DO_CHECK | ( | spec | ) | (spec & (((unsigned long) 1) << 22)) |
#define DO_DUP | ( | spec | ) | ((spec & (((unsigned long) 1) << 20)) && ! (spec & (((unsigned long) 1) << 21))) |
#define DO_FREE | ( | spec | ) | (!(spec & (((unsigned long) 1) << 20)) && !(spec & (((unsigned long) 1) << 21))) |
#define DO_FREE_CHECK | ( | spec | ) | (spec & (((unsigned long) 1) << 23)) |
#define DO_FREE_KEEP | ( | spec | ) | (DO_FREE_CHECK(spec) && (spec % KEEP_LEVEL == 0)) |
#define DO_KEEP | ( | spec | ) | (DO_CHECK(spec) && (spec % KEEP_LEVEL == 0)) |
#define DO_REALLOC | ( | spec | ) | ((spec & (((unsigned long) 1) << 20)) && (spec & (((unsigned long) 1) << 21))) |
#define DO_TRACK | ( | spec | ) | (spec & (((unsigned long) 1) << 24)) |
#define GET_SIZE | ( | spec | ) | (spec & ((((unsigned long) 1) << 14) -1)) |
#define GET_TRACK | ( | spec | ) | (((spec & ((((unsigned long) 1) << 27) | (((unsigned long) 1) << 26) | (((unsigned long) 1) << 25))) >> 25) % 5) + TRACK_LEVEL |
#define IS_ALIGNED | ( | spec | ) | (spec & (((unsigned long) 1) << 15)) |
#define IS_BIN | ( | spec | ) | (spec & (((unsigned long) 1) << 17)) |
#define IS_FREE_BIN | ( | spec | ) | (spec & (((unsigned long) 1) << 29)) |
#define IS_FREE_BINADDR | ( | spec | ) | (spec & (((unsigned long) 1) << 31)) |
#define IS_FREE_SIZE | ( | spec | ) | (spec & (((unsigned long) 1) << 28)) |
#define IS_INLINE | ( | spec | ) | (spec & (((unsigned long) 1) << 19)) |
#define IS_SLOPPY | ( | spec | ) | (spec & (((unsigned long) 1) << 30)) |
#define IS_SPEC_BIN | ( | spec | ) | (spec & (((unsigned long) 1) << 18)) |
#define IS_ZERO | ( | spec | ) | (spec & (((unsigned long) 1) << 16)) |
void omtTestAlloc | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
Definition at line 32 of file omtTestAlloc.c.
void omtTestAllocDebug | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
void omtTestAllocKeep | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
void omtTestDebug | ( | omMemCell | cell | ) |
Definition at line 34 of file omtTest.c.
void omtTestDup | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
Definition at line 347 of file omtTestAlloc.c.
void omtTestDupDebug | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
void omtTestDupKeep | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
int omtTestErrors | ( | ) |
Definition at line 36 of file omtTestError.c.
void omtTestFree | ( | omMemCell | cell | ) |
Definition at line 134 of file omtTestAlloc.c.
void omtTestFreeDebug | ( | omMemCell | cell | ) |
void omtTestFreeKeep | ( | omMemCell | cell | ) |
void omtTestRealloc | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
Definition at line 179 of file omtTestAlloc.c.
void omtTestReallocDebug | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
void omtTestReallocKeep | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
void TestAddrContent | ( | void * | addr, |
unsigned long | value, | ||
size_t | size | ||
) |
void TestAddrContentEqual | ( | void * | s1, |
void * | s2, | ||
size_t | size | ||
) |
void TestAlloc | ( | omMemCell | cell, |
unsigned long | spec | ||
) |
void TestFree | ( | omMemCell | cell | ) |
void TestRealloc | ( | omMemCell | cell, |
unsigned long | spec | ||
) |