Commit graph

28204 commits

Author SHA1 Message Date
Sandeep Patil
7a3b317f96 Merge "ueventd: source ueventd configs from vendor and odm" am: d54d4c275e am: 48b32bf398
am: 7d045980d5

Change-Id: I948e1139e439597d65dfc409033d0ab5bab0015a
2017-02-09 21:39:07 +00:00
Sandeep Patil
7d045980d5 Merge "ueventd: source ueventd configs from vendor and odm" am: d54d4c275e
am: 48b32bf398

Change-Id: I360e2b98d2893324a5903dde353abd5fc67a0004
2017-02-09 21:35:28 +00:00
Sandeep Patil
48b32bf398 Merge "ueventd: source ueventd configs from vendor and odm"
am: d54d4c275e

Change-Id: I39565fa11c5a8ac9611c5970cc574a405657be77
2017-02-09 21:33:00 +00:00
Treehugger Robot
d54d4c275e Merge "ueventd: source ueventd configs from vendor and odm" 2017-02-09 21:25:44 +00:00
Yunlian Jiang
f34b03a92c Merge "fix warning: Null pointer argument in call to memory comparison function" am: ce07b6fa4f am: 90cc4fd6a4
am: 18fa5f7558

Change-Id: Ib990ecea8744c4291cb23b9bc0e35601d02ec869
2017-02-09 17:28:11 +00:00
Yunlian Jiang
18fa5f7558 Merge "fix warning: Null pointer argument in call to memory comparison function" am: ce07b6fa4f
am: 90cc4fd6a4

Change-Id: I13c4bd4dc53f29b5cd0f073909fb54c9107142c7
2017-02-09 17:26:06 +00:00
Yunlian Jiang
90cc4fd6a4 Merge "fix warning: Null pointer argument in call to memory comparison function"
am: ce07b6fa4f

Change-Id: Ida2150c0640ff30fc694c6a84c3777eaff906a7c
2017-02-09 17:23:36 +00:00
Treehugger Robot
ce07b6fa4f Merge "fix warning: Null pointer argument in call to memory comparison function" 2017-02-09 17:20:14 +00:00
Mark Salyzyn
3e1c54851e Merge changes Ia23b932a,I33e8a0ca,I0a5e7939,I13db1f45,I2a9dba81, ... am: 71c0993126 am: 66181b9bd8
am: 830c52f1e9

Change-Id: I8e35396202d820a3b530f2821fa9a40d8a92b9d6
2017-02-09 15:38:34 +00:00
Mark Salyzyn
96419eaf11 liblog: add local_logger am: 7100288532 am: 1947f3960b
am: a41bf213ce

Change-Id: I404c60f325dfceba04904919a4ae075031a65c32
2017-02-09 15:38:29 +00:00
Mark Salyzyn
8c7313b343 liblog: add __android_log_config_*_close() am: 96432fc665 am: 81fcfc88f6
am: 0202d2a6e6

Change-Id: I74c7574083fd1833e5ca968b85a18278475e2657
2017-02-09 15:38:22 +00:00
Mark Salyzyn
52142a17ae liblog: add android_log_logger_list management am: cf983bcbae am: a042b3a78e
am: 942c04a69a

Change-Id: I0fe3886d5e18e91b703607d3f97795527374ba4e
2017-02-09 15:38:17 +00:00
Mark Salyzyn
1e6e4b4663 liblog: add logprint to host build am: 62d0d2d683 am: 5221ac3dfd
am: 2703844ba2

Change-Id: Ibc5b60d83a03f281611485630264c414e306f008
2017-02-09 15:38:11 +00:00
Mark Salyzyn
e564c8050b liblog: benchmark: Use local LOGGER_NULL frontend am: 8f2492f582 am: a2c9787367
am: bae664c68d

Change-Id: I8f3a8f9c01428a00decde4639e2d4aa196fa852a
2017-02-09 15:38:06 +00:00
Mark Salyzyn
94acd67ba8 liblog: Add android_set_log_frontend am: 850d06e1c9 am: 9d68551f47
am: b6c6c7e3d3

