automotive-dlt
DLT Daemon

Functions

static int dlt_daemon_log_internal (DltDaemon *daemon, DltDaemonLocal *daemon_local, char *str, int verbose)
 
void usage ()
 
int option_handling (DltDaemonLocal *daemon_local, int argc, char *argv[])
 
int option_file_parser (DltDaemonLocal *daemon_local)
 
int main (int argc, char *argv[])
 
int dlt_daemon_local_init_p1 (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int dlt_daemon_local_init_p2 (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
static int dlt_daemon_init_serial (DltDaemonLocal *daemon_local)
 
static int dlt_daemon_init_fifo (DltDaemonLocal *daemon_local)
 
int dlt_daemon_local_connection_init (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int dlt_daemon_local_ecu_version_init (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
void dlt_daemon_local_cleanup (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
void dlt_daemon_signal_handler (int sig)
 
void dlt_daemon_daemonize (int verbose)
 
int dlt_daemon_process_client_connect (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_client_messages (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_client_messages_serial (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_control_connect (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_control_messages (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
static int dlt_daemon_process_user_message_not_sup (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_user_messages (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
 
int dlt_daemon_process_user_message_overflow (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_send_message_overflow (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int dlt_daemon_process_user_message_register_application (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_register_context (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_unregister_application (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_unregister_context (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_log (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_set_app_ll_ts (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_log_mode (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_process_user_message_marker (DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
 
int dlt_daemon_send_ringbuffer_to_client (DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 
int create_timer_fd (DltDaemonLocal *daemon_local, int period_sec, int starts_in, DltTimers timer_id)
 
int dlt_daemon_close_socket (int sock, DltDaemon *daemon, DltDaemonLocal *daemon_local, int verbose)
 

Variables

static char str [DLT_DAEMON_TEXTBUFSIZE]
 
int g_exit = 0
 
static dlt_daemon_process_user_message_func process_user_func [DLT_USER_MESSAGE_NOT_SUPPORTED]
 
static char dlt_timer_conn_types [DLT_TIMER_UNKNOWN+1]
 
static char dlt_timer_names [DLT_TIMER_UNKNOWN+1][32]
 

Detailed Description

Function Documentation

int create_timer_fd ( DltDaemonLocal daemon_local,
int  period_sec,
int  starts_in,
DltTimers  timer_id 
)
void dlt_daemon_daemonize ( int  verbose)
int dlt_daemon_local_ecu_version_init ( DltDaemon daemon,
DltDaemonLocal daemon_local,
int  verbose 
)
int dlt_daemon_process_user_message_log_mode ( DltDaemon daemon,
DltDaemonLocal daemon_local,
DltReceiver rec,
int  verbose 
)
int dlt_daemon_process_user_message_marker ( DltDaemon daemon,
DltDaemonLocal daemon_local,
DltReceiver rec,
int  verbose 
)
static int dlt_daemon_process_user_message_not_sup ( DltDaemon daemon,
DltDaemonLocal daemon_local,
DltReceiver receiver,
int  verbose 
)
static
void dlt_daemon_signal_handler ( int  sig)
int option_file_parser ( DltDaemonLocal daemon_local)

Option file parser

Definition at line 209 of file dlt-daemon.c.

References DltDaemonFlags::aflag, DltDaemonFlags::autoResponseGetLogInfoOption, DltDaemonFlags::bvalue, DltDaemonFlags::contextLogLevel, DltDaemonFlags::contextTraceStatus, DltDaemonFlags::ctrlSockPath, DltDaemonFlags::cvalue, DltDaemonLocal::daemonFifoSize, DLT_DAEMON_DEFAULT_CTRL_SOCK_PATH, DLT_DAEMON_FLAG_MAX, dlt_daemon_logstorage_set_logstorage_cache_size(), DLT_DAEMON_RINGBUFFER_MAX_SIZE, DLT_DAEMON_RINGBUFFER_MIN_SIZE, DLT_DAEMON_RINGBUFFER_STEP_SIZE, DLT_GATEWAY_CONFIG_PATH, DLT_LOG_INFO, DLT_LOG_OFF, DLT_LOG_TO_CONSOLE, DLT_LOG_VERBOSE, DLT_SHM_SIZE, DLT_TRACE_STATUS_OFF, DLT_TRACE_STATUS_ON, dltFifoBaseDir, DltDaemonFlags::enforceContextLLAndTS, DltDaemonFlags::evalue, DltDaemonLocal::flags, DltDaemonFlags::gatewayConfigFile, DltDaemonFlags::gatewayMode, DltDaemonFlags::ivalue, DltDaemonFlags::lflag, DltDaemonFlags::loggingFilename, DltDaemonFlags::loggingLevel, DltDaemonFlags::loggingMode, DltDaemonFlags::mflag, DltDaemonFlags::nflag, NULL, DltDaemonFlags::offlineLogstorageCacheSize, DltDaemonFlags::offlineLogstorageDelimiter, DltDaemonFlags::offlineLogstorageDirPath, DltDaemonFlags::offlineLogstorageMaxCounter, DltDaemonFlags::offlineLogstorageMaxCounterIdx, DltDaemonFlags::offlineLogstorageMaxDevices, DltDaemonFlags::offlineLogstorageTimestamp, DltDaemonFlags::offlineTraceDirectory, DltDaemonFlags::offlineTraceFilenameTimestampBased, DltDaemonFlags::offlineTraceFileSize, DltDaemonFlags::offlineTraceMaxSize, DltDaemonFlags::pathToECUSoftwareVersion, DltDaemonFlags::rflag, DltDaemonLocal::RingbufferMaxSize, DltDaemonLocal::RingbufferMinSize, DltDaemonLocal::RingbufferStepSize, DltDaemonFlags::sendECUSoftwareVersion, DltDaemonFlags::sendMessageTime, DltDaemonFlags::sendTimezone, DltDaemonFlags::sflag, DltDaemonFlags::sharedMemorySize, DltDaemonLocal::timeoutOnSend, DltDaemonFlags::vflag, DltDaemonFlags::xflag, and DltDaemonFlags::yvalue.

Referenced by main().

int option_handling ( DltDaemonLocal daemon_local,
int  argc,
char *  argv[] 
)
void usage ( void  )

Print usage information of tool.

Definition at line 94 of file dlt-daemon.c.

References DLT_DAEMON_TEXTBUFSIZE, and dlt_get_version().

Referenced by option_handling().

Variable Documentation

char dlt_timer_names[DLT_TIMER_UNKNOWN+1][32]
static
int g_exit = 0

Definition at line 89 of file dlt-daemon.c.

Referenced by dlt_daemon_signal_handler(), and main().

Initial value:
= {
dlt_daemon_process_user_message_not_sup
}
int dlt_daemon_process_user_message_overflow(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:2035
int dlt_daemon_process_user_message_unregister_application(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:2436
int dlt_daemon_process_user_message_log(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:2618
int dlt_daemon_process_user_message_unregister_context(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:2537
int dlt_daemon_process_user_message_marker(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:3027
int dlt_daemon_process_user_message_set_app_ll_ts(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:2916
static int dlt_daemon_process_user_message_not_sup(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *receiver, int verbose)
Definition: dlt-daemon.c:1897
int dlt_daemon_process_user_message_register_application(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:2103
int dlt_daemon_process_user_message_register_context(DltDaemon *daemon, DltDaemonLocal *daemon_local, DltReceiver *rec, int verbose)
Definition: dlt-daemon.c:2213

Definition at line 1925 of file dlt-daemon.c.

Referenced by dlt_daemon_process_user_messages().