gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
init_signals.cc File Reference
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <unistd.h>
#include <csignal>
#include <cstring>
#include <iostream>
#include <string>
#include "sim/init_signals.hh"
#include "base/atomicio.hh"
#include "base/cprintf.hh"
#include "base/logging.hh"
#include "debug/ExternalSignal.hh"
#include "sim/async.hh"
#include "sim/backtrace.hh"
#include "sim/eventq.hh"
#include "sim/sim_exit.hh"

Go to the source code of this file.

Namespaces

namespace  gem5
 Copyright (c) 2024 Arm Limited All rights reserved.
 

Functions

static bool gem5::setupAltStack ()
 
static void gem5::installSignalHandler (int signal, void(*handler)(int sigtype), int flags=SA_RESTART, struct sigaction *old_sa=NULL)
 
static void gem5::raiseFatalSignal (int signo)
 
void gem5::dumpStatsHandler (int sigtype)
 Stats signal handler.
 
void gem5::dumprstStatsHandler (int sigtype)
 
void gem5::exitNowHandler (int sigtype)
 Exit signal handler.
 
void gem5::abortHandler (int sigtype)
 Abort signal handler.
 
static void gem5::segvHandler (int sigtype)
 Segmentation fault signal handler.
 
static void gem5::ioHandler (int sigtype)
 
static void gem5::externalProcessHandler (int sigtype)
 Handles signals from external processes by processing JSON data through shared memory.
 
void gem5::processExternalSignal (void)
 
std::string gem5::extractStringFromJSON (std::string &full_str, std::string start_str, std::string end_str, std::size_t &search_start)
 
void gem5::initSignals ()
 
void gem5::initSigCont ()
 
void gem5::initSigInt ()
 
void gem5::restoreSigInt ()
 

Variables

struct sigaction gem5::old_int_sa
 

Generated on Mon May 26 2025 09:19:16 for gem5 by doxygen 1.13.2