automotive-dlt
dlt-kpi.h
Go to the documentation of this file.
1 /*
2  * @licence app begin@
3  * SPDX license identifier: MPL-2.0
4  *
5  * Copyright (C) 2011-2015, BMW AG
6  *
7  * This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
8  *
9  * This Source Code Form is subject to the terms of the
10  * Mozilla Public License (MPL), v. 2.0.
11  * If a copy of the MPL was not distributed with this file,
12  * You can obtain one at http://mozilla.org/MPL/2.0/.
13  *
14  * For further information see http://www.genivi.org/.
15  * @licence end@
16  */
17 
27 #ifndef SRC_KPI_DLT_KPI_H_
28 #define SRC_KPI_DLT_KPI_H_
29 
30 #include "dlt.h"
31 #include <syslog.h>
32 
33 #include "dlt-kpi-common.h"
34 #include "dlt-kpi-interrupt.h"
35 #include "dlt-kpi-process.h"
36 #include "dlt-kpi-process-list.h"
37 
38 // CONSTANT DEFINITIONS
39 #define DEFAULT_CONF_FILE ( CONFIGURATION_FILES_DIR "/dlt-kpi.conf")
40 
41 #define COMMAND_LINE_SIZE 1024
42 
43 // STRUCTURES
44 typedef struct
45 {
49 
50 typedef struct
51 {
52  int process_log_interval, irq_log_interval, check_log_interval;
54 } DltKpiConfig;
55 
56 // FUNCTION DECLARATIONS:
57 DltReturnValue dlt_kpi_read_command_line(DltKpiOptions *options, int argc, char **argv);
60 DltReturnValue dlt_kpi_init(int argc, char **argv, DltKpiConfig *config);
61 
62 #endif /* SRC_KPI_DLT_KPI_H_ */
DltLogLevelType
Definition: dlt_types.h:102
DltReturnValue dlt_kpi_read_command_line(DltKpiOptions *options, int argc, char **argv)
DltReturnValue
Definition: dlt_types.h:86
DltKpiConfig config
Definition: dlt-kpi.c:37
int customConfigFile
Definition: dlt-kpi.h:47
DltLogLevelType log_level
Definition: dlt-kpi.h:53
DltReturnValue dlt_kpi_init(int argc, char **argv, DltKpiConfig *config)
DltReturnValue dlt_kpi_read_configuration_file(DltKpiConfig *config, char *file_name)
int process_log_interval
Definition: dlt-kpi.h:52
char * configurationFileName
Definition: dlt-kpi.h:46
void dlt_kpi_free_cli_options(DltKpiOptions *options)