Commit Graph

38367 Commits

Author SHA1 Message Date
Mark Salyzyn dc6465efae Merge "liblog: clock_gettime, clock_getres and time benchmarks" am: 5ee641c6cd
am: 86e6da192f

Change-Id: I782b067dc05c588ba319ea40b28eddadee5d46d7
2018-01-16 18:50:14 +00:00
Mark Salyzyn c5b3c1eecb Merge "liblog: benchmarks use google-benchmark library" am: 962566095f
am: e92a5953e8

Change-Id: Ia3ac3090f012cdaba997e7b573bab6b928389032
2018-01-16 18:49:26 +00:00
Siarhei Vishniakou 11273bc5b1 Merge "Use ro.logd.kernel for kernel logcat" am: d443dd327a
am: 66d9c4aab8

Change-Id: Ieb7beb5d7a263c0b58ca77967ac9ce01720de841
2018-01-16 18:48:41 +00:00
Mark Salyzyn 86e6da192f Merge "liblog: clock_gettime, clock_getres and time benchmarks"
am: 5ee641c6cd

Change-Id: I32b37ad64a6c04160dbcdc68c53386cd53c4c661
2018-01-16 18:39:07 +00:00
Mark Salyzyn e92a5953e8 Merge "liblog: benchmarks use google-benchmark library"
am: 962566095f

Change-Id: Ie092664f2a04ce0220f84e466924f8253a3151b2
2018-01-16 18:38:29 +00:00
Siarhei Vishniakou 66d9c4aab8 Merge "Use ro.logd.kernel for kernel logcat"
am: d443dd327a

Change-Id: I336a9cf9acf5cd38d3e432cd2a2845c6fa56ced8
2018-01-16 18:38:05 +00:00
Treehugger Robot 5ee641c6cd Merge "liblog: clock_gettime, clock_getres and time benchmarks" 2018-01-16 18:33:48 +00:00
Treehugger Robot 962566095f Merge "liblog: benchmarks use google-benchmark library" 2018-01-16 18:27:24 +00:00
Treehugger Robot d443dd327a Merge "Use ro.logd.kernel for kernel logcat" 2018-01-16 18:24:08 +00:00
Mark Salyzyn dc3c14720f liblog: clock_gettime, clock_getres and time benchmarks
Add local BM_time_clock_gettime_*, BM_time_clock_getres_* and
BM_time_time benchmarks.  Relates to the bionic benchmarks of
the same names, except adds CLOCK_MONOTONIC_RAW.  Added here for
developer convenience whenever updates to the liblog or logd
code base need integration testing.

ToDo: add liblog gTests that analyse the benchmark data to confirm
that the specified integrated device has vdso access to all the
pertinent clock sources.  Add liblog local benchmarks and tests to
measure the device clock drift of each possible liblog clock
source to help evaluate device configuration.

Test: liblog_benchmarks --benchmark_filter=BM_time*
Bug: 63737556
Bug: 69423514
Change-Id: Ibafe0880d976ef2b3885765f71e0ba6c99d56f2a
2018-01-16 08:11:59 -08:00
Mark Salyzyn 1520bd43b0 liblog: benchmarks use google-benchmark library
Remove our circa 2014 snapshot of the google benchmarking library, and
use the now very stable google-benchmark suite. Some porting effort,
and deal with some benchmarking saddle points that take too long to
sort out. Focus on minimal API changes, _odd_ new behaviors, and style.

Test: liblog_benchmarks, ensure results in about the same range
Bug: 69423514
Change-Id: I2add1df9cb664333bcf983b57121ae151b26935b
2018-01-16 08:11:26 -08:00
Jeff Sharkey 2393133e5d Merge "Remove FUSE logic; it's only a sdcardfs wrapper." am: 3b44d2846e
am: a4a54c9440

Change-Id: Id52f946b81b4d09b98326aaa91daa97a3e409143
2018-01-16 09:09:32 +00:00
Jeff Sharkey a4a54c9440 Merge "Remove FUSE logic; it's only a sdcardfs wrapper."
am: 3b44d2846e

Change-Id: Iac3cdafd563dceadc102cd6bfd8c8f22673ca664
2018-01-16 09:04:29 +00:00
Jeff Sharkey 3b44d2846e Merge "Remove FUSE logic; it's only a sdcardfs wrapper." 2018-01-16 08:55:16 +00:00
Krzysztof Wesolowski 67ff981818 Merge "Improve ALOGV compatiblity with clang-tidy" am: 854eb6cf78
am: 1e45dfdb47

Change-Id: I60ed32e902eca0ead86c69239d85b59949820c32
2018-01-13 22:27:47 +00:00
Krzysztof Wesolowski 1e45dfdb47 Merge "Improve ALOGV compatiblity with clang-tidy"
am: 854eb6cf78