Change-Id: I942aff87d5a45b5e18bb03c2ea2ebf7bfebd976d
2017-02-09 15:38:00 +00:00
Mark Salyzyn
830c52f1e9 Merge changes Ia23b932a,I33e8a0ca,I0a5e7939,I13db1f45,I2a9dba81, ... am: 71c0993126
am: 66181b9bd8

Change-Id: If7062e03ab84a0cfb8dc2a18234ad6bf37b4d699
2017-02-09 15:36:30 +00:00
Mark Salyzyn
a41bf213ce liblog: add local_logger am: 7100288532
am: 1947f3960b

Change-Id: Ie5e424f05362a9ffc1d3c072978b2bd61048b561
2017-02-09 15:36:25 +00:00
Mark Salyzyn
0202d2a6e6 liblog: add __android_log_config_*_close() am: 96432fc665
am: 81fcfc88f6

Change-Id: I5c54ce133e002e6d809d209b2d589e7591cbd163
2017-02-09 15:36:19 +00:00
Mark Salyzyn
942c04a69a liblog: add android_log_logger_list management am: cf983bcbae
am: a042b3a78e

Change-Id: I02899a09565d5ee02637caf2a679e6fcb20129a7
2017-02-09 15:36:14 +00:00
Mark Salyzyn
2703844ba2 liblog: add logprint to host build am: 62d0d2d683
am: 5221ac3dfd

Change-Id: I233535ad1dac545ed799e62dc162d5c463377aad
2017-02-09 15:36:09 +00:00
Mark Salyzyn
bae664c68d liblog: benchmark: Use local LOGGER_NULL frontend am: 8f2492f582
am: a2c9787367

Change-Id: Ifc0f9f8ffc9ac89f479960881e2ebe1567b47cd5
2017-02-09 15:36:04 +00:00
Mark Salyzyn
b6c6c7e3d3 liblog: Add android_set_log_frontend am: 850d06e1c9
am: 9d68551f47

Change-Id: Iec7b6a6d118a44144bc276c9c165874087d3c9ac
2017-02-09 15:35:58 +00:00
Mark Salyzyn
66181b9bd8 Merge changes Ia23b932a,I33e8a0ca,I0a5e7939,I13db1f45,I2a9dba81, ...
am: 71c0993126

Change-Id: Ief17305629740f695cecc038a7b25166b699b0f4
2017-02-09 15:33:57 +00:00
Mark Salyzyn
1947f3960b liblog: add local_logger
am: 7100288532

Change-Id: Ib4b2ce1f7633fc20ef792693bfb132e7da9b9440
2017-02-09 15:33:55 +00:00
Mark Salyzyn
81fcfc88f6 liblog: add __android_log_config_*_close()
am: 96432fc665

Change-Id: If7ce3adfeeb82cf621a90e750efc49ab7605c3bf
2017-02-09 15:33:50 +00:00
Mark Salyzyn
a042b3a78e liblog: add android_log_logger_list management
am: cf983bcbae

Change-Id: I2344a384ad8a51f156b970267714677ede7d3a1b
2017-02-09 15:33:45 +00:00
Mark Salyzyn
5221ac3dfd liblog: add logprint to host build
am: 62d0d2d683

Change-Id: I487132a928ad33acfab90df5da781635070d2c57
2017-02-09 15:33:41 +00:00
Mark Salyzyn
a2c9787367 liblog: benchmark: Use local LOGGER_NULL frontend
am: 8f2492f582

Change-Id: I738e97874f8a237750377ce1a03c06c6fedbb295
2017-02-09 15:33:36 +00:00
Mark Salyzyn
9d68551f47 liblog: Add android_set_log_frontend
am: 850d06e1c9

Change-Id: I4c47a1a6ed54d98d37ec5f9ab54b0d49156e1905
2017-02-09 15:33:30 +00:00
Mark Salyzyn
71c0993126 Merge changes Ia23b932a,I33e8a0ca,I0a5e7939,I13db1f45,I2a9dba81, ...
* changes:
  liblog: add local_logger
  liblog: add __android_log_config_*_close()
  liblog: add android_log_logger_list management
  liblog: add logprint to host build
  liblog: benchmark: Use local LOGGER_NULL frontend
  liblog: Add android_set_log_frontend
