platform/core/system/dlog.git
4 years agolibdlogutil: split off continuous flushing 21/229521/3
Michal Bloch [Tue, 31 Mar 2020 17:34:26 +0000 (19:34 +0200)]
libdlogutil: split off continuous flushing

Change-Id: Ic4cefeb97d836eaf41eb355c1907f963018e5bfa

4 years agolibdlogutil: simplify -t mode sorting 86/229386/3
Michal Bloch [Tue, 31 Mar 2020 16:29:18 +0000 (18:29 +0200)]
libdlogutil: simplify -t mode sorting

Change-Id: I709b29b2b510d49410b790c648fa9eabe8802c18
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlogutil: extract a common check to a function 80/229680/1
Michal Bloch [Thu, 2 Apr 2020 12:52:26 +0000 (14:52 +0200)]
libdlogutil: extract a common check to a function

Change-Id: I220e891e97a57bf13f775f1b4a928333b24710d2
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlogutil: support timeout param (nominally) 85/229385/2
Michal Bloch [Fri, 27 Mar 2020 19:29:54 +0000 (20:29 +0100)]
libdlogutil: support timeout param (nominally)

Change-Id: I405093fb559b4f1935e404aa8ae3f597fcdf6cb0
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoMerge changes I138ad4f5,Ib6bc5b61 into tizen accepted/tizen/unified/20200406.133202 submit/tizen/20200402.112144
Michal Bloch [Tue, 31 Mar 2020 15:13:01 +0000 (15:13 +0000)]
Merge changes I138ad4f5,Ib6bc5b61 into tizen

* changes:
  Const correctness
  libdlogutil: remove callback/userdata from the state

4 years agoConst correctness 33/229233/1
Michal Bloch [Fri, 27 Mar 2020 19:52:10 +0000 (20:52 +0100)]
Const correctness

Change-Id: I138ad4f5b3f76006c88319a5c204d674de1d9cd9
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolimiter divided into positive and negative tests 73/228973/2
Agnieszka Baumann [Wed, 25 Mar 2020 09:21:52 +0000 (10:21 +0100)]
limiter divided into positive and negative tests

Change-Id: I25b01d7c093d80cf01bd6585a8ef526ceda915ef

4 years agolibdlogutil: remove callback/userdata from the state 32/229232/1
Michal Bloch [Fri, 27 Mar 2020 14:39:21 +0000 (15:39 +0100)]
libdlogutil: remove callback/userdata from the state

Change-Id: Ib6bc5b618dd1fd95c6a77d6bf78bd5eda93ac91d
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlogutil: refactor mainloop to work on single logs 75/228675/7
Mateusz Majewski [Tue, 24 Mar 2020 15:00:13 +0000 (16:00 +0100)]
libdlogutil: refactor mainloop to work on single logs

The main worker function now calls the callback on a single log.
Backward compatibility is maintained through a wrapper.

Change-Id: Iaacc48977c360b12bba3b06ab0a51fe2ba18bf3f
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlogutil: put logs into vector before polling 98/228798/1
Michal Bloch [Wed, 25 Mar 2020 14:20:43 +0000 (15:20 +0100)]
libdlogutil: put logs into vector before polling

Eventually we want the API to return a single log. With poll at the
front, it would be done for every log returned, which is unnecessary.

Additionally, remove the "poll returned nothing" condition which
allowed all buffers to be drained at the same time. It shouldn't
be helping much in practice and can be simplified away.

The callback is temporarily not allowed to return 1. This will go
away in the final version of the API.

Change-Id: I4ccb0a613a902484303f651830a946ccc8718130
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoMerge "test_ptrs_list divided into positive and negative tests" into tizen
Michal Bloch [Wed, 25 Mar 2020 13:38:34 +0000 (13:38 +0000)]
Merge "test_ptrs_list divided into positive and negative tests" into tizen

4 years agotest_ptrs_list divided into positive and negative tests 92/228792/1
Agnieszka Baumann [Mon, 23 Mar 2020 11:57:54 +0000 (12:57 +0100)]
test_ptrs_list divided into positive and negative tests

