DMTCP
|
#include <errno.h>
#include <fcntl.h>
#include <sched.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
#include <sys/types.h>
#include "mtcp_sys.h"
#include "mtcp_util.ic"
#include "mtcp_check_vdso.ic"
#include "../membarrier.h"
#include "procmapsarea.h"
#include "mtcp_header.h"
#include "tlsutil.h"
Go to the source code of this file.
Classes | |
struct | RestoreInfo |
Macros | |
#define | _GNU_SOURCE 1 |
#define | NO_OPTIMIZE __attribute__((optimize(0))) |
#define | BINARY_NAME "mtcp_restart" |
#define | BINARY_NAME_M32 "mtcp_restart-32" |
#define | STACKSIZE 4*1024*1024 |
#define | MB 1024*1024 |
#define | RESTORE_STACK_SIZE 5*MB |
#define | RESTORE_MEM_SIZE 5*MB |
#define | RESTORE_TOTAL_SIZE (RESTORE_STACK_SIZE+RESTORE_MEM_SIZE) |
#define | shift argv++; argc--; |
#define | ENABLE_VDSO_CHECK |
Typedefs | |
typedef void(* | fnptr_t )() |
typedef struct RestoreInfo | RestoreInfo |
Functions | |
void | mtcp_check_vdso (char **environ) |
void | restore_libc (ThreadTLSInfo *tlsInfo, int tls_pid_offset, int tls_tid_offset, MYINFO_GS_T myinfo_gs) |
int | __libc_start_main (int(*main)(int, char **, char **), int argc, char **argv, void(*init)(void), void(*fini)(void), void(*rtld_fini)(void), void *stack_end) |
void | __libc_csu_init (int argc, char **argv, char **envp) |
void | __libc_csu_fini (void) |
void | __stack_chk_fail (void) |
void | abort (void) |
void * | memset (void *s, int c, size_t n) |
void * | memcpy (void *dest, const void *src, size_t n) |
NO_OPTIMIZE int | main (int argc, char *argv[], char **environ) |
void | __stack_chk_fail_local (void) |
void | __stack_chk_guard (void) |
void | _Unwind_Resume (void) |
void | __gcc_personality_v0 (void) |
void | __intel_security_cookie (void) |
void | __intel_security_check_cookie (void) |
#define _GNU_SOURCE 1 |
Definition at line 40 of file mtcp_restart.c.
#define BINARY_NAME "mtcp_restart" |
Definition at line 74 of file mtcp_restart.c.
#define BINARY_NAME_M32 "mtcp_restart-32" |
Definition at line 75 of file mtcp_restart.c.
#define ENABLE_VDSO_CHECK |
#define MB 1024*1024 |
Definition at line 130 of file mtcp_restart.c.
#define NO_OPTIMIZE __attribute__((optimize(0))) |
Definition at line 69 of file mtcp_restart.c.
#define RESTORE_MEM_SIZE 5*MB |
Definition at line 132 of file mtcp_restart.c.
#define RESTORE_STACK_SIZE 5*MB |
Definition at line 131 of file mtcp_restart.c.
#define RESTORE_TOTAL_SIZE (RESTORE_STACK_SIZE+RESTORE_MEM_SIZE) |
Definition at line 133 of file mtcp_restart.c.
#define shift argv++; argc--; |
Definition at line 166 of file mtcp_restart.c.
#define STACKSIZE 4*1024*1024 |
Definition at line 84 of file mtcp_restart.c.
typedef void(* fnptr_t)() |
Definition at line 83 of file mtcp_restart.c.
typedef struct RestoreInfo RestoreInfo |
void __gcc_personality_v0 | ( | void | ) |
Definition at line 1107 of file mtcp_restart.c.
void __intel_security_check_cookie | ( | void | ) |
Definition at line 1121 of file mtcp_restart.c.
void __intel_security_cookie | ( | void | ) |
Definition at line 1114 of file mtcp_restart.c.
void __libc_csu_fini | ( | void | ) |
Definition at line 151 of file mtcp_restart.c.
void __libc_csu_init | ( | int | argc, |
char ** | argv, | ||
char ** | envp | ||
) |
Definition at line 150 of file mtcp_restart.c.
int __libc_start_main | ( | int(*)(int, char **, char **) | main, |
int | argc, | ||
char ** | argv, | ||
void(*)(void) | init, | ||
void(*)(void) | fini, | ||
void(*)(void) | rtld_fini, | ||
void * | stack_end | ||
) |
Definition at line 138 of file mtcp_restart.c.
void __stack_chk_fail | ( | void | ) |
Definition at line 1079 of file mtcp_restart.c.
void __stack_chk_fail_local | ( | void | ) |
Definition at line 1086 of file mtcp_restart.c.
void __stack_chk_guard | ( | void | ) |
Definition at line 1093 of file mtcp_restart.c.
void _Unwind_Resume | ( | void | ) |
Definition at line 1100 of file mtcp_restart.c.
void abort | ( | void | ) |
Definition at line 153 of file mtcp_restart.c.
NO_OPTIMIZE int main | ( | int | argc, |
char * | argv[], | ||
char ** | environ | ||
) |
Definition at line 168 of file mtcp_restart.c.
void* memcpy | ( | void * | dest, |
const void * | src, | ||
size_t | n | ||
) |
Definition at line 162 of file mtcp_restart.c.
void* memset | ( | void * | s, |
int | c, | ||
size_t | n | ||
) |
Definition at line 158 of file mtcp_restart.c.
void mtcp_check_vdso | ( | char ** | environ) |
Definition at line 271 of file mtcp_check_vdso.ic.
void restore_libc | ( | ThreadTLSInfo * | tlsInfo, |
int | tls_pid_offset, | ||
int | tls_tid_offset, | ||
MYINFO_GS_T | myinfo_gs | ||
) |
Definition at line 969 of file mtcp_restart.c.