Change-Id: Ic9462b04d94eebe767afcc1ed1879ca000563822
2018-01-13 22:17:10 +00:00
Treehugger Robot 854eb6cf78 Merge "Improve ALOGV compatiblity with clang-tidy" 2018-01-13 22:09:40 +00:00
Christopher Ferris 239b23f6f2 Merge "Add ability to read jit gdb data." am: 85d0c3adaf
am: 307d886587

Change-Id: I9dccca5a720843aeb418afce9aa383b69c8d994e
2018-01-13 00:00:35 +00:00
Christopher Ferris 307d886587 Merge "Add ability to read jit gdb data."
am: 85d0c3adaf

Change-Id: Ie993c0d645c8f65f976c980b9ffb30f7a8920e59
2018-01-12 23:55:29 +00:00
Christopher Ferris 85d0c3adaf Merge "Add ability to read jit gdb data." 2018-01-12 23:44:06 +00:00
Jeff Sharkey 8d8d8baa5e Merge changes from topic "defnormalz" am: 178ede377a
am: c210a8b6bc

Change-Id: I73f6b0775b57cb5ee217d851c586b445eafa54db
2018-01-12 23:27:45 +00:00
Jeff Sharkey c210a8b6bc Merge changes from topic "defnormalz"
am: 178ede377a

Change-Id: I3cf369ea789b45a76d30d65fa9e456b47ebc1d60
2018-01-12 23:16:58 +00:00
Jeff Sharkey 68e1093028 Remove FUSE logic; it's only a sdcardfs wrapper.
Leaving the FUSE logic intact was confusing to OEMs, who expected
that it would still work and pass CTS.  Remove all the FUSE logic
and leave a comment block about why the wrapper exists.

Also use new Android.bp makefile format.

Test: builds, boots
Bug: 63524725
Change-Id: I8b2a4fa0227109d65689c43302dc6fa40394ff58
2018-01-12 15:41:55 -07:00
Jeff Sharkey 178ede377a Merge changes from topic "defnormalz"
* changes:
  Add "default_normal" support for sdcardfs.
  sdcard: Use AID_ROOT constant
2018-01-12 22:32:35 +00:00
Tom Cherry eac9c69239 Merge "getprop: add -T option to return a property's type" am: 5939c71606
am: c9c3a95944

Change-Id: I057e48074ec5dbdc6f05df487771375d392ee77d
2018-01-12 21:50:58 +00:00
Tom Cherry c9c3a95944 Merge "getprop: add -T option to return a property's type"
am: 5939c71606

Change-Id: Ief12a7e76bce51cf77ccb1b9becd1e3202325e4a
2018-01-12 21:39:25 +00:00
Tom Cherry 5939c71606 Merge "getprop: add -T option to return a property's type" 2018-01-12 21:30:39 +00:00
Tom Cherry adcfcca845 Merge "init: always expand args in subcontext" am: c64c006991
am: a89077ad35

Change-Id: I7035d572fe1055bc3a98ee8c8ba1da057918525e
2018-01-12 21:20:58 +00:00
Tom Cherry a89077ad35 Merge "init: always expand args in subcontext"
am: c64c006991

Change-Id: Ib7fcf2c8ecebf13ffaff6458d05147bbf45541ce
2018-01-12 21:16:24 +00:00
Tom Cherry c64c006991 Merge "init: always expand args in subcontext" 2018-01-12 21:06:59 +00:00
Jeff Sharkey e2e3610e6e Add "default_normal" support for sdcardfs.
Also cleans up fallback-retry logic for older kernels by
progressively removing each newer flag with each retry.

Test: internal CTS
Bug: 64672411
Change-Id: I3de3b64b68838fb2ef4505fe73c4e9865b2f9026
2018-01-12 13:11:31 -07:00
Ryo Hashimoto d2d8eabf67 sdcard: Use AID_ROOT constant
To be consistent with the other parts of the code,
and to make it easy to use a differnt value when running in a container.

Bug: 69142822
Test: build
Change-Id: I9b2c7744e3867bb15511dd4ddd7bce281d758a7b
2018-01-12 13:09:54 -07:00
Tom Cherry fd162d3242 Merge "Rename property 'schema' to 'type'" am: ceecbfc40e
am: c78060f51b

Change-Id: I14cfceb27b3c95af90b0201f864f7c8d8dffa066
2018-01-12 19:57:54 +00:00
Tom Cherry c78060f51b Merge "Rename property 'schema' to 'type'"
am: ceecbfc40e

Change-Id: I64f6fa7ae31244bd28d51abded337d466e22c46a
2018-01-12 19:32:53 +00:00
Tom Cherry 8573b55f0f getprop: add -T option to return a property's type
Bug: 70858511
Test: Return property types correctly
Change-Id: I506582d88c12a7f52d699635a41b24de4bc80289
2018-01-12 11:26:46 -08:00
Christopher Ferris 150db124f3 Add ability to read jit gdb data.
Changes:
- New JitDebug class to handle all of the jit gdb interface.
- Add unit tests for all, along with new offline test using debug data.
- Add new Memory type called MemoryOfflineParts that has multiple
  MemoryOffline objects to support the offline test.