Change-Id: I1e3391f6c1568a8a0adf4398401a7e875dfe133c

4 years agosyslog_parser divided into positive and negative tests 78/228678/1
Agnieszka Baumann [Tue, 24 Mar 2020 14:47:00 +0000 (15:47 +0100)]
syslog_parser divided into positive and negative tests

Change-Id: I05366c4f2f884cde56e3b552fa01d94e84bd398d

4 years agolibdlogutil: flushing stateful, unlooped 37/228537/2
Mateusz Majewski [Thu, 12 Mar 2020 09:23:34 +0000 (10:23 +0100)]
libdlogutil: flushing stateful, unlooped

This is done in order to move closer to the goal of making that
function reentrant. The block of code handling flushing still
forms a loop but now it is going to be trivial to change it to
return a single log by changing a 'continue' into a 'return'.

The block of code moved to the beginning so that the 'continue'
can emulate a loop as before (i.e. without epoll and sorting
happening in between) since the function is not reentrant yet.

Change-Id: I95248cfd3e8132dd14310219e93e3be887903605

4 years agolibdlogutil: move extra options to the state 08/228208/4
Michal Bloch [Thu, 19 Mar 2020 13:36:32 +0000 (14:36 +0100)]
libdlogutil: move extra options to the state

Change-Id: I257424c7e1c4ec8667747a0e00e0c0594321a6db
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoAdd license boilerplate 35/228535/2
Michal Bloch [Mon, 23 Mar 2020 17:30:18 +0000 (18:30 +0100)]
Add license boilerplate

Change-Id: I5c107e25c8abba1fc8b1099f66a90aa09fcb0a0c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agotest_common divided into positive and negative tests 34/228534/1 submit/tizen/20200324.041440
Agnieszka Baumann [Wed, 4 Mar 2020 16:13:37 +0000 (17:13 +0100)]
test_common divided into positive and negative tests

Change-Id: I35fb99d45fdec21892019dc6268b7e1ed2a79c54

4 years agoEnforce correct Android Logger message size 31/228531/1 submit/tizen/20200323.123413
Michal Bloch [Mon, 23 Mar 2020 12:16:19 +0000 (13:16 +0100)]
Enforce correct Android Logger message size

Change-Id: Iabff9351c39f5a20c0ca6993730b23cb7ab301ca
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoMeasure code coverage only when gcov option is given 09/228109/1 accepted/tizen/unified/20200323.172959 submit/tizen/20200319.070253 submit/tizen/20200319.110534 submit/tizen/20200320.175301 submit/tizen/20200323.014258
Yunmi Ha [Thu, 19 Mar 2020 06:18:42 +0000 (15:18 +0900)]
Measure code coverage only when gcov option is given

Change-Id: I9b4e2abfbacfc96e51bdf4d4cd48dd32c1c699bf
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoRelease 6.0.9 58/228058/2 submit/tizen/20200318.173155 submit/tizen/20200318.231205
Michal Bloch [Wed, 18 Mar 2020 12:54:40 +0000 (13:54 +0100)]
Release 6.0.9

This release brings the fix of a SIGBUS crash and various refactoring preparations.

Change-Id: I4b3dcbdcf3ccefe2de7b4c875b8873324f269df7
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoRemove some dead code 44/228044/3
Mateusz Majewski [Wed, 18 Mar 2020 09:42:42 +0000 (10:42 +0100)]
Remove some dead code

Right now, literally only purpose of those two functions is confusing
people.

Change-Id: I1b4e9a814b4b6589abd5215ac79749a49ab219e9

4 years agoFix a dlogutil regression 64/228064/2
Mateusz Majewski [Wed, 18 Mar 2020 14:09:50 +0000 (15:09 +0100)]
Fix a dlogutil regression

Change-Id: I0529ab65e04e2a19c7e326a9014cdd1bc4c22752

4 years agoMerge "Don't wait until lazy init to block SIGPIPE" into tizen
Michal Bloch [Wed, 18 Mar 2020 12:53:34 +0000 (12:53 +0000)]
Merge "Don't wait until lazy init to block SIGPIPE" into tizen

