Geant4_10
Macros | Functions | Variables
ProtectedMemory.cc File Reference
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <libgen.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <errno.h>
#include <assert.h>
#include <signal.h>
#include <execinfo.h>
#include <sys/syscall.h>
#include <pthread.h>
#include "tls.hh"
#include "memoryprotection/UDSignals.h"
#include "memoryprotection/MemorySegment.h"
Include dependency graph for ProtectedMemory.cc:

Go to the source code of this file.

Macros

#define MAXTHREADS   128
 

Functions

voidAllocateInProtectedHeap (size_t size)
 
void PhaseChange ()
 
void BuildProtectedMemory (size_t totalHeap)
 
void addThread ()
 
void setuphandlers ()
 
void starttracer ()
 
void finishtracer ()
 
void StartDetection ()
 
void FinishDetection ()
 

Variables

int numberOfThreads = 0
 
pid_t threads [MAXTHREADS]
 
pid_t tracerpid
 

Macro Definition Documentation

#define MAXTHREADS   128

Definition at line 456 of file ProtectedMemory.cc.

Function Documentation

void addThread ( )

Definition at line 462 of file ProtectedMemory.cc.

void* AllocateInProtectedHeap ( size_t  size)

Definition at line 36 of file ProtectedMemory.cc.

Here is the call graph for this function:

void BuildProtectedMemory ( size_t  totalHeap)

Definition at line 183 of file ProtectedMemory.cc.

Here is the call graph for this function:

Here is the caller graph for this function:

void FinishDetection ( )

Definition at line 525 of file ProtectedMemory.cc.

void finishtracer ( )

Definition at line 505 of file ProtectedMemory.cc.

Here is the call graph for this function:

void PhaseChange ( )

Definition at line 104 of file ProtectedMemory.cc.

Here is the call graph for this function:

void setuphandlers ( )

Definition at line 570 of file ProtectedMemory.cc.

Here is the caller graph for this function:

void StartDetection ( )

Definition at line 516 of file ProtectedMemory.cc.

Here is the call graph for this function:

void starttracer ( )

Definition at line 474 of file ProtectedMemory.cc.

Here is the call graph for this function:

Variable Documentation

int numberOfThreads = 0

Definition at line 457 of file ProtectedMemory.cc.

pid_t threads[MAXTHREADS]

Definition at line 458 of file ProtectedMemory.cc.

pid_t tracerpid

Definition at line 459 of file ProtectedMemory.cc.