73 "TA_CONF_GLOBAL_HEADER",
74 "TA_CONF_THREAD_PER_TASK",
78 "TA_CONF_VERBOSITY_HEADER",
79 "TA_CONF_DISPLAY_BANNER",
80 "TA_CONF_DISPLAY_BB_LOAD",
81 "TA_CONF_VERBOSE_OUTPUT",
84 "TA_CONF_INSTRUMENT_HEADER",
85 "TA_CONF_INSTRUMENT_MPI",
86 "TA_CONF_INSTRUMENT_POSIX",
87 "TA_CONF_INSTRUMENT_MPI_OTF",
88 "TA_CONF_INSTRUMENT_POSIX_OTF",
89 "TA_CONF_INSTRUMENT_POSIX_PROFILE",
90 "TA_CONF_INSTRUMENT_POSIX_PROFILE_DUMP",
94 "TA_CONF_SAMPLE_ANALYSIS_HEADER",
95 "TA_CONF_SAMPLE_ANALYSIS_ENABLED",
99 "TA_CONF_OTF2_ANALYSIS_HEADER",
100 "TA_CONF_OTF2_ANALYSIS_ENABLED",
101 "TA_CONF_OTF2_TRACE_PATH",
102 "TA_CONF_OTF2_TRACE_NAME"
216 printf(
"Bad config type\n");
220 printf(
"Bad config key\n");
245 printf(
"Bad config key\n");
268 printf(
"Bad config key\n");
291 printf(
"Bad config key\n");
297 #define TA_Conf_dispatch() do{int ___ret = PMPI_Bcast( (char*)TA_Conf_entries,\
298 sizeof(struct TA_Conf_entry) * TA_CONF_KEY_COUNT,\
299 MPI_CHAR, 0, VMPI_Get_partition_comm());\
300 if( ___ret != MPI_SUCCESS ) {\
301 printf("Failled to dispatch configuration \n");\
static const char *const TA_Conf_key_lablel[TA_CONF_KEY_COUNT]
static int TA_Conf_get_key_bool(TA_Conf_key_t key)
Get a configuration parameter value of type bool.
void TA_Conf_load(char *source)
Load and use a file to set the Analyzer configuration.
TA_Conf_type
Possible types for the Analyzer configuration parameter values.
static double TA_Conf_get_key_double(TA_Conf_key_t key)
Get a configuration parameter value of type double.
struct TA_Conf_entry TA_Conf_entries[TA_CONF_KEY_COUNT]
TA_Conf_type type
Type of a configuration parameter value.
static int TA_Conf_get_key_int(TA_Conf_key_t key)
Get a configuration parameter value of type int.
char desc[500]
Descriptor of a configuration parameter.
void TA_Conf_dump(char *dest)
Save the Analyzer_ configuration in the destination file in argument.
Define a configuration entry structure, which contain a descritpion buffer, the entry type and variab...
int TA_Conf_entry_update(struct TA_Conf_entry *entry, char *value)
Update the value for a configuration parameter after control of the value's content and type...
#define TA_Conf_dispatch()
Start broadcasting for the analyzer.
static char * TA_Conf_get_key_string(TA_Conf_key_t key)
Get a configuration parameter value of type string.
int TA_Conf_update(char *key_name, char *val)
Update the value for a configuration option with control of the value name.
int i_value
integer variable for the configuration parameter value
char c_value[1000]
char* buffer for the configuration parameter value
void TA_Conf_init_from_env()
Initialisation of config from environment.
TA_Conf_key_t
Enumeration of the configuration parameter keys for MALP.
void TA_Conf_init_default()
Initialisation of the Trace_Collector with default options.
float d_value
float variable for the configuration parameter value
void TA_Conf_entry_init(TA_Conf_key_t key, char *desc, TA_Conf_type type, char *value)
Initialisation of the Analyzer configuration parameter's type, description and value.