4 years agoCommentary for previous 55/228055/1
Michal Bloch [Wed, 18 Mar 2020 11:58:59 +0000 (12:58 +0100)]
Commentary for previous

Change-Id: I9b5f3f54f6089b4a2aa1713c698e922504371c28
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoFix SIGBUS in pipe backend 19/228019/3
Semun Lee [Wed, 18 Mar 2020 06:46:45 +0000 (15:46 +0900)]
Fix SIGBUS in pipe backend

make log entry to be aligned by 4

Change-Id: Ibe17b0f7e99dfcdf823b4dc8d328f4c65b4c436a
Signed-off-by: Semun Lee <semun.lee@samsung.com>
4 years agoMerge changes I6d9bf6cd,If5f5eebd,Icf4b49c2,Ib4f2522d into tizen submit/tizen/20200317.184359
Michal Bloch [Tue, 17 Mar 2020 18:38:49 +0000 (18:38 +0000)]
Merge changes I6d9bf6cd,If5f5eebd,Icf4b49c2,Ib4f2522d into tizen

* changes:
  libdlogutil: extract more locals into the state
  libdlogutil: mainloop accepts state by param
  libdlogutil: extract state initialisation
  libdlogutil mainloop: keep state in a struct

4 years agoFix integration tests 69/227969/3
Mateusz Majewski [Tue, 17 Mar 2020 15:59:42 +0000 (16:59 +0100)]
Fix integration tests

Change-Id: I1ce295e95902e44d319999d98435434d14eb971f

4 years agoWorkaround gettid test failure 68/227968/3
Michal Bloch [Tue, 17 Mar 2020 15:11:56 +0000 (16:11 +0100)]
Workaround gettid test failure

Change-Id: Ie36fb856973f2d180da562d3c0d6d6ee380f46c7
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlog_android divided into positive and negative tests 25/227825/1
Agnieszka Baumann [Mon, 9 Mar 2020 19:00:30 +0000 (20:00 +0100)]
libdlog_android divided into positive and negative tests

Change-Id: I06842f7ed3a9ac619b94d5b767fbee8560fcc090

4 years agolibdlog_base divided into positive and negative tests 24/227824/1
Agnieszka Baumann [Mon, 9 Mar 2020 17:18:03 +0000 (18:18 +0100)]
libdlog_base divided into positive and negative tests

Change-Id: I75319256eca5d110cf5c2439097e9c1f50a65d79

4 years agoFix -Wextra and -pedantic errors 23/227823/1
Agnieszka Baumann [Mon, 10 Feb 2020 15:50:03 +0000 (16:50 +0100)]
Fix -Wextra and -pedantic errors

Change-Id: I9267a6c9eabd680c5306ad6d80cf4be72b05355a

4 years agoDon't wait until lazy init to block SIGPIPE 43/227643/2
Michal Bloch [Fri, 13 Mar 2020 11:38:44 +0000 (12:38 +0100)]
Don't wait until lazy init to block SIGPIPE

Change-Id: I116d1e3c23f00e2ac1523a7ffcb469bcf50d40d5
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agokmsg_parser divided into positive and negative tests 33/227233/3
Agnieszka Baumann [Mon, 9 Mar 2020 15:39:39 +0000 (16:39 +0100)]
kmsg_parser divided into positive and negative tests

Change-Id: I2ec28842022640869856a6af9b71fa1ffe8eb986

4 years agoDocument disabling SIGPIPE 60/227660/1
Mateusz Majewski [Fri, 13 Mar 2020 12:23:09 +0000 (13:23 +0100)]
Document disabling SIGPIPE

Change-Id: If0865473e70d195b0d133d60bd8b870a9261ef8c

4 years agoMerge "Inline flush" into tizen
Michal Bloch [Fri, 13 Mar 2020 12:08:45 +0000 (12:08 +0000)]
Merge "Inline flush" into tizen

4 years agoMerge changes into tizen
Michal Bloch [Fri, 13 Mar 2020 12:08:45 +0000 (12:08 +0000)]
Merge changes  into tizen

