Unsung Lee [Mon, 23 Oct 2023 02:17:42 +0000 (11:17 +0900)]
service: Set MemoryLimit to 20MB
Change-Id: I9ed5a01238f66a32f28dfd366fa696771e0bf51d
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
Michal Bloch [Mon, 9 Oct 2023 09:38:42 +0000 (11:38 +0200)]
Fix: generic cleanup for logger readers
Also solves a performance/behaviour issue.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b07b
Michal Bloch [Fri, 6 Oct 2023 11:47:42 +0000 (13:47 +0200)]
Release 8.0.6
Fixes and performance for multi-threading.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b07a
Michal Bloch [Fri, 6 Oct 2023 08:57:20 +0000 (10:57 +0200)]
Don't destroy the server while reader threads live
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b079
Michal Bloch [Tue, 3 Oct 2023 08:45:50 +0000 (10:45 +0200)]
Cleanup threaded memory readers properly
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b072
Michal Bloch [Thu, 5 Oct 2023 07:21:48 +0000 (09:21 +0200)]
Remove a TOCTTOU issue
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b078
Michal Bloch [Wed, 4 Oct 2023 08:11:15 +0000 (10:11 +0200)]
Starting a reader: expose MT dispatcher
Expose a MT dispatcher instead of the raw 'add reader to server' func.
Note that this doesn't change logic and the raw func is still used.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b075
Michal Bloch [Wed, 4 Oct 2023 10:39:16 +0000 (12:39 +0200)]
Reinstate dead reader storage
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b077
Michal Bloch [Tue, 3 Oct 2023 13:09:39 +0000 (15:09 +0200)]
Commonize server reader removal
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b074
Michal Bloch [Tue, 3 Oct 2023 10:49:12 +0000 (12:49 +0200)]
Simplify reader run dispatch
All reader types now support MT
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b073
Michal Bloch [Mon, 2 Oct 2023 11:32:12 +0000 (13:32 +0200)]
Thread self-cancel only deals with the thread
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b071
Michal Bloch [Thu, 28 Sep 2023 17:51:48 +0000 (19:51 +0200)]
Perform signal-related cleanup on exit
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b063
Michal Bloch [Thu, 28 Sep 2023 17:50:41 +0000 (19:50 +0200)]
Extract signal handling into two functions
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b062
Michal Bloch [Fri, 29 Sep 2023 14:46:51 +0000 (16:46 +0200)]
Release 8.0.5
Performance/correctness fixes for multi-threaded readers.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b070
Michal Bloch [Fri, 22 Sep 2023 17:25:07 +0000 (19:25 +0200)]
Don't put readers into the dead reader storage
This means the cleanup has to wait until the next daemon iteration,
which often takes up to 1s because it's sleeping on epoll.
This in turn creates unacceptable (according to tests) delays.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b064
Michal Bloch [Mon, 25 Sep 2023 11:58:32 +0000 (13:58 +0200)]
Fix a race condition
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b059
Michal Bloch [Wed, 13 Sep 2023 17:52:08 +0000 (19:52 +0200)]
Release 8.0.4
* allow multi-threading the pipe daemon.
Needs optimisations but is a good start.
* optimize zero-copy backend monitoring.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b058
Michal Bloch [Wed, 13 Sep 2023 12:45:59 +0000 (14:45 +0200)]
Make multithreading optional
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b056
Michal Bloch [Tue, 18 Jul 2023 13:51:52 +0000 (15:51 +0200)]
dlog_logger: multithread pipe & memory readers
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b004
Michal Bloch [Wed, 6 Sep 2023 14:51:31 +0000 (16:51 +0200)]
Avoid a race condition
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b055
Michal Bloch [Fri, 12 May 2023 11:17:22 +0000 (13:17 +0200)]
Add locks to log storages
Change-Id: Ic4ed88e4ee90b750b9bda57b3297b70350237f51
Michal Bloch [Thu, 20 Jul 2023 12:17:26 +0000 (14:17 +0200)]
dlog_logger: add Dead Reader Storage
It's there, 'cause storing dead readers is now the server's business, that's why!
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b005
Michal Bloch [Tue, 18 Jul 2023 14:11:02 +0000 (16:11 +0200)]
Unify starting a reader
The same function now either adds the reader to server
or, if so defined, runs a standalone thread.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b001
Mateusz Majewski [Wed, 13 Sep 2023 13:40:10 +0000 (15:40 +0200)]
Only read the logs that could have changed
This uses the new support for change bitmaps that is implemented in the
zlogger kernel module.
Change-Id: I6d4c9301003c7e436d9bddf7085fb1704f812674
Mateusz Majewski [Tue, 12 Sep 2023 07:09:09 +0000 (09:09 +0200)]
Disable some dynamic tests on the zero-copy backend
They have never passed there anyway.
Change-Id: I7680db2f787a5dc6645708997f07ffb775e57efb
Mateusz Majewski [Tue, 12 Sep 2023 07:08:51 +0000 (09:08 +0200)]
Add zero-copy option to test usage message
Change-Id: I86edcbfa01883dcecd7e5944ee6c61941d226147
Mateusz Moscicki [Wed, 6 Sep 2023 08:28:57 +0000 (10:28 +0200)]
Remove ISU package requirement from the spec
Change-Id: I879c1d17db6a42d86e1632ec47cf737cb6706ecf
Michal Bloch [Mon, 4 Sep 2023 12:46:56 +0000 (14:46 +0200)]
Increase coverage even further.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b024
Michal Bloch [Mon, 4 Sep 2023 14:56:29 +0000 (16:56 +0200)]
Expand the backend comparison table
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b023
Michal Bloch [Wed, 30 Aug 2023 12:51:13 +0000 (14:51 +0200)]
Improve the libdlogutil coverage test
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b022
Michal Bloch [Wed, 30 Aug 2023 10:55:17 +0000 (12:55 +0200)]
Exclude more code from coverage testing.
* work around poorly designed coverage testing setup (see logprint.c)
* exclude things that aren't in the public API
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b021
Michal Bloch [Fri, 25 Aug 2023 12:07:49 +0000 (14:07 +0200)]
Release 8.0.3
Coverage tests improvements
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b015
Michal Bloch [Fri, 25 Aug 2023 14:27:40 +0000 (16:27 +0200)]
Exclude some inaccessible code
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b019
Michal Bloch [Fri, 25 Aug 2023 14:15:23 +0000 (16:15 +0200)]
Add more dlogutil coverage tests
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b018
Michal Bloch [Fri, 25 Aug 2023 14:13:50 +0000 (16:13 +0200)]
Fix a warning message
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b017
Michal Bloch [Fri, 25 Aug 2023 12:39:41 +0000 (14:39 +0200)]
Improve type safety + microoptimize
Don't use the pointer to a member to write to the whole object.
Only write to a member of that member.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b016
Michal Bloch [Thu, 24 Aug 2023 19:21:15 +0000 (21:21 +0200)]
Add CAPI coverage tests
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b014
Michal Bloch [Wed, 23 Aug 2023 13:25:44 +0000 (15:25 +0200)]
Gather public API coverage
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b013
Michal Bloch [Fri, 18 Aug 2023 12:09:41 +0000 (14:09 +0200)]
Release 8.0.2
Coverage stats + preparation for MT
Michal Bloch [Wed, 16 Aug 2023 19:08:45 +0000 (21:08 +0200)]
Exclude some files from coverage
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b012
Michal Bloch [Fri, 11 Aug 2023 17:25:56 +0000 (19:25 +0200)]
Add "coverage tests"
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b011
Michal Bloch [Thu, 3 Aug 2023 19:45:20 +0000 (21:45 +0200)]
log storage: leave no dangling pointers, even if unused
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b010
Michal Bloch [Thu, 20 Jul 2023 12:20:00 +0000 (14:20 +0200)]
Commonize reader_free_foreach
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b000
Michal Bloch [Mon, 17 Jul 2023 15:10:22 +0000 (17:10 +0200)]
Remove log storage peeking
Not thread safe, won't be used with threads.
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b764
Michal Bloch [Tue, 9 May 2023 15:09:26 +0000 (17:09 +0200)]
dlog_logger: unify reader servicing
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b760
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Mon, 8 May 2023 11:39:49 +0000 (13:39 +0200)]
dlog_logger: add a ghetto vtable to readers
Change-Id: I3b9ee496a24f6e22f87a544fcf2beac1c1ccf01e
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Fri, 5 May 2023 18:47:36 +0000 (20:47 +0200)]
dlog_logger: commonize reader threading facilities
Change-Id: I1e48836dd71094512f8364c0d361dc131b178bf1
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Fri, 5 May 2023 18:48:03 +0000 (20:48 +0200)]
Get rid of AL reader source FD entity
We poll manually now.
Change-Id: I3df12aa9af47e58f92bd545d3fbc779b05d927f0
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 8 Aug 2023 15:05:36 +0000 (17:05 +0200)]
Fix a null dereference
Change-Id: I798ac2334b123255bdb5afc19208e1eba412b4ee
Youngjae Cho [Mon, 24 Jul 2023 11:58:24 +0000 (20:58 +0900)]
Replace prefix 'libsys' with 'syscommon'
The libsyscommon prototype has changed to have prefix 'syscommon'.
Although this patch has no effect, followed the libsyscommon as it
is literally a function of the libsyscommon. This association would
help to address the workaround later.
Change-Id: I798ac2334b123255bdb5afc19208e1eba412b4ef
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Michal Bloch [Mon, 17 Jul 2023 15:10:03 +0000 (17:10 +0200)]
Fix pipe reader log selection logic
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b763
Michal Bloch [Mon, 17 Jul 2023 15:09:52 +0000 (17:09 +0200)]
Storage returns entry into buffer
In preparation for thread-safety (can't return
a pointer since the pointee can die).
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b762
Michal Bloch [Mon, 17 Jul 2023 15:09:46 +0000 (17:09 +0200)]
Fix order dependency of some compression tests
Change-Id: I4c546d8e3479b7498c9ed2def85b7f710672b761
Michal Bloch [Wed, 26 Apr 2023 16:08:10 +0000 (18:08 +0200)]
Extract common parts of util req handling
Change-Id: I8cec8a8c8f20724714b149354baea1fb3f94df16
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Wed, 26 Apr 2023 15:05:02 +0000 (17:05 +0200)]
Improve commentary a bit
Change-Id: I91f26aae5fc34fe399ee948b8c8ca5630a5a654f
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Mon, 10 Jul 2023 17:12:59 +0000 (19:12 +0200)]
Addendum
c0b7aa712756fc0c6eab600b022c66ca684d6de3
Change-Id: I15d5fac23d1feb37d9fa699df7b973442eb0deb6
Karol Lewandowski [Mon, 10 Jul 2023 11:58:08 +0000 (13:58 +0200)]
Release 8.0.1
Change-Id: I15d5fac23d1feb37d9fa699df7b973442eb0deb5
Mateusz Moscicki [Tue, 16 May 2023 08:35:56 +0000 (10:35 +0200)]
Add ISU Package
Change-Id: Ia0c6b6de39194c8e8522888c683904b762a6116c
Karol Lewandowski [Mon, 10 Jul 2023 14:48:20 +0000 (16:48 +0200)]
Drop dynamic filters configure option
Change-Id: If58d71553306651b4fa1c353d6558c349d6f6c33
Karol Lewandowski [Mon, 10 Jul 2023 11:50:44 +0000 (13:50 +0200)]
configure: XO is long gone, long live Tizen
This commit drops legacy configure options, including XO.
Change-Id: I35108361cc1f260e1fa3715f1d23f939f0b7a051
Karol Lewandowski [Mon, 10 Jul 2023 11:32:03 +0000 (13:32 +0200)]
packaging: Make vconf usage optional and disable it by default
vconf is used for low-memory notification, but vconf also uses dlog so adding it here
causes build loop:
glib2->libdbuspolicy->libcynara-commons->dlog->buxton2->glib2
This commit keeps the feature but disables it by default.
Change-Id: I108f3bb5bbed1a4816bfb8ea8b125c8149a09ded
Karol Lewandowski [Mon, 10 Jul 2023 11:40:16 +0000 (13:40 +0200)]
packaging: Drop uneeded pkgconfig(vconf) for logger binary package
pkgconfig() is for build deps, it's strictly unnecessary for dlog_logger binary package.
Change-Id: Ic014f07b5986ee7b448820d4788ffa257ab6944e
Michal Bloch [Mon, 3 Jul 2023 14:51:16 +0000 (16:51 +0200)]
Fix the stdout redirection block
Change-Id: I38d80a33a8af0093eea3c59766c423c9148f1788
Michal Bloch [Mon, 3 Jul 2023 09:19:45 +0000 (11:19 +0200)]
Release 8.0.0
Add low-memory compression size reduction and stdout disabling.
Change-Id: I38d80a33a8af0093eea3c59766c423c9148f17c7
Antoni [Fri, 12 May 2023 14:11:45 +0000 (16:11 +0200)]
Make logger resize storage when system is low on memory
Logger registers for the wait on a vconf signal.
Change-Id: I38d80a33a8af0093eea3c59766c423c9148f17c3
Marek Szulc [Fri, 12 May 2023 12:24:29 +0000 (14:24 +0200)]
dlog_logger: add log compressed storage resize to logctl options
Change-Id: I8a43bcb73fec343eb47e894c2fdcea6b15ddd38b
Michal Bloch [Fri, 23 Jun 2023 15:45:32 +0000 (17:45 +0200)]
Add stdout redirection defaults to `dlog.conf`
For discoverability.
Change-Id: I592a75d36a2915bf786ae54cc94591d606fa01c2
Antoni [Thu, 15 Jun 2023 19:58:06 +0000 (21:58 +0200)]
Disallow redirecting to stdout based on config keys
Change-Id: I592a75d36a2915bf786ae54cc94591d606fa01c1
Michal Bloch [Wed, 14 Jun 2023 16:33:06 +0000 (18:33 +0200)]
Fix a scandirat failure in tests
scandirat would return EOVERFLOW.
Change-Id: I9b26e20b3d81595dcbd09dd0584c23a37ff68599
Łukasz Stelmach [Wed, 14 Jun 2023 14:28:26 +0000 (16:28 +0200)]
Fix snprintf(3) format truncation bug reported by gcc 13
src/tests/deduplicate_test.c: In function 'test_advanced_many_millisec':
src/tests/deduplicate_test.c:331:54: error: 'snprintf' output may be truncated before the last format character [-Werror=format-truncation=]
331 | snprintf(msg, sizeof msg, "%d", index);
| ^
src/tests/deduplicate_test.c:331:25: note: 'snprintf' output between 2 and 5 bytes into a destination of size 4
331 | snprintf(msg, sizeof msg, "%d", index);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Change-Id: I9b26e20b3d81595dcbf09dd0584c23a37ff68599
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
Chanwoo Choi [Mon, 22 May 2023 06:19:33 +0000 (15:19 +0900)]
Remove dlog_print_{dotnet,native} information from the header
dlog.h header file is published by Tizen rootstrap in order to keep
the ABI compatibility. It should only contain the published
information. So that remove dlog_print_{dotnet,native} information
from the header
Change-Id: I91588df23017864fbc767a3c1bb2bebd48c71cf1
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Michal Bloch [Mon, 24 Apr 2023 13:27:52 +0000 (15:27 +0200)]
Release 7.5.5
Fixes a race condition that could result in unsorted logs.
Change-Id: Ia21ef08956cff695c9402ad1a63ca87ea121e82c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Mon, 24 Apr 2023 13:16:04 +0000 (15:16 +0200)]
"""Fix""" an integration test
Change-Id: Iecc09484a4a8945b63828a54dc7e5b40cb9db16d
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Thu, 20 Apr 2023 20:21:57 +0000 (22:21 +0200)]
libdlogutil: printing buffers get aliased
Change-Id: I7b12fe7ab7cef14479cb09f6335eef54b6b131af
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Thu, 20 Apr 2023 18:33:55 +0000 (20:33 +0200)]
libdlogutil: pipe requests aliased buffers
Change-Id: I74dd76cf99c40355676a36dd7a5bea7e2c4a67af
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 18 Apr 2023 13:43:50 +0000 (15:43 +0200)]
Alow multiplexing from writer-made readers
Change-Id: I0ab35b82c7c4e04909e4a011eee7ce4e99915562
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Thu, 20 Apr 2023 17:23:40 +0000 (19:23 +0200)]
libdlogutil: pipe request sends buffer info
Change-Id: I980216d0f31f5192526507896ef91e96a26e3c25
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Thu, 20 Apr 2023 14:31:03 +0000 (16:31 +0200)]
libdlogutil: minor refactor
Change-Id: Ib46e7040b9d045f245839aa266562f6dbd1a39c3
Michal Bloch [Thu, 20 Apr 2023 13:57:10 +0000 (15:57 +0200)]
libdlogutil: extract op set check
Change-Id: I3dfed3f6c298c594af2f41e98c95c347f99dd39c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 18 Apr 2023 16:19:56 +0000 (18:19 +0200)]
libdlogutil: extract buffer checks
Delete tests because they can't read the config.
Change-Id: I3803b86ad0efc5e2b7e6c3e407b2ccd9fc6ebadf
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Mon, 17 Apr 2023 14:10:26 +0000 (16:10 +0200)]
dlog_logger: allow multiplexing pipe storage readers
Change-Id: I634643dbc26f7f4a8fec2d0e86e12cd16e75bf6c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Thu, 13 Apr 2023 13:42:14 +0000 (15:42 +0200)]
reader_pipe: get rid of dump/monitor flags
Only pass them to the storage reader
Change-Id: If7186778b234fa9e8a6a258474652e79a0eeb52f
Michal Bloch [Thu, 6 Apr 2023 15:32:23 +0000 (17:32 +0200)]
dlog_logger: clear drained dumping storage readers
Change-Id: I27316b35c3e06862953bae7ebe3541fc60d32b5c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 4 Apr 2023 14:46:01 +0000 (16:46 +0200)]
General pyramidity reduction
40 levels of indentation look down upon you
Change-Id: I8178af8fd23b70337a189677d11a2fc1f767b7fd
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 4 Apr 2023 12:29:01 +0000 (14:29 +0200)]
dlog_logger: commonize adding server readers
Change-Id: Iac10a724188d407f2298515959096a34b8061ba5
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 4 Apr 2023 10:42:08 +0000 (12:42 +0200)]
dlog_logger: remove log_buffer ptr from pipe readers
Change-Id: I4a40704234e2f964b5961966b147c4711799011e
Michal Bloch [Mon, 3 Apr 2023 14:04:16 +0000 (16:04 +0200)]
dlog_logger: server has just one nominal sorting
Change-Id: I926417dbbd46f55bc27887ffbd3a67de5c68b19e
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Wed, 5 Apr 2023 12:42:50 +0000 (14:42 +0200)]
Storage readers: add `is_finished` for dumping readers
Both `log_compressed_storage` and regular uncompressed `log_storage`
Change-Id: Ia7265a91eb10350fa5269fe98e94780301687eea
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Wed, 5 Apr 2023 14:11:11 +0000 (16:11 +0200)]
Fix single-log dumping readers
Change-Id: I1a0326ff43130646affa211ed117bc6f5041f3af
Michal Bloch [Wed, 29 Mar 2023 12:28:12 +0000 (14:28 +0200)]
dlog_logger: multiplex pipe storage readers (nominally)
There's still just one storage reader per pipe reader,
but it's now easy to add more.
Change-Id: I58b677dc0b1989c635207d345540bfad94a2dec2
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Thu, 30 Mar 2023 11:41:32 +0000 (13:41 +0200)]
Add log storage peeking
Allows to "peek" at an entry without consuming it.
This is needed to be able to choose the best
storage to consume an entry from in the planned
multi-storage reader system.
Change-Id: Id62c6ff2cc4dac5d0fa925d6e01048da50bb2454
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Fri, 24 Mar 2023 16:25:48 +0000 (17:25 +0100)]
dlog_logger: pipe reader buffer param now a bitmask
Internally only, no logic change. Multiple buffers are still rejected.
Change-Id: I556f91cb1346d80c0b8f04b70deca5875f32d417
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Fri, 24 Mar 2023 17:46:20 +0000 (18:46 +0100)]
dlog_logger: unify reader book-keeping
Change-Id: I31d02853f4023b123f16e8469741fd62cba8d201
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Tue, 14 Mar 2023 16:33:56 +0000 (17:33 +0100)]
dlog_logger: get rid of Android Logger throttling
No longer needed now that each reader has its own thread,
since it won't starve other threads.
Change-Id: I90477fcd1510b9447027fc0f1bcfd67b45305514
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Thu, 23 Mar 2023 15:36:24 +0000 (16:36 +0100)]
Release 7.5.4
Hide csharp API and add daemon multi-threading
Change-Id: I3e5557083ba2551d76a57080539de7e5491590cd
Michal Bloch [Thu, 16 Mar 2023 12:22:01 +0000 (13:22 +0100)]
dlog_logger: simplify reader_logger
No longer uses the server abstraction
Change-Id: I6d60f6bd96c6f6c6460b418489cf39d9bac749b8
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Wed, 15 Mar 2023 13:41:12 +0000 (14:41 +0100)]
Hide dlog_print_{dotnet,native} from the header
Change-Id: Ibcd9b7c2c7aaa0a96faaaf6cac4f870dc6d3434f
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Mon, 13 Mar 2023 16:40:17 +0000 (17:40 +0100)]
unit tests: fix a minor leak
Change-Id: I021efcad0ee56fee4a1af8be568635a45ab6df7c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
Michal Bloch [Mon, 13 Mar 2023 14:25:32 +0000 (15:25 +0100)]
log-redirect: don't put enormous vars on the stack
Change-Id: I3e6df1c687d7d379f13078dbca7450cda34a97d5
Michal Bloch [Fri, 10 Feb 2023 17:39:40 +0000 (18:39 +0100)]
dlog_logger: multi-thread logger readers
Each Android Logger reader now has its own thread.
This means the daemon now has up to 5 threads, which
will make it more responsive and less likely to starve.
Future commits will introduce similar treatment for
pipe and memory readers if this change proves itself.
Change-Id: I197bf2905449109bdd7a497a571c89c366608b06
Signed-off-by: Michal Bloch <m.bloch@samsung.com>