summaryrefslogtreecommitdiffstats
path: root/libstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Remove liblog/uio.c and <log/uio.h>"Tom Cherry2019-01-171-0/+1
|\
| * Remove liblog/uio.c and <log/uio.h>Tom Cherry2019-01-161-0/+1
| | | | | | | | | | | | | | | | | | readv() isn't used by anyone, writev() has one easily replaced user. uio.h can be left as a private header for windows compatibility with struct iovec. Test: build Change-Id: I33d4c6bdee6fd818271f78ae06abdd2aa09430f2
* | Remove __android_log_event_list and the reader aspect of android_log_event_listTom Cherry2019-01-161-7/+0
|/ | | | | | | One user of each, dubious API, remove it while we work on a new one. Test: build Change-Id: If422246226addaf873dc2af32553fad3a5182089
* Log the last error code of StatsLog failuresYao Chen2018-12-074-6/+9
| | | | | | | | | Test: builds and manual test Bug: 80538532 Change-Id: I7f9d0e22b7ad4295dd787f6cb409bfb3342a7b27 Merged-In: I7f9d0e22b7ad4295dd787f6cb409bfb3342a7b27 (cherry picked from commit cb3527794cadfb828589e338602a08f464e40f83)
* Add a function to pass byte array to the log context.Yao Chen2018-12-062-1/+53
| | | | | | | The existing APIs will truncate the byte array in case of '\0' in between. Test: test_drive with atom 103 Change-Id: I104d35b330c6b52e2fdce1f5d4305dca08228f1b
* Make native metrics logger write to statsd socketHoward Ro2018-10-243-3/+29
| | | | | | | | | Previous submission of this change, aosp/790068, caused a failure in sdk_mac for CLOCK_REALTIME and <endian.h> not being available. Bug: 110537511 Test: compiles without failures and verified the correct metric Change-Id: Iba1dc920ad82e88a4bcdd2feaee9a06202a440c2
* Revert "Make native metrics logger write to statsd socket"Howard Ro2018-10-192-5/+1
| | | | | | | | This reverts commit 34bc567a939d9ddbd532b9fd5caeac054b79f124. Reason for revert: build failure Change-Id: I67e0270051a82db7f524ed219316f02f2766d6e1
* Make native metrics logger write to statsd socketHoward Ro2018-10-182-1/+5
| | | | | | Bug: 110537511 Test: compiles without failures and verified the correct metric Change-Id: Ie8019a20a2112ed6cbbc0999d68592efb8f0f538
* Reset statsd writer to init state after closeYao Chen2018-10-151-0/+1
| | | | | | Bug: 117796113 Test: locally tested and verified stats logs can write to statsd again. Change-Id: I33b006199d23f851ff1a6e49445fb16d74223062
* Add an API to release stats logger resources.Yao Chen2018-10-032-0/+9
| | | | | | | Test: tested with ag/5112579 Change-Id: I271b7574beab1baa9886d31bc1cf25c40c2fae23 Merged-In: I271b7574beab1baa9886d31bc1cf25c40c2fae23 (cherry picked from commit 5b63e2704a3d0dd23ff3ef9900639d5bb51aca61)
* Add a function to allow statslog failure.Yao Chen2018-10-034-9/+20
| | | | | | | | | | | | + Record all types of failures which lead to log loss + Only record eventual failure after the retries to get a accurate log loss count. Bug: 80538532 Test: manually tested Change-Id: I23a55e62e140bf22ae5aa9e6c40539d51149cd66 Merged-In: I23a55e62e140bf22ae5aa9e6c40539d51149cd66 (cherry picked from commit ad3a40bf76b670878760738765154448772243fb)
* Remove a redundant check in statsd socket code.Yao Chen2018-05-221-10/+3
| | | | | | | | | The original liblog code has this additional check because there may be multiple writers registered, there is a for-loop and the retVal is set to be the FIRST error. Statsd doesn't need it because it only has one writer. Test: locally tested. Change-Id: I03f0015d0c29eba19eb2b5ea145380cb98fb2509
* Add OWNERS file for libstats/Yao Chen2018-05-211-0/+4
| | | | | Test: N/A Change-Id: Ic16b0e1330ff46bfea9524eacf109c4ded430c67
* Move libstatssocket from frameworks/base to system/core/Yao Chen2018-05-215-0/+771
So that lmkd can build on PDK. Bug: 79349329 Test: builds locally Merged-In: I981e6ef9f9769b873640e5f169a9495ccea2f25c Change-Id: I981e6ef9f9769b873640e5f169a9495ccea2f25c (cherry picked from commit b13a102c0afec2c0a1fbdafb9a00e3d55450b28b)