4 years agoMerge "Move callback call out of fdi_push_log" into tizen
Michal Bloch [Fri, 13 Mar 2020 12:08:45 +0000 (12:08 +0000)]
Merge "Move callback call out of fdi_push_log" into tizen

4 years agolibdlogutil: extract more locals into the state 48/227648/1
Michal Bloch [Tue, 10 Mar 2020 17:44:25 +0000 (18:44 +0100)]
libdlogutil: extract more locals into the state

Change-Id: I6d9bf6cd7a0681320f9b56fec50b28bceca213ee
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlogutil: mainloop accepts state by param 47/227647/1
Michal Bloch [Tue, 10 Mar 2020 17:13:37 +0000 (18:13 +0100)]
libdlogutil: mainloop accepts state by param

Change-Id: If5f5eebdd06c5fcffe51ba223ad97b13fb169802
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlogutil: extract state initialisation 46/227646/1
Michal Bloch [Tue, 10 Mar 2020 16:59:43 +0000 (17:59 +0100)]
libdlogutil: extract state initialisation

Change-Id: Icf4b49c21718fdb30820340a006c85a898dc44e8
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agolibdlogutil mainloop: keep state in a struct 45/227645/1
Michal Bloch [Tue, 10 Mar 2020 13:11:31 +0000 (14:11 +0100)]
libdlogutil mainloop: keep state in a struct

Change-Id: Ib4f2522d0e9a1c4a22ddb73c9ab5dbebe7acb320
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoInline flush 95/227395/1
Mateusz Majewski [Wed, 4 Mar 2020 17:31:48 +0000 (18:31 +0100)]
Inline flush

Change-Id: I73dff034985e689006fc67532336ca049ac41e66

4 years agoMove callback call out of fdi_push_log 34/226434/3
Mateusz Majewski [Mon, 2 Mar 2020 12:01:48 +0000 (13:01 +0100)]
Move callback call out of fdi_push_log

Change-Id: I06e10a24042d3a011cba579370ccf001bfbbb955

4 years agoSimplify sort_vector_push 22/226422/4
Mateusz Majewski [Mon, 2 Mar 2020 08:05:11 +0000 (09:05 +0100)]
Simplify sort_vector_push

This is done by assuming that the vector is not full. It is better to
handle that case elsewhere.

Change-Id: Ie62d9c71628ec98edc8daaafb6b97cb14503cf12

4 years agoConst correctness 72/226972/2
Michal Bloch [Thu, 5 Mar 2020 10:39:21 +0000 (11:39 +0100)]
Const correctness

Change-Id: I631bde8942110ed76372c7b9a067e9c7b43b5d42
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agopipe: salvage corrupted logs at reception 36/225536/9 accepted/tizen/unified/20200311.130821 submit/tizen/20200310.104300
Michal Bloch [Wed, 19 Feb 2020 18:20:00 +0000 (19:20 +0100)]
pipe: salvage corrupted logs at reception

Change-Id: I64087026138e2f894dda23b003a8da8a56418803
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoAdd non-empty assert in sort_vector_pop 31/226431/1
Mateusz Majewski [Mon, 2 Mar 2020 12:54:01 +0000 (13:54 +0100)]
Add non-empty assert in sort_vector_pop

Change-Id: Ic732324f3be18ebe3b5689ba20a959892068c3a7

4 years agocoverity: Fix coverity issue 62/226162/2 accepted/tizen/unified/20200228.123730 submit/tizen/20200227.094013
sanghyeok.oh [Thu, 27 Feb 2020 07:37:15 +0000 (16:37 +0900)]
coverity: Fix coverity issue

Coverity: #1124568, #1044318

Change-Id: I87b998521582b7562ac4e056332301cdb7697e54

4 years agotests: improve coverage 11/225811/5
Michal Bloch [Mon, 24 Feb 2020 13:40:58 +0000 (14:40 +0100)]
tests: improve coverage

