gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
init_signals.cc File Reference
#include "sim/init_signals.hh"
#include <sys/types.h>
#include <unistd.h>
#include <csignal>
#include <iostream>
#include <string>
#include "base/atomicio.hh"
#include "base/cprintf.hh"
#include "base/misc.hh"
#include "sim/async.hh"
#include "sim/backtrace.hh"
#include "sim/core.hh"
#include "sim/eventq.hh"

Go to the source code of this file.

Functions

static bool setupAltStack ()
 
static void installSignalHandler (int signal, void(*handler)(int sigtype), int flags=SA_RESTART)
 
static void raiseFatalSignal (int signo)
 
void dumpStatsHandler (int sigtype)
 Stats signal handler. More...
 
void dumprstStatsHandler (int sigtype)
 
void exitNowHandler (int sigtype)
 Exit signal handler. More...
 
void abortHandler (int sigtype)
 Abort signal handler. More...
 
static void segvHandler (int sigtype)
 Segmentation fault signal handler. More...
 
static void ioHandler (int sigtype)
 
void initSignals ()
 

Variables

static uint8_t fatalSigStack [2 *SIGSTKSZ]
 

Function Documentation

void abortHandler ( int  sigtype)

Abort signal handler.

Definition at line 138 of file init_signals.cc.

References ccprintf(), curEventQueue(), PowerISA::eq, EventQueue::getCurTick(), print_backtrace(), raiseFatalSignal(), and STATIC_ERR.

Referenced by initSignals().

void dumprstStatsHandler ( int  sigtype)

Definition at line 117 of file init_signals.cc.

References async_event, async_statdump, async_statreset, getEventQueue(), and EventQueue::wakeup().

Referenced by initSignals().

void dumpStatsHandler ( int  sigtype)

Stats signal handler.

Definition at line 108 of file init_signals.cc.

References async_event, async_statdump, getEventQueue(), and EventQueue::wakeup().

Referenced by initSignals().

void exitNowHandler ( int  sigtype)

Exit signal handler.

Definition at line 128 of file init_signals.cc.

References async_event, async_exit, getEventQueue(), and EventQueue::wakeup().

Referenced by initSignals().

void initSignals ( )
static void installSignalHandler ( int  signal,
void(*)(int sigtype)  handler,
int  flags = SA_RESTART 
)
static

Definition at line 78 of file init_signals.cc.

References panic.

Referenced by initSignals().

static void ioHandler ( int  sigtype)
static

Definition at line 163 of file init_signals.cc.

References async_event, async_io, getEventQueue(), and EventQueue::wakeup().

Referenced by initSignals().

static void raiseFatalSignal ( int  signo)
static

Definition at line 93 of file init_signals.cc.

References STATIC_ERR.

Referenced by abortHandler(), and segvHandler().

static void segvHandler ( int  sigtype)
static

Segmentation fault signal handler.

Definition at line 153 of file init_signals.cc.

References print_backtrace(), raiseFatalSignal(), and STATIC_ERR.

Referenced by initSignals().

static bool setupAltStack ( )
static

Definition at line 67 of file init_signals.cc.

References fatalSigStack, and X86ISA::stack.

Referenced by initSignals().

Variable Documentation

uint8_t fatalSigStack[2 *SIGSTKSZ]
static

Definition at line 64 of file init_signals.cc.

Referenced by setupAltStack().


Generated on Fri Jun 9 2017 13:03:59 for gem5 by doxygen 1.8.6