automotive-dlt
dlt-kpi-process.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_PROCESS_H_
28 #define SRC_KPI_DLT_KPI_PROCESS_H_
29 
30 #include "dlt.h"
31 #include <stdlib.h>
32 #include "dlt-kpi-common.h"
33 
34 typedef struct DltKpiEventWatch DltKpiEventWatch; // forward declaration
35 
36 typedef struct DltKpiProcess
37 {
38  pid_t pid, ppid;
39  char *command_line;
41  long int rss, ctx_switches;
42 
43  struct DltKpiProcess *next, *prev;
45 
50 DltReturnValue dlt_kpi_update_process(DltKpiProcess *process, unsigned long int time_dif_ms);
55 
56 #endif /* SRC_KPI_DLT_KPI_PROCESS_H_ */
DltReturnValue dlt_kpi_get_msg_process_new(DltKpiProcess *process, char *buffer, int maxlen)
DltReturnValue dlt_kpi_get_msg_process_commandline(DltKpiProcess *process, char *buffer, int maxlen)
DltReturnValue
Definition: dlt_types.h:86
struct DltKpiProcess DltKpiProcess
unsigned long int last_cpu_time
DltReturnValue dlt_kpi_print_process(DltKpiProcess *process)
DltReturnValue dlt_kpi_update_process(DltKpiProcess *process, unsigned long int time_dif_ms)
unsigned long int last_io_wait
DltReturnValue dlt_kpi_get_msg_process_stop(DltKpiProcess *process, char *buffer, int maxlen)
DltKpiProcess * dlt_kpi_create_process()
DltReturnValue dlt_kpi_get_msg_process_update(DltKpiProcess *process, char *buffer, int maxlen)
struct DltKpiProcess * next
unsigned char buffer[BUFFER_SIZE]
Buffer for dlt file transfer. The size is defined by BUFFER_SIZE.
DltKpiProcess * dlt_kpi_clone_process(DltKpiProcess *original)
unsigned long int cpu_time
unsigned long int io_wait
DltReturnValue dlt_kpi_free_process(DltKpiProcess *process)
unsigned long int io_bytes
struct DltKpiProcess * prev
long int ctx_switches
struct DltKpiEventWatch DltKpiEventWatch