openATV enigma2
openATV is an open source SetTopBox Graphical user interface.
bsod.cpp File Reference
#include <sys/klog.h>
#include <vector>
#include <csignal>
#include <fstream>
#include <sstream>
#include <execinfo.h>
#include <dlfcn.h>
#include <lib/base/eenv.h>
#include <lib/base/eerror.h>
#include <lib/base/esimpleconfig.h>
#include <lib/base/nconfig.h>
#include <lib/gdi/gmaindc.h>
#include <asm/ptrace.h>
#include "version_info.h"

Functions

void retrieveLogBuffer (const char **p1, unsigned int *s1, const char **p2, unsigned int *s2)
 
static const std::string getConfigString (const char *key, const char *defaultValue)
 
static void getKlog (FILE *f)
 
static void stringFromFile (FILE *f, const char *context, const char *filename)
 
int getBsodCounter ()
 
void resetBsodCounter ()
 
bool bsodRestart ()
 
void bsodFatal (const char *component)
 
void oops (const mcontext_t &context)
 
void print_backtrace ()
 
void handleFatalSignal (int signum, siginfo_t *si, void *ctx)
 
void bsodCatchSignals ()
 

Variables

static const char * crash_emailaddr
 
static bool bsodhandled = false
 
static bool bsodrestart = true
 
static int bsodcnt = 0
 

Function Documentation

◆ bsodCatchSignals()

void bsodCatchSignals ( )

◆ bsodFatal()

void bsodFatal ( const char *  component)

◆ bsodRestart()

bool bsodRestart ( )

◆ getBsodCounter()

int getBsodCounter ( )

◆ getConfigString()

static const std::string getConfigString ( const char *  key,
const char *  defaultValue 
)
static

◆ getKlog()

static void getKlog ( FILE *  f)
static

◆ handleFatalSignal()

void handleFatalSignal ( int  signum,
siginfo_t *  si,
void *  ctx 
)

◆ oops()

void oops ( const mcontext_t &  context)

◆ print_backtrace()

void print_backtrace ( )

◆ resetBsodCounter()

void resetBsodCounter ( )

◆ retrieveLogBuffer()

void retrieveLogBuffer ( const char **  p1,
unsigned int *  s1,
const char **  p2,
unsigned int *  s2 
)

◆ stringFromFile()

static void stringFromFile ( FILE *  f,
const char *  context,
const char *  filename 
)
static

Variable Documentation

◆ bsodcnt

int bsodcnt = 0
static

◆ bsodhandled

bool bsodhandled = false
static

◆ bsodrestart

bool bsodrestart = true
static

◆ crash_emailaddr

const char* crash_emailaddr
static
Initial value:
=
"the openATV forum"