Change-Id: Ia252acaea242ff924e3c20bbbe817a5e82f9140a
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoMerge "Make some global variables static" into tizen
Michal Bloch [Wed, 26 Feb 2020 10:14:07 +0000 (10:14 +0000)]
Merge "Make some global variables static" into tizen

4 years agoMake some global structs const 36/226036/1
Mateusz Majewski [Wed, 26 Feb 2020 07:42:39 +0000 (08:42 +0100)]
Make some global structs const

Change-Id: Ia179bafdbb923576468c31c47fd25956085a51de

4 years agoMake some global variables static 28/225928/2
Michal Bloch [Tue, 25 Feb 2020 10:01:10 +0000 (11:01 +0100)]
Make some global variables static

Change-Id: I0bbe2c4fbfa052abc85eff3f5f97498bbcefdc31
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoDocument log limiting limitations 33/225733/2
Mateusz Majewski [Mon, 24 Feb 2020 07:04:37 +0000 (08:04 +0100)]
Document log limiting limitations

Change-Id: If7ec6c9219d7d924199d707eadfe910bc4305a3d

4 years agoRelease 6.0.8 61/225661/1 accepted/tizen/unified/20200224.081532 submit/tizen/20200221.181603
Mateusz Majewski [Fri, 21 Feb 2020 16:38:35 +0000 (17:38 +0100)]
Release 6.0.8

This release adds the --sort-by option to dlogutil and some minor
improvements to dlogutil, critical_log, documentation and tests.

Change-Id: I90b73fb96c902fcf2841505274c6b7eabd541af2

4 years agodlogutil: no print-related prep for clear/getsize 61/224561/5
Michal Bloch [Wed, 19 Feb 2020 13:51:05 +0000 (14:51 +0100)]
dlogutil: no print-related prep for clear/getsize

Change-Id: I4670d24c29f9845497b7abfd88535704ed750936
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoutil: use EXIT_{SUCCESS,FAILURE} 35/225535/2
Michal Bloch [Wed, 19 Feb 2020 13:12:27 +0000 (14:12 +0100)]
util: use EXIT_{SUCCESS,FAILURE}

Change-Id: I909237fb0afa534fcd766092b83a49a1fcb5e747
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agodlogutil: extract clear/getsize to own functions 43/225143/4
Michal Bloch [Mon, 17 Feb 2020 13:03:44 +0000 (14:03 +0100)]
dlogutil: extract clear/getsize to own functions

Change-Id: Idc399f92adb916107604a81f039e9d039b430e77
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoRemove a lie 42/225642/1
Mateusz Majewski [Fri, 21 Feb 2020 11:11:24 +0000 (12:11 +0100)]
Remove a lie

Change-Id: I614bdc01f7519293042323e812b7234b1d5a0be3

4 years agoAdd a missing newline in logutil's usage text 94/225394/1
Mateusz Majewski [Wed, 19 Feb 2020 12:12:50 +0000 (13:12 +0100)]
Add a missing newline in logutil's usage text

Change-Id: Ibad036376507f8ea53a32462d29aca3b57314a07

4 years agoAdd monitor mode integration tests 80/225380/2
Mateusz Majewski [Wed, 19 Feb 2020 10:03:36 +0000 (11:03 +0100)]
Add monitor mode integration tests

Change-Id: I639bf18439826c6900a843dd918c8c10e1d6bbee

4 years agoAdd continuous mode integration tests 79/225379/1
Mateusz Majewski [Wed, 19 Feb 2020 10:03:20 +0000 (11:03 +0100)]
Add continuous mode integration tests

Change-Id: I7090e6b127477eadab7bf34491fa2e442d9507ce

4 years agocritical log: Ensure critical log timestamps are set correctly 51/225251/2
Karol Lewandowski [Tue, 18 Feb 2020 09:43:57 +0000 (10:43 +0100)]
critical log: Ensure critical log timestamps are set correctly

Change-Id: I573d674a7db16adbb3a2f5667a9b3a3afd7b3b9f

4 years agoMake tests exit when impossible to run 73/225273/1
Mateusz Majewski [Tue, 18 Feb 2020 13:30:34 +0000 (14:30 +0100)]
Make tests exit when impossible to run

