From 23652a7cbfb4ea24870f4e2f03cf16b9ece4c1ce Mon Sep 17 00:00:00 2001 From: ManikandanC Date: Mon, 22 May 2017 10:57:21 +0530 Subject: Dynamic allocation of msg buffer It is possible to change the default buffer size for log message creation via environment variable: export DLT_LOG_MSG_BUF_LEN= Instead of using a static buffer with size of 1390 bytes, the buffer is allocated dynamically with the specified value.The max size is restricted to approx 65k. Signed-off-by: Christoph Lipka Signed-off-by: ManikandanC --- src/lib/dlt_user_cfg.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/dlt_user_cfg.h') diff --git a/src/lib/dlt_user_cfg.h b/src/lib/dlt_user_cfg.h index 60f887b..83fa157 100644 --- a/src/lib/dlt_user_cfg.h +++ b/src/lib/dlt_user_cfg.h @@ -144,6 +144,12 @@ #define DLT_USER_MQ_ERROR_RETRY_INTERVAL 100000 +/* Name of environment variable to change the dlt log message buffer size */ +#define DLT_USER_ENV_LOG_MSG_BUF_LEN "DLT_LOG_MSG_BUF_LEN" + +/* Maximum msg size as per autosar standard */ +#define DLT_LOG_MSG_BUF_MAX_SIZE 65535 + /************************/ /* Don't change please! */ /************************/ -- cgit v1.2.1