diff options
author | christian <christian@genivialex.(none)> | 2011-08-11 22:21:06 +0200 |
---|---|---|
committer | christian <christian@genivialex.(none)> | 2011-08-11 22:21:06 +0200 |
commit | 4943dce528c9a67e41613f36163dec18b0ceb70b (patch) | |
tree | 27839b31bae4ee20b82e6fb3e8cef1f29a2fab1b /src/daemon | |
parent | 885a1474729164f3f049a38c27c6f8c148fee95f (diff) | |
parent | f204d5669c41fa3884f6070bd89554f8c1aa3712 (diff) | |
download | DLT-daemon-4943dce528c9a67e41613f36163dec18b0ceb70b.tar.gz |
Merge branch 'develop'
Diffstat (limited to 'src/daemon')
-rwxr-xr-x | src/daemon/dlt_daemon_common.c | 3 | ||||
-rwxr-xr-x | src/daemon/dlt_daemon_common.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_common.c b/src/daemon/dlt_daemon_common.c index a4d5dba..b48e936 100755 --- a/src/daemon/dlt_daemon_common.c +++ b/src/daemon/dlt_daemon_common.c @@ -178,7 +178,8 @@ int dlt_daemon_init(DltDaemon *daemon,const char *runtime_directory, int verbose dlt_set_id(daemon->ecuid,""); /* initialize ring buffer for client connection */ - if (dlt_ringbuffer_init(&(daemon->client_ringbuffer), DLT_DAEMON_RINGBUFFER_SIZE)==-1) + + if (dlt_ringbuffer_init(&(daemon->client_ringbuffer), DLT_DAEMON_RINGBUFFER_SIZE,DLT_DAEMON_RINGBUFFER_INCREASE_SIZE,DLT_DAEMON_RINGBUFFER_MAXIMUM_SIZE)==-1) { return -1; } diff --git a/src/daemon/dlt_daemon_common.h b/src/daemon/dlt_daemon_common.h index 1d16a85..39907e8 100755 --- a/src/daemon/dlt_daemon_common.h +++ b/src/daemon/dlt_daemon_common.h @@ -97,6 +97,10 @@ extern "C" { #define DLT_DAEMON_RINGBUFFER_SIZE 100000 /**< Ring buffer size for storing log messages while no client is connected */
+#define DLT_DAEMON_RINGBUFFER_INCREASE_SIZE DLT_DAEMON_RINGBUFFER_SIZE
+
+#define DLT_DAEMON_RINGBUFFER_MAXIMUM_SIZE 100*DLT_DAEMON_RINGBUFFER_INCREASE_SIZE
+
#define DLT_DAEMON_STORE_TO_BUFFER -2 /**< Constant value to identify the command "store to buffer" */
/* Use a semaphore or mutex from your OS to prevent concurrent access to the DLT buffer. */
|