Change-Id: I6de0237e38707a018c27968d4d587d01639d6efb

4 years agoAdd an --sort-by option to dlogutil 77/224577/6
Mateusz Majewski [Tue, 11 Feb 2020 13:28:07 +0000 (14:28 +0100)]
Add an --sort-by option to dlogutil

Change-Id: I9ea6579af9361abd61315a0296f421bc72d7083f

4 years agoDocumentation: make boxes more boxy 03/221803/5
Michal Bloch [Tue, 7 Jan 2020 12:48:39 +0000 (13:48 +0100)]
Documentation: make boxes more boxy

Change-Id: I86765ca0912acee188bab31b5b3c0509066f827b
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoOptimise dumping while using the logger backend 06/225106/9
Mateusz Majewski [Tue, 18 Feb 2020 07:01:37 +0000 (08:01 +0100)]
Optimise dumping while using the logger backend

Change-Id: I78ae67e8800bf8aed962a859f7ccd2afdddbf39f

4 years agoRefactor FDI EOF signalisation 37/225237/3
Mateusz Majewski [Tue, 18 Feb 2020 07:22:10 +0000 (08:22 +0100)]
Refactor FDI EOF signalisation

Change-Id: I235a4176a7b0966f2be46c0088cd062ac0239e81

4 years agoMerge "Port old GCC compatibility from Tizen 5.5" into tizen accepted/tizen/unified/20200219.130224 submit/tizen/20200218.060818
Karol Lewandowski [Fri, 14 Feb 2020 14:23:26 +0000 (14:23 +0000)]
Merge "Port old GCC compatibility from Tizen 5.5" into tizen

4 years agoPort old GCC compatibility from Tizen 5.5 14/225014/1
Michal Bloch [Fri, 14 Feb 2020 13:53:11 +0000 (14:53 +0100)]
Port old GCC compatibility from Tizen 5.5

Change-Id: Id3743dffb81bdace9a29746cec8a3c0eb877a939
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoAdd permissions information 77/224677/3
Mateusz Majewski [Wed, 12 Feb 2020 07:54:52 +0000 (08:54 +0100)]
Add permissions information

Change-Id: I17defcb9dc262c63596ec4f0f61fb561182d81e4

4 years agoFix compilation for old GCC 85/224985/1 accepted/tizen/5.5/unified/20200218.150017 accepted/tizen/5.5/unified/20200219.130254 submit/tizen_5.5/20200214.105609 submit/tizen_5.5/20200218.060951
Michal Bloch [Fri, 14 Feb 2020 10:51:32 +0000 (11:51 +0100)]
Fix compilation for old GCC

Change-Id: I5936c466cd6e65bda7421ea8f2df045d3610d745
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoRelease 5.5.3: sync with Tizen 6.0.7 83/224983/1 submit/tizen_5.5/20200214.104335
Michal Bloch [Fri, 14 Feb 2020 10:28:16 +0000 (11:28 +0100)]
Release 5.5.3: sync with Tizen 6.0.7

Change-Id: I7fff9f2d60d2cf3deee00cd993380c457f013ade
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoRelease 6.0.7 76/224876/1 accepted/tizen/unified/20200214.120111 submit/tizen/20200213.173657
Michal Bloch [Thu, 13 Feb 2020 17:06:44 +0000 (18:06 +0100)]
Release 6.0.7

This release adds critical log rotation and a monitoring mode for dlogutil.

Change-Id: I84a428cda7f09d16e2c2e25ac4b09c83aace2593
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoFix coverity bugs 75/224875/2
Agnieszka Baumann [Thu, 13 Feb 2020 16:06:50 +0000 (17:06 +0100)]
Fix coverity bugs

Change-Id: I6eebf286936628452962e18a566092448369febb

4 years agoMerge "[lib]dlogutil: add a monitoring mode" into tizen
Karol Lewandowski [Thu, 13 Feb 2020 16:19:09 +0000 (16:19 +0000)]
Merge "[lib]dlogutil: add a monitoring mode" into tizen

