Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
start_up.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <unistd.h>
#include <errno.h>
#include <fcntl.h>
#include <sched.h>
#include <signal.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <asm/unistd.h>
#include <init.h>
#include <os.h>
#include <mem_user.h>
#include <ptrace_user.h>
#include <registers.h>
#include <skas.h>
#include <skas_ptrace.h>

Go to the source code of this file.

Functions

 __uml_setup ("skas0", skas0_cmd_param,"skas0\n"" Disables SKAS3 and SKAS4 usage, so that SKAS0 is used\n\n")
 
 __uml_setup ("mode=skas0", mode_skas0_cmd_param,"mode=skas0\n"" Disables SKAS3 and SKAS4 usage, so that SKAS0 is used.\n\n")
 
 __uml_setup ("nosysemu", nosysemu_cmd_param,"nosysemu\n"" Turns off syscall emulation patch for ptrace (SYSEMU) on.\n"" SYSEMU is a performance-patch introduced by Laurent Vivier. It changes\n"" behaviour of ptrace() and helps reducing host context switch rate.\n"" To make it working, you need a kernel patch for your host, too.\n"" See http://perso.wanadoo.fr/laurent.vivier/UML/ for further \n"" information.\n\n")
 
void check_tmpexec (void)
 
void __init os_early_checks (void)
 
 __uml_setup ("noprocmm", noprocmm_cmd_param,"noprocmm\n"" Turns off usage of /proc/mm, even if host supports it.\n"" To support /proc/mm, the host needs to be patched using\n"" the current skas3 patch.\n\n")
 
 __uml_setup ("noptracefaultinfo", noptracefaultinfo_cmd_param,"noptracefaultinfo\n"" Turns off usage of PTRACE_FAULTINFO, even if host supports\n"" it. To support PTRACE_FAULTINFO, the host needs to be patched\n"" using the current skas3 patch.\n\n")
 
 __uml_setup ("noptraceldt", noptraceldt_cmd_param,"noptraceldt\n"" Turns off usage of PTRACE_LDT, even if host supports it.\n"" To support PTRACE_LDT, the host needs to be patched using\n"" the current skas3 patch.\n\n")
 
void can_do_skas (void)
 
int __init parse_iomem (char *str, int *add)
 

Variables

int ptrace_faultinfo
 
int ptrace_ldt
 
int proc_mm
 
int have_switch_mm
 
int skas_needs_stub
 

Function Documentation

__uml_setup ( "skas0"  ,
skas0_cmd_param  ,
"skas0\n"" Disables SKAS3 and SKAS4  usage,
so that SKAS0 is used\n\n  
)
__uml_setup ( mode = skas0", mode_skas0_cmd_param,"mode=skas0\n""    Disables SKAS3 and SKAS4 usage,
so that SKAS0 is used.\n\n  
)
__uml_setup ( "nosysemu"  ,
nosysemu_cmd_param  ,
"nosysemu\n"" Turns off syscall emulation patch for ptrace (SYSEMU) on.\n"" SYSEMU is a performance-patch introduced by Laurent Vivier. It changes\n"" behaviour of ptrace() and helps reducing host context switch rate.\n"" To make it  working,
you need a kernel patch for your  host,
too.\n""See http://perso.wanadoo.fr/laurent.vivier/UML/for further\n""information.\n\n  
)
__uml_setup ( "noprocmm"  ,
noprocmm_cmd_param  ,
"noprocmm\n"" Turns off usage of /proc/  mm,
even if host supports it.\n""To support/proc/  mm,
the host needs to be patched using\n""the current skas3 patch.\n\n  
)
__uml_setup ( "noptracefaultinfo"  ,
noptracefaultinfo_cmd_param  ,
"noptracefaultinfo\n"" Turns off usage of  PTRACE_FAULTINFO,
even if host supports\n""it.To support  PTRACE_FAULTINFO,
the host needs to be patched\n""using the current skas3 patch.\n\n  
)
__uml_setup ( "noptraceldt"  ,
noptraceldt_cmd_param  ,
"noptraceldt\n"" Turns off usage of  PTRACE_LDT,
even if host supports it.\n""To support  PTRACE_LDT,
the host needs to be patched using\n""the current skas3 patch.\n\n  
)
void can_do_skas ( void  )

Definition at line 480 of file start_up.c.

void check_tmpexec ( void  )

Definition at line 258 of file mem.c.

void __init os_early_checks ( void  )

Definition at line 357 of file start_up.c.

int __init parse_iomem ( char str,
int add 
)

Definition at line 492 of file start_up.c.

Variable Documentation

int have_switch_mm

Definition at line 153 of file start_up.c.

int proc_mm

Definition at line 150 of file start_up.c.

Definition at line 144 of file start_up.c.

Definition at line 147 of file start_up.c.

int skas_needs_stub

Definition at line 156 of file start_up.c.