diff options
author | ManikandanC <Manikandan.Chockalingam@in.bosch.com> | 2017-05-22 10:57:21 +0530 |
---|---|---|
committer | Manikandan C <mchockalingam@de.adit-jv.com> | 2018-12-06 12:28:13 +0100 |
commit | 23652a7cbfb4ea24870f4e2f03cf16b9ece4c1ce (patch) | |
tree | 11716c37bc99a591804c8adad087f2eb0a93641d /src/lib/dlt_user_cfg.h | |
parent | f50cd0544d70c837d68a28316d2141c5a650db91 (diff) | |
download | DLT-daemon-dynamic_buffer_alloc.tar.gz |
Dynamic allocation of msg bufferdynamic_buffer_alloc
It is possible to change the default buffer size for log message creation via
environment variable:
export DLT_LOG_MSG_BUF_LEN=<value>
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 <clipka@de.adit-jv.com>
Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
Diffstat (limited to 'src/lib/dlt_user_cfg.h')
-rw-r--r-- | src/lib/dlt_user_cfg.h | 6 |
1 files changed, 6 insertions, 0 deletions
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! */ /************************/ |