- Update the tools to use the JitDebug object.
- Modify libbacktrace to use the JitDebug, but only looking in libart.so
  and libartd.so.
- Change the Format32Bits to Is32Bit since it's more accurate and I use
  it in a different context where original name didn't make sense.
- Add a new function to find global variables in an elf file
  (GetGlobalVariable).
- Add a new function to determine if a pc is valid for this elf (IsValidPc).

Bug: 68396769

Test: Ran new unit tests. Added new offline test that uses jit debug data.
Test: Ran art test that generates jit data and verified a crash unwinds
Test: through the jit data.
Change-Id: I6e7ee2f5bab2242028a06feece156dff21c0a974
2018-01-12 11:18:42 -08:00
Tom Cherry ceecbfc40e Merge "Rename property 'schema' to 'type'" 2018-01-12 19:13:44 +00:00
Tom Cherry c49719fc5d init: always expand args in subcontext
Currently init expands properties in arguments only when those
commands are run in a subcontext.  This creates a hole where
properties that should not be accessible from a given subcontext of
init can be accessed when running a command in the main init
executable (for example `start`).

This change creates a callback in subcontext init that simply expands
and returns arguments back to the main init process, to ensure that
only those properties that a subcontext can access get expanded.

Bug: 62875318
Test: boot bullhead, new unit tests
Change-Id: I2850009e70da877c08e4cc83350c727b0ea98796
2018-01-12 10:35:26 -08:00
Tom Cherry 4094e5ee2e Rename property 'schema' to 'type'
Bug: 70858511
Test: boot
Change-Id: I8e17596ddd8393f245c7e02ff72765c84d3bb208
2018-01-11 16:26:50 -08:00
Krzysztof Wesolowski b0e17c9e91 Improve ALOGV compatiblity with clang-tidy
Currently used clang tidy does not filter the warnings caused
by macros, even if macros come from filtered headers.

This change allows projects using ALOGV to use
readability-implicit-bool-conversion without spreading //NOLINT everywhere.

Bug: 71533509
Change-Id: Id1b193d1e56d13f00171e04f600292877c5f6cb3
2018-01-11 11:11:20 -08:00
Vasily Tarasov cef2b78e6a Merge "Adding per-method clang thread safety annotations" am: 55feb241b1
am: c0bc2616c4

Change-Id: Ic79043ca9243c7a3439733b00063906dcc7f2e4a
2018-01-11 17:59:45 +00:00
Vasily Tarasov c0bc2616c4 Merge "Adding per-method clang thread safety annotations"
am: 55feb241b1

Change-Id: I1801a3a6ca1b297189a5a7b4f3f2315684ba3580
2018-01-11 17:55:17 +00:00
Vasily Tarasov 55feb241b1 Merge "Adding per-method clang thread safety annotations" 2018-01-11 17:48:33 +00:00
Tom Cherry f2e90d9eaf Merge "Reland: Add getprop to toolbox" am: eac86b0ea9
am: 19c3572414

Change-Id: I40033bcc2cb689f5a704d367459fa7adf8409738
2018-01-11 16:40:07 +00:00
Tom Cherry 19c3572414 Merge "Reland: Add getprop to toolbox"
am: eac86b0ea9

Change-Id: Ia0020e6f82e3ca801b191f5b54939dad05b5ebe1
2018-01-11 16:37:39 +00:00
Tom Cherry eac86b0ea9 Merge "Reland: Add getprop to toolbox" 2018-01-11 16:31:50 +00:00
Justin Yun 30ac0d7a27 Merge "Do not append VNDK version if VNDK is not used" am: 4d281880e0
am: 9c378b0e37

Change-Id: I106323cbf711954bf65c9a8ca1dce637571eee14
2018-01-10 23:48:00 +00:00
Justin Yun 9c378b0e37 Merge "Do not append VNDK version if VNDK is not used"
am: 4d281880e0

Change-Id: Icdabede4ffa6a963b79460358266ae0c230d6fc1
2018-01-10 23:44:30 +00:00
Treehugger Robot 4d281880e0 Merge "Do not append VNDK version if VNDK is not used" 2018-01-10 23:30:47 +00:00
Justin Yun dd16301bab Do not append VNDK version if VNDK is not used
If BOARD_VNDK_VERSION is not defined, ro.vndk.version will not be
set. In this case, the device, is not able to use versioned
configuration files.
Check BOARD_VNDK_VERSION to append the VNDK version to the namespace
configuration files.

Bug: 71730104
Test: Check boot on both 2016 and 2017 Pixel devices.
Change-Id: I1df27c75de42a526768a156387f22a934cda6d72
2018-01-11 08:29:54 +09:00