automotive-dlt
|
#include "dlt.h"
#include <syslog.h>
#include "dlt-kpi-common.h"
#include "dlt-kpi-interrupt.h"
#include "dlt-kpi-process.h"
#include "dlt-kpi-process-list.h"
Go to the source code of this file.
Data Structures | |
struct | DltKpiOptions |
struct | DltKpiConfig |
Macros | |
#define | DEFAULT_CONF_FILE ( CONFIGURATION_FILES_DIR "/dlt-kpi.conf") |
#define | COMMAND_LINE_SIZE 1024 |
Functions | |
DltReturnValue | dlt_kpi_read_command_line (DltKpiOptions *options, int argc, char **argv) |
DltReturnValue | dlt_kpi_read_configuration_file (DltKpiConfig *config, char *file_name) |
void | dlt_kpi_free_cli_options (DltKpiOptions *options) |
DltReturnValue | dlt_kpi_init (int argc, char **argv, DltKpiConfig *config) |
Definition in file dlt-kpi.h.
#define COMMAND_LINE_SIZE 1024 |
Definition at line 41 of file dlt-kpi.h.
Referenced by dlt_kpi_read_configuration_file().
#define DEFAULT_CONF_FILE ( CONFIGURATION_FILES_DIR "/dlt-kpi.conf") |
void dlt_kpi_free_cli_options | ( | DltKpiOptions * | options | ) |
Definition at line 56 of file dlt-kpi-options.c.
References DltKpiOptions::configurationFileName, and DltKpiOptions::customConfigFile.
Referenced by dlt_kpi_init().
DltReturnValue dlt_kpi_init | ( | int | argc, |
char ** | argv, | ||
DltKpiConfig * | config | ||
) |
Definition at line 231 of file dlt-kpi-options.c.
References DltKpiOptions::configurationFileName, dlt_kpi_free_cli_options(), dlt_kpi_read_command_line(), dlt_kpi_read_configuration_file(), DLT_RETURN_OK, DLT_RETURN_WRONG_PARAMETER, and NULL.
Referenced by main().
DltReturnValue dlt_kpi_read_command_line | ( | DltKpiOptions * | options, |
int | argc, | ||
char ** | argv | ||
) |
Definition at line 62 of file dlt-kpi-options.c.
References DltKpiOptions::configurationFileName, DltKpiOptions::customConfigFile, dlt_kpi_init_cli_options(), DLT_RETURN_ERROR, DLT_RETURN_OK, DLT_RETURN_WRONG_PARAMETER, NULL, and usage().
Referenced by dlt_kpi_init().
DltReturnValue dlt_kpi_read_configuration_file | ( | DltKpiConfig * | config, |
char * | file_name | ||
) |
Read options from the configuration file
Definition at line 117 of file dlt-kpi-options.c.
References DltKpiConfig::check_log_interval, COMMAND_LINE_SIZE, dlt_kpi_init_configuration(), DLT_RETURN_ERROR, DLT_RETURN_OK, DLT_RETURN_WRONG_PARAMETER, DltKpiConfig::irq_log_interval, DltKpiConfig::log_level, NULL, and DltKpiConfig::process_log_interval.
Referenced by dlt_kpi_init().