History log of /system/core/logd/LogStatistics.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
260f3be3123e13b95b1f4e06f9404cac50c81e35 21-Sep-2014 Mark Salyzyn <salyzyn@google.com> logd: kill(0,0) issue

- Recognize pid=0 as special case (kernel or pre-init sourced)
and refrain from treating it in the general case.

(cherry pick from commit df5aa61f05ccbef441cf8b024d4bbc1b717451f9)

Bug: 17526159
Change-Id: I74796043ac34753c6dd10018719ebc0bcd94e012
/system/core/logd/LogStatistics.cpp
1e1d71e26c83cb1fb5ffbf2f809a9f000dfbdd50 22-Sep-2014 Mark Salyzyn <salyzyn@google.com> logd: LogStatistics leak

- uid = -1 in subtract operation to match add

(cherry pick from commit f48ea7c8dcfbf2220ececccb1f4fb2f42df9048c)

Bug: 15986335
Change-Id: I7d0b85b5334c5264fd04309cb78e0c9aec0ad261
/system/core/logd/LogStatistics.cpp
a0e53540daa67142abd93756fad38a69eab8fbce 21-Sep-2014 Mark Salyzyn <salyzyn@google.com> logd: Add control statistics enable/disable.

- ro.build.type=user turn off statistics
- ro.config.low_ram=true turn off statistics
- logd.statistics override

(cherry pick from commit f5fc50958978fc039bc3207cbfcb140a277442eb)

Bug: 17526159
Bug: 17526187
Change-Id: I74796043ac34753c6dd10018719ebc0bcd94e00f
/system/core/logd/LogStatistics.cpp
987f1e0de311cf863bde30bb4de19f9cd7f08642 21-Sep-2014 Mark Salyzyn <salyzyn@google.com> logd: cleanup

- simplify access and control exposure to class list
- indent
- compile warning
- Follow standard naming convention for variables and methods
- merge common fragments
- Side Effects: none

(cherry pick from commit e72c6e43668c8c6e1af77e2e5038557581cbf148)

Bug: 17526159
Change-Id: I74796043ac34753c6dd10018719ebc0bcd94e010
/system/core/logd/LogStatistics.cpp
3c8e92cebe9f5246f502d9e82d16f9621ac0bed7 03-Sep-2014 Arseniy Antonov <arseniy.antonov@intel.com> Fix for parenthesis error

Added parentheses as it was suggested by compiler.
error: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Werror=parentheses]

(Cherry picked from commit c3ce224c622e064207d1aff03f2440ca19617b4a)

Signed-off-by: Arseniy Antonov <arseniy.antonov@intel.com>
Change-Id: Ic3746d9804488411d10d460ddfda11f1fad8efef
/system/core/logd/LogStatistics.cpp
3cb54987857690fa5b73f0192cc052eb55b562f7 30-Apr-2014 Mark Salyzyn <salyzyn@google.com> logd: 64-bit compile issue

- ULONG_MAX is used against an uint32
- Add tv_sec_max and tv_nsec_max constants to log_time

Change-Id: Ic86cd7b0680868ad0536198b71a34cb19134fc22
/system/core/logd/LogStatistics.cpp
fdabe7287609af29793bb6ca15712582ba082521 21-Apr-2014 Mark Salyzyn <salyzyn@google.com> logd: oneline statistics does not report PID gone

- oneline, add check for gone
- Add pidGone() method, which caches the gone status

Change-Id: I8f03daeafb58583c2b08ec6b540486c05da0872d
/system/core/logd/LogStatistics.cpp
c8a576c637ae00577273b778498019dd609fcd15 05-Apr-2014 Mark Salyzyn <salyzyn@google.com> logd: Statistics improvements

- Drop in-place sorting.
- Add fast-track for uid sizes and elements.
- Add sort() for per-uid and per-pid statistics.

Change-Id: Ib8655d4cc0b3bd4e87534522987bcc7fc7a5251a
/system/core/logd/LogStatistics.cpp
8e72c5384b288bc11af60e12686a44e502633e3d 26-Mar-2014 Mark Salyzyn <salyzyn@google.com> logd: Statistics: Add up to 10 chattiest clients

- embellish pid name
- >1% of the logs
- fix PID gone detection (EPERM)
- some ? : cleanup

Change-Id: Iba3b306e1fee43e53931165819a398693910514b
/system/core/logd/LogStatistics.cpp
9101878dd06a74cedeadca3fec3b3db68cba8bf0 08-Apr-2014 Greg Hackmann <ghackmann@google.com> Merge "logd: fix LogStatistics::format freeing wrong pointer"
239605ef64d34ced82c97870e3f3f5c4145be58c 07-Apr-2014 Greg Hackmann <ghackmann@google.com> logd: fix LogStatistics::format freeing wrong pointer

Fixes a leak and use-after-free if a client passes in an
already-allocated target buffer (currently none do)

Change-Id: Ie20c30bd5ba31e1b6db73885bd9d2ebd7e40dc27
Signed-off-by: Greg Hackmann <ghackmann@google.com>
/system/core/logd/LogStatistics.cpp
4ba0387af5acc52e43e4004ccb4c46b8bc700349 07-Apr-2014 Mark Salyzyn <salyzyn@google.com> logd: Add pidToUid helper

Change-Id: I23ebae1957c027bff6cbc2573a227bf0c44c08a2
/system/core/logd/LogStatistics.cpp
9a03863e88da99ba010342c874252089dd771f7f 07-Apr-2014 Mark Salyzyn <salyzyn@google.com> logd: Add pidToName helper

Change-Id: Idd8e804ab65feb8dc432150ae701464de1ad5302
/system/core/logd/LogStatistics.cpp
e457b74ce6ee6d799812dc2ec5e4b8b18bcd3e91 20-Feb-2014 Mark Salyzyn <salyzyn@google.com> logd: Add minimum time bucket statistics

* Only enabled for dev builds because halves performance.
- Used to establish if /proc/sys/net/unix/max_dgram_qlen
is appropriate for the platform
(see logd/LogStatistics.cpp comments)
- enabled if logd.dgram_qlen.statistics is not zero/empty

Change-Id: Ib8ecfeb75b6f0f954c099a6b1032b8afb5efcbd4
/system/core/logd/LogStatistics.cpp
dfa7a07f5be656cfafdb4e75916bc9dcd9e592e7 11-Feb-2014 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: Add LogWhiteBlackList

- liblog android_logger_get_log_size and android_logger_get_readable_size
adjusted to return long instead of int because of -G flag extending range

NB: ifdef'd only for userdebug and eng builds

- liblog Add android_logger_[sg]et_prune_list and android_logger_set_log_size
- logcat Add -P, -p and -G flags
- logd Add LogWhiteBlackList and configurable log size

(cherry picked from commit 18a5432158ad43b8faefe4950b30e760200ce0b4)

Change-Id: I1572338c1b34bd968ad7867857ef708156ec3b6a
/system/core/logd/LogStatistics.cpp
34facab86b0fe7ec613de92b46b637f864fb0682 06-Feb-2014 Mark Salyzyn <salyzyn@google.com> logd: liblog: logcat: Add Statistics

- logd add statistical collection and formatting
- liblog add android_logger_get_statistics call
- logcat add -S flag
- logcat add -b all

(cherry picked from commit 51a29c8dc445e4fb89860561933e54a231e6ffb4)

Change-Id: I521753b1969ecd4590c956aeeb1557d101059d67
/system/core/logd/LogStatistics.cpp