@@ -137,7 +137,11 @@ static const char *theUsage =
137137 " Skip NOTE messages; if given twice, also skip WARNINGs\n"
138138 " --coord-logfile PATH (environment variable DMTCP_COORD_LOG_FILENAME\n"
139139 " Coordinator will dump its logs to the given file\n"
140- " --mpi Use ADDR_NO_RANDOMIZE personality, etc, for MPI applications\n"
140+ " --kernel-loader\n"
141+ " Enable kernel loader mode for plugins that uses the\n"
142+ " Split Process architecture.\n"
143+ " Set ADDR_NO_RANDOMIZE personality, and set UH_PRELOAD\n"
144+ " instead of LD_PRELOAD for the upper half program\n"
141145 " --help\n"
142146 " Print this message and exit.\n"
143147 " --version\n"
@@ -178,7 +182,7 @@ static bool enableLibDMTCP = true;
178182// PID plugin must come last.
179183static bool enablePIDPlugin = true ;
180184
181- // Kernel loader for MANA
185+ // Kernel loader
182186static bool enableKernelLoader = false ;
183187
184188struct PluginInfo {
@@ -314,7 +318,7 @@ processArgs(int *orig_argc, const char ***orig_argv)
314318 // Just in case a non-standard version of setenv is being used:
315319 setenv (ENV_VAR_QUIET, getenv (ENV_VAR_QUIET), 1 );
316320 shift;
317- } else if (s == " --mpi " ) {
321+ } else if (s == " --kernel-loader " ) {
318322 enableKernelLoader = true ;
319323#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 11)
320324 personality (ADDR_NO_RANDOMIZE);
@@ -492,7 +496,8 @@ main(int argc, const char **argv)
492496 argv = newArgv;
493497 }
494498
495- // Test and set env var for FSGSBASE. The env var is used by MANA.
499+ // Test and set env var for FSGSBASE. The env var is used by plugins that uses
500+ // the Split Process architecture.
496501#ifdef __x86_64__
497502 testFsGsBase (); // Fsgsbase is used only on Intel/AMD x86_64.
498503#endif
0 commit comments