2017-02-09 15:30:47 +00:00
James Hawkins
0a2efefbe9 Merge "Revert "bootstat: Remove custom uptime parser in favor of elapsedRealtime."" am: 23f4e6b0a5 am: cefdacef3c
am: 39ce80f0e0

Change-Id: I8a9e2336c40769966400a443ae0ebb99e1986742
2017-02-09 02:38:37 +00:00
James Hawkins
39ce80f0e0 Merge "Revert "bootstat: Remove custom uptime parser in favor of elapsedRealtime."" am: 23f4e6b0a5
am: cefdacef3c

Change-Id: I1d98832897a49f8bf013476b65afe31768ff03d4
2017-02-09 02:34:07 +00:00
James Hawkins
cefdacef3c Merge "Revert "bootstat: Remove custom uptime parser in favor of elapsedRealtime.""
am: 23f4e6b0a5

Change-Id: Ibef66ccd1a1fe362692ee45cb86cd9c0212c1f85
2017-02-09 02:31:44 +00:00
Yunlian Jiang
33f671782a fix warning: Null pointer argument in call to memory comparison function
This fixes  warning: Null pointer argument in call to
memory comparison function [clang-analyzer-cplusplus.NewDeleteLeaks]

Bug: None
Test: The warning is gone.
Change-Id: I957365184966cc1435d7e37d64f2cc6a32846ebd
2017-02-08 16:47:20 -08:00
James Hawkins
23f4e6b0a5 Merge "Revert "bootstat: Remove custom uptime parser in favor of elapsedRealtime."" 2017-02-09 00:12:54 +00:00
Mark Salyzyn
7100288532 liblog: add local_logger
- Create the local-only logger module
- Add LOGGER_LOCAL flag to android_set_log_frontend to enable
- Permit log reader for host compilation

android_set_log_frontend(LOGGER_LOCAL) will result in logs going
into application local memory.  logcat can not retrieve the data,
the user must utilize the log reading interface directly to
acquire their own logs.  Some local logger tests dropped as they
represent testing other liblog facilities.  Other local logger
tests dropped because we make the conscious decision to not
support LOG_ID_SECURITY logging.

ToDo: Some local logger tests dropped because of missing
      functionality associated with blocking reader.

Test: gTest libcutils-tests, logd-unit-tests, liblog-unit-tests,
      logcat-unit-tests, liblog-benchmarks and CtsLiblogTestCases_list
Bug: 27405083
Change-Id: Ia23b932af9e05756eaa60bab9139876b14faf72d
2017-02-08 15:07:06 -08:00
James Hawkins
0e3167e203 Revert "bootstat: Remove custom uptime parser in favor of elapsedRealtime."
This reverts commit 26f40c04c3.

This change broke the Darwin SDK target.

Test: none
Change-Id: Ia54fe2c31da8d8fa2825e023b035fb8321dcd457
2017-02-08 14:16:51 -08:00
Sandeep Patil
bf298e6d0c ueventd: source ueventd configs from vendor and odm
While keeping the old /ueventd.$ro.hardware.rc configuration for devices
without early mount or vendor,odm split

b/34967636

Test: Boot angler and sailfish without regressions

Change-Id: I8d671911fd23fb1c0b5624ae209bad86137c88b7
Signed-off-by: Sandeep Patil <sspatil@google.com>
2017-02-08 13:51:02 -08:00
Mark Salyzyn
96432fc665 liblog: add __android_log_config_*_close()
Add __android_log_config_read_close() and
__android_log_config_write_close().  Fortify the list macros
to detect for list corruption, looking for entries pointing
to themselves, deleted entries in list.

Test: gTest liblog-unit-tests
Bug: 27405083
Change-Id: I33e8a0cae7e202f1989ddd7c2a96752b44c8e746
2017-02-08 13:37:44 -08:00
Mark Salyzyn
cf983bcbae liblog: add android_log_logger_list management
Add list of android_log_logger_list entities as a way of
accessing the list of transport contexts from within
one of the transports.  This will enable us to iterate back
to an internal transport context which may house a last index
or signalling semaphore to propagate a wakeup on a blocking
read.

