CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
blackbox.h File Reference

Black box data recorder for crash dump analysis. More...

#include "cx/cx.h"
#include "cx/string.h"

Go to the source code of this file.

Data Structures

struct  BlackBoxEnt
 

Macros

#define BLACKBOX_SIZE   65535
 Size of the black box buffer in bytes (64KB)
 
#define bboxGetVal(ent)   ((char*)ent + offsetof(BlackBoxEnt, name) + ent->namelen)
 
#define bboxEntSize(ent)   (offsetof(BlackBoxEnt, name) + ent->namelen + ent->vallen)
 

Typedefs

typedef struct BlackBoxEnt BlackBoxEnt
 

Enumerations

enum  BLACKBOX_FLAGS { BBox_Private = 0x01 }
 Flags for black box entries. More...
 

Functions

void bboxInit ()
 
void bboxSet (strref name, strref val, uint8 flags)
 
void bboxDelete (strref name)
 

Variables

char dbgBlackBox []
 Global black box buffer visible to debuggers and crash dump analyzers.
 

Detailed Description

Black box data recorder for crash dump analysis.

Definition in file blackbox.h.