|
Geant4_10
|
#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <iostream>#include <sys/types.h>#include <sys/syscall.h>#include <sys/ptrace.h>#include <sys/wait.h>#include <unistd.h>#include <errno.h>#include <sys/user.h>#include <assert.h>#include <sys/select.h>#include <sys/stat.h>#include <fcntl.h>#include <string.h>#include <pthread.h>#include "tls.hh"#include "memoryprotection/filter.h"#include "memoryprotection/UDSignals.h"#include "memoryprotection/MemorySegment.h"
Go to the source code of this file.
Macros | |
| #define | MAXTHREADS 128 |
Functions | |
| void | FetchMap (pid_t pid) |
| char * | getLibName (long int address) |
| void | processParameters (int, char *argv[]) |
| void | test (pid_t pid, int wait_val) |
| int | SingleSteps (pid_t pid) |
| int | traceloop (pid_t pid) |
| void * | tracer_thread (void *pid_ptr) |
| void | startThreadTracers (pid_t pid) |
| void | waitForAllTracers (pid_t pid) |
| void | openFilter () |
| void | closeFilter () |
| int | main (int argc, char *argv[]) |
Variables | |
| int | fildes [2] |
| int | status |
| char | cmd [1024] |
| int | protect = 0 |
| pid_t | filter |
| int | numberOfThreads |
| pid_t | threads [MAXTHREADS] |
| pthread_t | tids [MAXTHREADS] |
| G4ThreadLocal struct user_regs_struct | regs |
| G4ThreadLocal struct user_regs_struct | regssinglestep |
| G4ThreadLocal int | detectionFlag = 0 |
| pthread_mutex_t | segFaultHandlingLock = PTHREAD_MUTEX_INITIALIZER |
| #define MAXTHREADS 128 |
Definition at line 28 of file tracer.cxx.
| void closeFilter | ( | ) |
Definition at line 478 of file tracer.cxx.


| void FetchMap | ( | pid_t | pid | ) |
Definition at line 70 of file tracer.cxx.


| char* getLibName | ( | long int | address | ) |
| void openFilter | ( | ) |
Definition at line 436 of file tracer.cxx.


Definition at line 126 of file tracer.cxx.


| int SingleSteps | ( | pid_t | pid | ) |
Definition at line 193 of file tracer.cxx.


| void startThreadTracers | ( | pid_t | pid | ) |
Definition at line 414 of file tracer.cxx.


| int traceloop | ( | pid_t | pid | ) |
Definition at line 236 of file tracer.cxx.


Definition at line 404 of file tracer.cxx.


| void waitForAllTracers | ( | pid_t | pid | ) |
Definition at line 425 of file tracer.cxx.


| char cmd[1024] |
Definition at line 25 of file tracer.cxx.
| G4ThreadLocal int detectionFlag = 0 |
Definition at line 64 of file tracer.cxx.
| int fildes[2] |
Definition at line 23 of file tracer.cxx.
| pid_t filter |
Definition at line 30 of file tracer.cxx.
| int numberOfThreads |
Definition at line 32 of file tracer.cxx.
| int protect = 0 |
Definition at line 26 of file tracer.cxx.
| G4ThreadLocal struct user_regs_struct regs |
Definition at line 62 of file tracer.cxx.
| G4ThreadLocal struct user_regs_struct regssinglestep |
Definition at line 63 of file tracer.cxx.
| pthread_mutex_t segFaultHandlingLock = PTHREAD_MUTEX_INITIALIZER |
Definition at line 66 of file tracer.cxx.
| int status |
Definition at line 24 of file tracer.cxx.
| pid_t threads[MAXTHREADS] |
Definition at line 33 of file tracer.cxx.
| pthread_t tids[MAXTHREADS] |
Definition at line 34 of file tracer.cxx.
1.8.5