Multi-ApplicationOnlineProfiling  2.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
MALP_Config.c File Reference
#include "MALP_Config.h"
#include "Utils.h"
#include <stdlib.h>
Include dependency graph for MALP_Config.c:

Go to the source code of this file.

Functions

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. More...
 
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. More...
 
static int TA_Conf_get_key_index (char *key_name)
 Return the index of a key name in list of Analyser configuration keys ( TA_Conf_key_t ) More...
 
int TA_Conf_update (char *key_name, char *val)
 Update the value for a configuration option with control of the value name. More...
 
void TA_Conf_init_from_env ()
 Initialisation of config from environment. More...
 
void TA_Conf_init_default ()
 Initialisation of the Trace_Collector with default options. More...
 
void TA_Conf_dump (char *dest)
 Save the Analyzer_ configuration in the destination file in argument. More...
 
void TA_Conf_load (char *source)
 Load and use a file to set the Analyzer configuration. More...
 

Variables

struct TA_Conf_entry TA_Conf_entries [TA_CONF_KEY_COUNT]
 

Function Documentation

void TA_Conf_dump ( char *  dest)

Save the Analyzer_ configuration in the destination file in argument.

Parameters
destConfiguration file destination

Definition at line 262 of file MALP_Config.c.

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.

Parameters
keyConfiguration parameter key
descConfiguration parameter description.
typeConfiguration parameter value's type
valuenew value for the configuration parameter
Returns
the modification status (0: key not found or update failure, 1: success )

Definition at line 30 of file MALP_Config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

(see TA_Conf_update for control on the key name)

Parameters
entryKey of the configuration parameter to modify
valuenew value for the configuration parameter (should be a numerical value)
Returns
the modification status (0: value of wrong type, 1: success )

Definition at line 56 of file MALP_Config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int TA_Conf_get_key_index ( char *  key_name)
inlinestatic

Return the index of a key name in list of Analyser configuration keys ( TA_Conf_key_t )

Parameters
key_nameKey of the configuration parameter to modify
valnew value for the configuration parameter
Returns
modification status (0: key not found or update failure, 1: success )

Definition at line 102 of file MALP_Config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void TA_Conf_init_default ( )

Initialisation of the Trace_Collector with default options.

Definition at line 152 of file MALP_Config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void TA_Conf_init_from_env ( )

Initialisation of config from environment.

Definition at line 131 of file MALP_Config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void TA_Conf_load ( char *  source)

Load and use a file to set the Analyzer configuration.

Parameters
sourceConfiguration file source

Definition at line 285 of file MALP_Config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

int TA_Conf_update ( char *  key_name,
char *  val 
)

Update the value for a configuration option with control of the value name.

Parameters
key_nameKey of the Analyzer configuration parameter to modify
valnew value for the corresponding configuration parameter (should be a numerical value)
Returns
modification status (0: key not found or update failure, 1: success )

Definition at line 116 of file MALP_Config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

struct TA_Conf_entry TA_Conf_entries[TA_CONF_KEY_COUNT]

Definition at line 25 of file MALP_Config.c.