4 years agoCritical logs: introduce rotation 37/223537/14
Michal Bloch [Mon, 3 Feb 2020 15:45:05 +0000 (16:45 +0100)]
Critical logs: introduce rotation

Change-Id: I5afff333ef105c8a13142457bef0cbea3c9c319c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoCritical log: lock the file when handling it 86/223886/10
Michal Bloch [Mon, 3 Feb 2020 13:25:06 +0000 (14:25 +0100)]
Critical log: lock the file when handling it

Change-Id: I09452ab1a84447e8d846444c723cb40bed8fed0a
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoUse OOP for the critical log writer 85/223885/8
Michal Bloch [Mon, 3 Feb 2020 13:10:51 +0000 (14:10 +0100)]
Use OOP for the critical log writer

Change-Id: I54303cf2fd9f73487cc1be9519c8ec297e9a2878
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoCritical logs: move path default to autoconf 87/223887/10
Michal Bloch [Tue, 4 Feb 2020 11:51:43 +0000 (12:51 +0100)]
Critical logs: move path default to autoconf

Change-Id: Ifc7b88efb4ef764a20e47b0e36e1c634de34e4c0
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoCompile critical log writer as C++ 84/223884/6
Michal Bloch [Mon, 3 Feb 2020 11:56:51 +0000 (12:56 +0100)]
Compile critical log writer as C++

Change-Id: I45bfd0d5fe616f1a338fc04f0c0ec1f15fb61517
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoRelease 6.0.6 39/224739/2 accepted/tizen/unified/20200213.121535 submit/tizen/20200212.164011 submit/tizen/20200213.025348
Michal Bloch [Wed, 12 Feb 2020 16:37:31 +0000 (17:37 +0100)]
Release 6.0.6

This release fixes a common crash and some other minor bugs.

Change-Id: Id0635cb8ddae217079cd7862cb1c99bfa4bcc9bb
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoOptimize out a redundant call 60/224560/2
Michal Bloch [Mon, 10 Feb 2020 17:29:07 +0000 (18:29 +0100)]
Optimize out a redundant call

Change-Id: Ibf9a656712b83435466df431a2c5ab1374666a81
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoFix a compiler warning 32/224732/1
Michal Bloch [Wed, 12 Feb 2020 12:14:21 +0000 (13:14 +0100)]
Fix a compiler warning

'strncpy' specified bound equals destination size [-Wstringop-truncation]

Change-Id: Ia3729336ca95a750c08eb89bcc2f657627725b26
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years ago[lib]dlogutil: add a monitoring mode 61/220361/9
Michal Bloch [Mon, 16 Dec 2019 13:21:15 +0000 (14:21 +0100)]
[lib]dlogutil: add a monitoring mode

Change-Id: Ifa07a832e32e1f7e0523823c7150e97a35a8f5e6
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoGet rid of useless LINE_MAX macro 27/224727/2
Mateusz Majewski [Wed, 12 Feb 2020 11:22:36 +0000 (12:22 +0100)]
Get rid of useless LINE_MAX macro

Change-Id: If0fd4b3db60586d17d512fff75006b010ecff13e

4 years agoApply consistent comment style 55/224455/3
Michal Bloch [Mon, 10 Feb 2020 16:24:52 +0000 (17:24 +0100)]
Apply consistent comment style

Change-Id: I63467afa521c2072a317f63ce2a79427e9bb6d53
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoAdd integration test sanity checks 96/224696/1
Mateusz Majewski [Wed, 12 Feb 2020 08:26:06 +0000 (09:26 +0100)]
Add integration test sanity checks

Change-Id: Ide49b5bea792a929b108495698c1cff00b0fbcbf

4 years agoFix "rwtime" unit tests for the timestamp change 58/224558/1 accepted/tizen/5.5/unified/20200212.125501 submit/tizen_5.5/20200211.112353
Michal Bloch [Tue, 11 Feb 2020 11:20:49 +0000 (12:20 +0100)]
Fix "rwtime" unit tests for the timestamp change

