mirror of
https://github.com/nasa/trick.git
synced 2025-01-02 03:16:43 +00:00
112cc780e0
renamed checkpoint_safestore to checkpoint_safestore_period renamed checkpoint_safestore_set_enabled to checkpoint_safestore refs #196
76 lines
1.8 KiB
C++
76 lines
1.8 KiB
C++
/*
|
|
PURPOSE:
|
|
(Memory Manager Wrapper C interface)
|
|
*/
|
|
|
|
#ifndef CHECKPOINTRESTART_C_INTF_HH
|
|
#define CHECKPOINTRESTART_C_INTF_HH
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* set pre_init_checkpoint flag */
|
|
int checkpoint_pre_init(int yes_no) ;
|
|
|
|
/* set post_init_checkpoint flag */
|
|
int checkpoint_post_init(int yes_no) ;
|
|
|
|
/* set end_checkpoint flag */
|
|
int checkpoint_end(int yes_no) ;
|
|
|
|
/* set pre_init_checkpoint flag */
|
|
int get_checkpoint_pre_init() ;
|
|
|
|
/* set post_init_checkpoint flag */
|
|
int get_checkpoint_post_init() ;
|
|
|
|
/* set end_checkpoint flag */
|
|
int get_checkpoint_end() ;
|
|
|
|
/* set safestore_enabled flag */
|
|
int checkpoint_safestore(int yes_no) ;
|
|
|
|
/* set the cpu to use for checkpoints */
|
|
int checkpoint_cpu( int in_cpu_num ) ;
|
|
|
|
/* safestore checkpoint call accessible from C code */
|
|
int checkpoint_safestore_period( double in_period ) ;
|
|
|
|
/* get checkpoint dump file name */
|
|
const char * checkpoint_get_output_file() ;
|
|
|
|
/* get checkpoint load file name */
|
|
const char * checkpoint_get_load_file() ;
|
|
|
|
/* checkpoint call accessible from C code */
|
|
int checkpoint( const char * file_name );
|
|
|
|
/* set dmtcp safestore_enabled flag */
|
|
int dmtcp_checkpoint_safestore(int yes_no) ;
|
|
|
|
/* dmtcp safestore checkpoint call accessible from C code */
|
|
int dmtcp_checkpoint_safestore_period( double in_period ) ;
|
|
|
|
/* dmtcp checkpoint call accessible from C code */
|
|
int dmtcp_checkpoint( const char * file_name );
|
|
|
|
/* checkpoint for specific sim objects call from C code */
|
|
int checkpoint_objects( const char * file_name, const char * objects ) ;
|
|
|
|
/* load_checkpoint call accessible from C code */
|
|
int load_checkpoint( const char * file_name ) ;
|
|
int load_checkpoint_job() ;
|
|
|
|
void * get_address( const char * var_name ) ;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
|
|
#include <string>
|
|
int next_attr_name( std::string & name ) ;
|
|
|
|
#endif
|
|
|
|
#endif
|