50 #include "opal_config.h"
52 #include "opal/mca/base/base.h"
62 OPAL_CRS_CHECKPOINT = 1,
63 OPAL_CRS_RESTART_PRE = 2,
65 OPAL_CRS_CONTINUE = 4,
69 OPAL_CRS_STATE_MAX = 8
91 #if OPAL_ENABLE_CRDEBUG == 1
229 char *base_snapshot_dir,
298 #define OPAL_CRS_BASE_VERSION_2_0_0 \
299 MCA_BASE_VERSION_2_0_0, \
Common type for all MCA components.
Definition: mca.h:250
int verbose
Verbosity Level.
Definition: crs.h:255
int output_handle
Output Handle for opal_output.
Definition: crs.h:257
int(* opal_crs_base_module_disable_checkpoint_fn_t)(void)
Disable the checkpointer Returns OPAL_SUCCESS or OPAL_CRS_ERROR.
Definition: crs.h:203
char * component_name
MCA Component name.
Definition: crs.h:112
bool term
Terminate after checkpoint.
Definition: crs.h:81
opal_crs_base_module_prelaunch_fn_t crs_prelaunch
Pre Launch.
Definition: crs.h:285
int(* opal_crs_base_module_restart_fn_t)(opal_crs_base_snapshot_t *snapshot, bool spawn_child, pid_t *child_pid)
Call the underlying restart command for this process Returns OPAL_SUCCESS or OPAL_CRS_ERROR.
Definition: crs.h:187
int(* opal_crs_base_module_reg_thread_fn_t)(void)
Register another thread that may call this library.
Definition: crs.h:243
int(* opal_crs_base_module_init_fn_t)(void)
Module initialization function.
Definition: crs.h:140
int(* opal_crs_base_module_prelaunch_fn_t)(int32_t rank, char *base_snapshot_dir, char **app, char **cwd, char ***argv, char ***env)
Prepare the CRS component for process launch.
Definition: crs.h:228
Top-level interface for all MCA components.
Definition: opal_list.h:98
bool inc_prep_only
INC Prep Only.
Definition: crs.h:86
Structure for CRS modules.
Definition: crs.h:267
opal_crs_base_module_reg_thread_fn_t crs_reg_thread
Per thread registration.
Definition: crs.h:288
FILE * metadata
Metadata fd.
Definition: crs.h:118
bool cold_start
Cold Start: If we are restarting cold, then we need to recreate this structure opal_restart would set...
Definition: crs.h:128
Structure for Single process snapshot Each component is assumed to have extened this definition in th...
Definition: crs.h:107
mca_base_component_t base_version
MCA base component.
Definition: crs.h:250
int priority
Default Priority.
Definition: crs.h:259
Structure for CRS components.
Definition: crs.h:248
int(* opal_crs_base_module_checkpoint_fn_t)(pid_t pid, opal_crs_base_snapshot_t *snapshot, opal_crs_base_ckpt_options_t *options, opal_crs_state_type_t *state)
Call the underlying checkpointer.
Definition: crs.h:168
int(* opal_crs_base_module_enable_checkpoint_fn_t)(void)
Enable the checkpointer Returns OPAL_SUCCESS or OPAL_CRS_ERROR.
Definition: crs.h:212
char * metadata_filename
Metadata filename.
Definition: crs.h:115
opal_list_item_t super
This is an object, so must have super.
Definition: crs.h:109
Base object.
Definition: opal_object.h:182
opal_crs_base_module_disable_checkpoint_fn_t crs_disable_checkpoint
Disable checkpoints.
Definition: crs.h:280
opal_crs_base_module_finalize_fn_t crs_finalize
Finalization Function.
Definition: crs.h:271
Meta data for MCA v2.0.0 components.
Definition: mca.h:309
int(* opal_crs_base_module_finalize_fn_t)(void)
Module finalization function.
Definition: crs.h:147
opal_crs_base_module_restart_fn_t crs_restart
Restart Interface.
Definition: crs.h:277
bool stop
Send SIGSTOP after checkpoint.
Definition: crs.h:83
opal_crs_base_module_checkpoint_fn_t crs_checkpoint
Checkpoint interface.
Definition: crs.h:274
bool inc_recover_only
INC Recover Only.
Definition: crs.h:89
char * snapshot_directory
Absolute path the the snapshot directory.
Definition: crs.h:121
A simple C-language object-oriented system with single inheritance and ownership-based memory managem...
mca_base_component_data_t base_data
MCA base data.
Definition: crs.h:252
opal_object_t super
Parent is an object type.
Definition: crs.h:78
opal_crs_base_module_enable_checkpoint_fn_t crs_enable_checkpoint
Enable checkpoints.
Definition: crs.h:282
opal_crs_base_module_init_fn_t crs_init
Initialization Function.
Definition: crs.h:269
#define OBJ_CLASS_DECLARATION(NAME)
Declaration for class descriptor.
Definition: opal_object.h:236
opal_crs_state_type_t
States of the module.
Definition: crs.h:60