Change-Id: Ic8426033d3e34b78869b760d7040165a9af0e5da
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
(cherry picked from commit 602976f0145106f217da7f5e2b80b1c692f3d699)

4 years agoFix "rwtime" unit tests for the timestamp change 57/224557/1
Michal Bloch [Tue, 11 Feb 2020 11:20:49 +0000 (12:20 +0100)]
Fix "rwtime" unit tests for the timestamp change

Change-Id: Ic8426033d3e34b78869b760d7040165a9af0e5da
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoRestore kmsg time format as 'rwtime' 56/224556/1
Hyotaek Shim [Tue, 11 Feb 2020 07:04:05 +0000 (16:04 +0900)]
Restore kmsg time format as 'rwtime'

Change-Id: I8d561fdfdf39f79ff5dd49b478b72b1458f402f7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 3d2673186770d4b50ea8ff33cec7f14284db26f1)

4 years agoFix "rwtime" format to use SENT mono timestamp 55/224555/1
Michal Bloch [Tue, 11 Feb 2020 11:10:40 +0000 (12:10 +0100)]
Fix "rwtime" format to use SENT mono timestamp

Reverts a change introduced in 0652433919dc6018cd7769d33e78bbd20d16138e.

Change-Id: I6dbe9fac4531ffaeba282f5c3271c72884ed8452
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
(cherry picked from commit b32cc43573473f08907751371552ba93a4257fbe)

4 years agoRestore kmsg time format as 'rwtime' 13/224513/4
Hyotaek Shim [Tue, 11 Feb 2020 07:04:05 +0000 (16:04 +0900)]
Restore kmsg time format as 'rwtime'

Change-Id: I8d561fdfdf39f79ff5dd49b478b72b1458f402f7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoFix "rwtime" format to use SENT mono timestamp 54/224554/2
Michal Bloch [Tue, 11 Feb 2020 11:10:40 +0000 (12:10 +0100)]
Fix "rwtime" format to use SENT mono timestamp

Reverts a change introduced in 0652433919dc6018cd7769d33e78bbd20d16138e.

Change-Id: I6dbe9fac4531ffaeba282f5c3271c72884ed8452
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoFix various SVACE complaints 47/224547/2
Mateusz Majewski [Tue, 11 Feb 2020 10:09:19 +0000 (11:09 +0100)]
Fix various SVACE complaints

Change-Id: I910508371c5c728b00aec5c749fb11c8526a1bfb

4 years agoAdd various log_format tests 48/224548/2
Mateusz Majewski [Tue, 11 Feb 2020 09:35:40 +0000 (10:35 +0100)]
Add various log_format tests

Change-Id: I197addc62f7aec55722f3d44aa1f4a59fc10a730

4 years agoReduce warnings for -pedantic clients 28/224128/2
Michal Bloch [Thu, 6 Feb 2020 10:30:54 +0000 (11:30 +0100)]
Reduce warnings for -pedantic clients

ISO C does not permit named variadic macros

Change-Id: I88c7cbfe094b8f054622ac847240155dfe0cd99c
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
4 years agoMerge "Fix empty message formatting" into tizen
Karol Lewandowski [Mon, 10 Feb 2020 13:23:58 +0000 (13:23 +0000)]
Merge "Fix empty message formatting" into tizen

4 years agoMerge "Document confusing daemon structures" into tizen
Karol Lewandowski [Mon, 10 Feb 2020 13:23:50 +0000 (13:23 +0000)]
Merge "Document confusing daemon structures" into tizen

4 years agoRemove unused variables 10/224410/2
Michal Bloch [Mon, 10 Feb 2020 11:20:58 +0000 (12:20 +0100)]
Remove unused variables

Change-Id: Icec5002e1b1cb1845021bf7d79fa6b9e859938fc

4 years agoUse TEMP_FAILURE_RETRY instead of manual looping 98/224398/2
Mateusz Majewski [Mon, 10 Feb 2020 07:59:43 +0000 (08:59 +0100)]
Use TEMP_FAILURE_RETRY instead of manual looping

Change-Id: I84f1d39a1180c428f5ecbfc8ec959b9db0d60577