- 18 Mar, 2015 1 commit
-
-
Mark Salyzyn authored
- switch to simpler and faster internal sequence number, drops a syscall overhead on 32-bit platforms. - add ability to break-out of flushTo loop with filter return -1 allowing in reduction in reader overhead. Change-Id: Ic5cb2b9afa4d9470153971fc9197b07279e2b79d
-
- 14 Jan, 2015 1 commit
-
-
TraianX Schiau authored
In a scenario in which an on-line (blocking) client is running and a clean is attempted (logcat -c), the following can be observed: 1) the on-line logger seems to freeze 2) any other clear attempt will have no effect What is actually happening: In this case prune function will "instruct" the oldest timeEntry to skip a huge number (very close to ULONG_MAX) of messages, this being the cause of 1. Since the consumer thread will skip all the log entries, mStart updating will also be skipped. So a new cleaning attempt will have the same oldest entry, nothing will be done. Fix description: a. keep a separated skipAhead count for individual log buffers (log_id_t) LogTimeEntry::LogTimeEntry LogTimeEntry::FilterSecondPass LogTimeEntry::skipAhead LogTimeEntry::riggerSkip_Locked b. update LogTimeEntry::mStart even if the current message is skipped LogTimeEntry::FilterSecondPass c. while pruning, only take into account the LogTimeEntrys that are monitoring the log_id in question, and provide a public method of checking this. LogTimeEntry::isWatching LogTimeEntry::FilterFirstPass LogTimeEntry::FilterSecondPass d. Reset the skip cont befor the client thtread starts to sleep, at this point we should be up to date. LogTimeEntry::cleanSkip_Locked LogTimeEntry::threadStart Change-Id: I1b369dc5b02476e633e52578266a644e37e188a5 Signed-off-by:
TraianX Schiau <traianx.schiau@intel.com>
-
- 12 Aug, 2014 1 commit
-
-
Mark Salyzyn authored
(cherry picked from commit c113c581) Bug: 16822776 Change-Id: I5bea468a41089b51108880044f32e2b2df1278e7
-
- 08 Aug, 2014 1 commit
-
-
Mark Salyzyn authored
Bug: 16822776 Change-Id: I5bea468a41089b51108880044f32e2b2df1278e7
-
- 14 Mar, 2014 1 commit
-
-
Mark Salyzyn authored
Change-Id: I10e8d92c933e31ee11e78d2d1114261a30c4be0e
-
- 26 Feb, 2014 2 commits
-
-
Mark Salyzyn authored
(cherry picked from commit c46f77bd) Change-Id: I80685cdc7116e10c5a5a77abe856fd96804f9117
-
Mark Salyzyn authored
* Create a new userspace log daemon for handling logging messages. Original-Change-Id: I75267df16359684490121e6c31cca48614d79856 Signed-off-by:
Nick Kralevich <nnk@google.com> * Merge conflicts * rename new syslog daemon to logd to prevent confusion with bionic syslog * replace racy getGroups call with KISS call to client->getGid() * Timestamps are filed at logging source * insert entries into list in timestamp order * Added LogTimeEntry tail filtration handling * Added region locking around LogWriter list * separate threads for each writer * /dev/socket/logd* permissions Signed-off-by:
Mark Salyzyn <salyzyn@google.com> (cherry picked from commit 3e76e0a4) Author: Nick Kralevich <nnk@google.com> Change-Id: Ice88b1412d8f9daa7f9119b2b5aaf684a5e28098
-
- 25 Feb, 2014 1 commit
-
-
Mark Salyzyn authored
Change-Id: I80685cdc7116e10c5a5a77abe856fd96804f9117
-
- 14 Feb, 2014 1 commit
-
-
Nick Kralevich authored
* Create a new userspace log daemon for handling logging messages. Original-Change-Id: I75267df16359684490121e6c31cca48614d79856 Signed-off-by:
Nick Kralevich <nnk@google.com> * Merge conflicts * rename new syslog daemon to logd to prevent confusion with bionic syslog * replace racy getGroups call with KISS call to client->getGid() * Timestamps are filed at logging source * insert entries into list in timestamp order * Added LogTimeEntry tail filtration handling * Added region locking around LogWriter list * separate threads for each writer * /dev/socket/logd* permissions Signed-off-by:
Mark Salyzyn <salyzyn@google.com> Change-Id: Ice88b1412d8f9daa7f9119b2b5aaf684a5e28098
-