My Project
|
Go to the source code of this file.
Macros | |
#define | omIsTrackAddr(addr) 0 |
#define | omIsTrackAddrPage(page) 0 |
#define | omIsNormalBinPageAddr(addr) omIsBinPageAddr(addr) |
#define | omIsBinAddrTrackAddr(addr) 0 |
#define | OM_FBIN 1 /* size_bin is bin */ |
#define | OM_FSIZE 2 /* size_bin is size */ |
#define | OM_FUSED 4 /* is in use, if set */ |
#define | OM_FKEPT 8 /* had been freed, if set */ |
#define | OM_FSTATIC 16 /* if set, considered to be static, i.e. never be freed */ |
#define | OM_FZERO 32 /* for Alloc0 */ |
#define | OM_FALIGN 64 /* for AllocAligned */ |
#define | OM_FSLOPPY 128 /* be sloppy about arguments */ |
#define | OM_FBINADDR 256 /* addr is bin addr */ |
#define | OM_FKEEP 512 /* addr is never really freed */ |
#define | OM_FMAX 1024 - OM_FBIN - OM_FUSED |
#define | omGetUsedBlocksOfPage(page) (page->used_blocks) |
#define | omIsStaticTrackAddr(addr) 0 |
#define | omCheckReturn(cond) do {omError_t _status = cond; if (_status) return _status;} while (0) |
#define | omCheckReturnError(cond, error) do {if (cond) return omReportError(error, report, OM_FLR_VAL, "");} while (0) |
#define | omCheckReturnCorrupted(cond) omCheckReturnError(cond, omError_MemoryCorrupted) |
#define | omAddrCheckReturn(cond) |
#define | omAddrCheckReturnError(cond, error) do {if (cond) return omReportAddrError(error, report, addr, bin_size, flags, OM_FLR_VAL, "");} while (0) |
#define | omAddrCheckReturnCorrupted(cond) omAddrCheckReturnError(cond, omError_MemoryCorrupted) |
Typedefs | |
typedef unsigned short | omTrackFlags_t |
Functions | |
void * | _omDebugAlloc (void *size_bin, omTrackFlags_t flags, OM_CTFL_DECL) |
void * | _omDebugRealloc (void *old_addr, void *old_size_bin, void *new_size_bin, omTrackFlags_t old_flags, omTrackFlags_t new_flags, OM_CTFL_DECL) |
void | _omDebugFree (void *addr, void *size_bin, omTrackFlags_t flags, OM_CFL_DECL) |
void * | _omDebugMemDup (void *addr, omTrackFlags_t flags, OM_CTFL_DECL) |
char * | _omDebugStrDup (const char *addr, OM_TFL_DECL) |
omError_t | _omDebugBin (omBin bin, OM_CFL_DECL) |
omError_t | _omDebugMemory (OM_CFL_DECL) |
omError_t | _omDebugAddr (void *addr, void *bin_size, omTrackFlags_t flags, OM_CFL_DECL) |
void | omFreeKeptAddr () |
void | omPrintUsedAddrs (FILE *fd, int max_frames) |
void | omPrintUsedTrackAddrs (FILE *fd, int max_frames) |
void | omMarkAsStaticAddr (void *addr) |
void | omMarkMemoryAsStatic () |
void | omUnMarkAsStaticAddr (void *addr) |
void | omUnMarkMemoryAsStatic () |
void | omFreeKeptAddrFromBin (omBin bin) |
omError_t | omCheckPtr (const void *ptr, omError_t report, OM_FLR_DECL) |
omError_t | _omCheckAddr (void *addr, void *size_bin, omTrackFlags_t flags, char check, omError_t report, OM_FLR_DECL) |
omError_t | omDoCheckBinAddr (void *addr, void *bin_size, omTrackFlags_t flags, char level, omError_t report, OM_FLR_DECL) |
omError_t | _omCheckBin (omBin bin, int normal_bin, char check, omError_t report, OM_FLR_DECL) |
omError_t | _omCheckMemory (char check, omError_t report, OM_FLR_DECL) |
omError_t | omReportAddrError (omError_t error, omError_t report, void *addr, void *bin_size, omTrackFlags_t flags, OM_FLR_DECL, const char *fmt,...) |
omError_t | omDoCheckBin (omBin bin, int normal_bin, char level, omError_t report, OM_FLR_DECL) |
void | omIterateTroughAddrs (int normal, int track, void(*CallBackUsed)(void *), void(*CallBackFree)(void *)) |
void | omIterateTroughBinAddrs (omBin bin, void(*CallBackUsed)(void *), void(*CallBackFree)(void *)) |
omError_t | omDoCheckAddr (void *addr, void *bin_size, omTrackFlags_t flags, char level, omError_t report, OM_FLR_DECL) |
int | omIsInKeptAddrList (void *addr) |
void * | omAddr_2_OutAddr (void *addr) |
int | omIsKnownMemoryRegion (omBinPageRegion region) |
omError_t | omCheckBinPageRegion (omBinPageRegion region, int level, omError_t report, OM_FLR_DECL) |
omError_t | omCheckBinPageRegions (int level, omError_t report, OM_FLR_DECL) |
omBinPageRegion | omFindRegionOfAddr (void *addr) |
int | omIsAddrOnFreeBinPage (void *addr) |
Variables | |
void * | om_KeptAddr |
void * | om_LastKeptAddr |
unsigned long | om_MaxAddr |
unsigned long | om_MinAddr |
void * | om_AlwaysKeptAddrs |
#define OM_FSTATIC 16 /* if set, considered to be static, i.e. never be freed */ |
#define omAddrCheckReturn | ( | cond | ) |
#define omAddrCheckReturnCorrupted | ( | cond | ) | omAddrCheckReturnError(cond, omError_MemoryCorrupted) |
#define omCheckReturnCorrupted | ( | cond | ) | omCheckReturnError(cond, omError_MemoryCorrupted) |
#define omIsNormalBinPageAddr | ( | addr | ) | omIsBinPageAddr(addr) |
typedef unsigned short omTrackFlags_t |
omError_t _omCheckAddr | ( | void * | addr, |
void * | size_bin, | ||
omTrackFlags_t | flags, | ||
char | check, | ||
omError_t | report, | ||
OM_FLR_DECL | |||
) |
Definition at line 36 of file omDebugCheck.c.
Definition at line 49 of file omDebugCheck.c.
Definition at line 58 of file omDebugCheck.c.
omError_t _omDebugAddr | ( | void * | addr, |
void * | bin_size, | ||
omTrackFlags_t | flags, | ||
OM_CFL_DECL | |||
) |
Definition at line 278 of file omDebug.c.
void * _omDebugAlloc | ( | void * | size_bin, |
omTrackFlags_t | flags, | ||
OM_CTFL_DECL | |||
) |
Definition at line 110 of file omDebug.c.
void _omDebugFree | ( | void * | addr, |
void * | size_bin, | ||
omTrackFlags_t | flags, | ||
OM_CFL_DECL | |||
) |
Definition at line 182 of file omDebug.c.
void * _omDebugMemDup | ( | void * | addr, |
omTrackFlags_t | flags, | ||
OM_CTFL_DECL | |||
) |
Definition at line 201 of file omDebug.c.
omError_t _omDebugMemory | ( | OM_CFL_DECL | ) |
void * _omDebugRealloc | ( | void * | old_addr, |
void * | old_size_bin, | ||
void * | new_size_bin, | ||
omTrackFlags_t | old_flags, | ||
omTrackFlags_t | new_flags, | ||
OM_CTFL_DECL | |||
) |
Definition at line 147 of file omDebug.c.
char * _omDebugStrDup | ( | const char * | addr, |
OM_TFL_DECL | |||
) |
Definition at line 231 of file omDebug.c.
void * omAddr_2_OutAddr | ( | void * | addr | ) |
omError_t omCheckBinPageRegion | ( | omBinPageRegion | region, |
int | level, | ||
omError_t | report, | ||
OM_FLR_DECL | |||
) |
Definition at line 505 of file omBinPage.c.
Definition at line 531 of file omBinPage.c.
Definition at line 136 of file omDebugCheck.c.
omError_t omDoCheckAddr | ( | void * | addr, |
void * | bin_size, | ||
omTrackFlags_t | flags, | ||
char | level, | ||
omError_t | report, | ||
OM_FLR_DECL | |||
) |
Definition at line 146 of file omDebugCheck.c.
Definition at line 253 of file omDebugCheck.c.
omError_t omDoCheckBinAddr | ( | void * | addr, |
void * | bin_size, | ||
omTrackFlags_t | flags, | ||
char | level, | ||
omError_t | report, | ||
OM_FLR_DECL | |||
) |
Definition at line 198 of file omDebugCheck.c.
omBinPageRegion omFindRegionOfAddr | ( | void * | addr | ) |
Definition at line 578 of file omBinPage.c.
void omFreeKeptAddr | ( | ) |
Definition at line 609 of file omDebug.c.
void omFreeKeptAddrFromBin | ( | omBin | bin | ) |
Definition at line 542 of file omDebug.c.
int omIsAddrOnFreeBinPage | ( | void * | addr | ) |
Definition at line 595 of file omBinPage.c.
int omIsInKeptAddrList | ( | void * | addr | ) |
Definition at line 743 of file omDebugTrack.c.
int omIsKnownMemoryRegion | ( | omBinPageRegion | region | ) |
Definition at line 489 of file omBinPage.c.
void omIterateTroughAddrs | ( | int | normal, |
int | track, | ||
void(*)(void *) | CallBackUsed, | ||
void(*)(void *) | CallBackFree | ||
) |
Definition at line 503 of file omDebugCheck.c.
void omIterateTroughBinAddrs | ( | omBin | bin, |
void(*)(void *) | CallBackUsed, | ||
void(*)(void *) | CallBackFree | ||
) |
Definition at line 464 of file omDebugCheck.c.
void omMarkAsStaticAddr | ( | void * | addr | ) |
void omMarkMemoryAsStatic | ( | ) |
void omPrintUsedAddrs | ( | FILE * | fd, |
int | max_frames | ||
) |
Definition at line 565 of file omDebugCheck.c.
void omPrintUsedTrackAddrs | ( | FILE * | fd, |
int | max_frames | ||
) |
Definition at line 576 of file omDebugCheck.c.
omError_t omReportAddrError | ( | omError_t | error, |
omError_t | report, | ||
void * | addr, | ||
void * | bin_size, | ||
omTrackFlags_t | flags, | ||
OM_FLR_DECL | , | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 394 of file omDebugCheck.c.
void omUnMarkAsStaticAddr | ( | void * | addr | ) |
void omUnMarkMemoryAsStatic | ( | ) |
|
extern |
Definition at line 19 of file omDebugCheck.c.
|
extern |
Definition at line 20 of file omDebugCheck.c.