Test: gTest libcutils-tests, logd-unit-tests, liblog-unit-tests,
      logcat-unit-tests
Bug: 27405083
Change-Id: I0a5e793946c020d97ffe10192369998e4ed92a83
2017-02-08 13:37:44 -08:00
Mark Salyzyn
62d0d2d683 liblog: add logprint to host build
- cleanup of some style issues
- resolve a few minor bugs
- add -lrt for host so that clock_gettime can be issued
- enable write-only logging, logprint and event list
  handling tests for host consumption.

NB: CtsLiblogTestCases_list is only outlet for host testing of
    the interfaces, but it is not part of any automated testing

Test: gTest liblog-unit-tests, liblog-benchmarks and
      CtsLiblogTestCases_list && build mmma system/core/liblog
Bug: 27405083
Change-Id: I13db1f45f67569407587a5a909248de33809b8cf
2017-02-08 13:37:44 -08:00
Mark Salyzyn
8f2492f582 liblog: benchmark: Use local LOGGER_NULL frontend
Additional benchmarks to check the effects and performance of the
frontend changes.

Test: manual liblog-benchmarks
Bug: 27405083
Change-Id: I2a9dba81b70e9d71cdb8de1b35e8dff099ad6038
2017-02-08 13:37:44 -08:00
Mark Salyzyn
850d06e1c9 liblog: Add android_set_log_frontend
android_set_log_frontend allows one to select LOGGER_DEFAULT,
LOGGER_LOGD or LOGGER_NULL, the latter allows a runtime mechanism to
turn logging on or off.  LOGGER_DEFAULT is LOGGER_LOGD.

Test: gTest liblog-unit-tests notably liblog.android_set_log_frontend
      and liblog-benchmarks before and after.
Bug: 27405083
Change-Id: I365dbee9f7d83112da0ef8d1cace748d247773c8
2017-02-08 13:37:41 -08:00
Josh Gao
bb1f57c00b Merge changes I1a28c21c,I02faec3b,I16a2050b am: ec5d6cb8fd am: c2d9b60e0a
am: b46e50b54d

Change-Id: I2a020003eb2968c5094fa801cb74536c74982900
2017-02-08 20:24:36 +00:00
Josh Gao
e848972915 crash_dump: collect open files before dropping caps. am: c24cc8a9e5 am: db22633766
am: f0d7738ceb

Change-Id: Idae51eec742124d5fab1f0a478f658ed3549058a
2017-02-08 20:24:30 +00:00
Josh Gao
6cf71fcb6e debuggerd_test: improve error when crasher fails to exec. am: 7a0ee64f9d am: 1255609232
am: 5c52c64d65

Change-Id: I2e453d05749a32d56dd0b31541ba35e5d3f5ceb5
2017-02-08 20:24:23 +00:00
Josh Gao
64e32d70e2 debuggerd_test: fix crasher path. am: a7d7eb6d2a am: 8c1ebc6037
am: 2d8c689280

Change-Id: If607cd144c7e83b1dff953dc4b2bf0da3f091d76
2017-02-08 20:24:11 +00:00
James Hawkins
ea3bd7ba57 Merge "bootstat: Remove custom uptime parser in favor of elapsedRealtime." am: 914955ae9e am: cdfe67f575
am: 5078d30bc6

Change-Id: Ifbf775ad4064572e6dc3f2fabf4b2f8a7c2b2c7d
2017-02-08 20:23:59 +00:00
Ting-Yuan Huang
c89cc9522b Merge "liblog: fix an undefined-behavor in __write_to_log_daemon()" am: a3b6d30ba7 am: 68a6676c77
am: 327cd83060

Change-Id: I81b8a773a64dce51a8e6e52e5548631f69a9c78d
2017-02-08 20:23:46 +00:00
Ting-Yuan Huang
b3acd34278 Merge "liblog: fix a memory leak in __android_log_pmsg_file_write()" am: a8629e8e15 am: 161953f49c
am: 9948979130

Change-Id: Ibdd59ad7101632f4197040424792ad483bfcdeee
2017-02-08 20:23:29 +00:00