gem5
|
#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] |
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 | ( | ) |
Definition at line 176 of file init_signals.cc.
References abortHandler(), dumprstStatsHandler(), dumpStatsHandler(), exitNowHandler(), installSignalHandler(), ioHandler(), segvHandler(), setupAltStack(), and warn.
Referenced by main().
|
static |
|
static |
Definition at line 163 of file init_signals.cc.
References async_event, async_io, getEventQueue(), and EventQueue::wakeup().
Referenced by initSignals().
|
static |
Definition at line 93 of file init_signals.cc.
References STATIC_ERR.
Referenced by abortHandler(), and segvHandler().
|
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 |
Definition at line 67 of file init_signals.cc.
References fatalSigStack, and X86ISA::stack.
Referenced by initSignals().
|
static |
Definition at line 64 of file init_signals.cc.
Referenced by setupAltStack().