gem5
v20.1.0.0
|
#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/logging.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 145 of file init_signals.cc.
References ccprintf(), curEventQueue(), PowerISA::eq, print_backtrace(), raiseFatalSignal(), and STATIC_ERR.
Referenced by initSignals().
void dumprstStatsHandler | ( | int | sigtype | ) |
Definition at line 124 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 115 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 135 of file init_signals.cc.
References async_event, async_exit, getEventQueue(), and EventQueue::wakeup().
Referenced by initSignals().
void initSignals | ( | ) |
Definition at line 183 of file init_signals.cc.
References abortHandler(), dumprstStatsHandler(), dumpStatsHandler(), exitNowHandler(), installSignalHandler(), ioHandler(), segvHandler(), setupAltStack(), and warn.
Referenced by main().
|
static |
Definition at line 85 of file init_signals.cc.
References panic, and ArmISA::sa.
Referenced by initSignals().
|
static |
Definition at line 170 of file init_signals.cc.
References async_event, async_io, getEventQueue(), and EventQueue::wakeup().
Referenced by initSignals().
|
static |
Definition at line 100 of file init_signals.cc.
References STATIC_ERR.
Referenced by abortHandler(), and segvHandler().
|
static |
Segmentation fault signal handler.
Definition at line 160 of file init_signals.cc.
References print_backtrace(), raiseFatalSignal(), and STATIC_ERR.
Referenced by initSignals().
|
static |
Definition at line 70 of file init_signals.cc.
References fatalSigStack, and X86ISA::stack.
Referenced by initSignals().
|
static |
Definition at line 67 of file init_signals.cc.
Referenced by setupAltStack().