Commit graph

38395 commits

Author SHA1 Message Date
Jaekyun Seok
e9ea9f1e22 Merge "Apply the whitelist of actionable system properties" am: 2c4f487dfb
am: b759ceeb62

Change-Id: Idc608c75a2f95309b73e4cd2a404cbf8e9d7ad1d
2018-01-18 02:26:25 +00:00
Tom Cherry
cc0ce9b582 Merge "Introduce property types" am: a0ffad60ef
am: 3657c80c79

Change-Id: Ifb5916d3ed40d44acf89e7a55b39a3d94f0908f9
2018-01-18 02:25:56 +00:00
Jaekyun Seok
b759ceeb62 Merge "Apply the whitelist of actionable system properties"
am: 2c4f487dfb

Change-Id: I4668917ec7e27640a95a577e816afd72f37db91f
2018-01-18 02:17:02 +00:00
Tom Cherry
3657c80c79 Merge "Introduce property types"
am: a0ffad60ef

Change-Id: Ideb5035d125c541eb763ab5ffde97f899778b25e
2018-01-18 02:16:35 +00:00
Treehugger Robot
2c4f487dfb Merge "Apply the whitelist of actionable system properties" 2018-01-17 21:57:08 +00:00
Tom Cherry
a0ffad60ef Merge "Introduce property types" 2018-01-17 21:01:33 +00:00
Jaekyun Seok
eeb2188554 Apply the whitelist of actionable system properties
This whitelist will be applied only when
ro.actionable_compatible_property.enabled is true.

Bug: 38146102
Test: tested on walleye with ro.actionable_compatible_property.enabled=true
Change-Id: Ifd7211396b53e50a06d79e7c67224e2b38ef7c9d
2018-01-18 04:38:01 +09:00
Christopher Ferris
52014040fa Merge "Find first non-zero jit debug entry." am: 765516ecaf
am: 422fafeb40

Change-Id: I48ec0e9381c8d4018e15ea47f015409a53643810
2018-01-17 18:13:31 +00:00
Christopher Ferris
422fafeb40 Merge "Find first non-zero jit debug entry."
am: 765516ecaf

Change-Id: I3d2993b20e3ed791c24e8372c8694b3cc3d96312
2018-01-17 18:11:28 +00:00
Christopher Ferris
765516ecaf Merge "Find first non-zero jit debug entry." 2018-01-17 18:07:55 +00:00
Justin Yun
5a31c03fa6 Merge "Add VNDK version suffix in ld.config.txt on build time." am: 447280cea0
am: 3060be356f

Change-Id: I60f8d5752449577c7806e73e94331c62d6d5f91e
2018-01-17 07:57:55 +00:00
Justin Yun
3060be356f Merge "Add VNDK version suffix in ld.config.txt on build time."
am: 447280cea0

Change-Id: Id4e165610e03ca7b8f0bc9aca781382f48f2cd1c
2018-01-17 07:55:22 +00:00
Justin Yun
447280cea0 Merge "Add VNDK version suffix in ld.config.txt on build time." 2018-01-17 07:49:52 +00:00
Justin Yun
cbbf195e46 Add VNDK version suffix in ld.config.txt on build time.
As we use different ld.config.txt per version, we don't need to
substitute the VNDK_VER on run time.
Remove all ${VNDK_VER} from the linker namespace configuration files.

Bug: 70603313
Test: build and boot GSI for walleye and sailfish
Change-Id: Ief8aee5c3308b2462cafaffc2423deda4e51a7bb
2018-01-17 12:14:25 +09:00
Oscar Shu
b8deb4de2f Merge "Firmware dump create directory" am: da007e0deb
am: b4d9751eab

Change-Id: I452c4800421d6125de0b640933892946ca71dd2d
2018-01-17 00:06:25 +00:00
Oscar Shu
b4d9751eab Merge "Firmware dump create directory"
am: da007e0deb

Change-Id: I5b716bb31477fa958e49c32b8dd82a533fb935e5
2018-01-17 00:04:27 +00:00
Oscar Shu
da007e0deb Merge "Firmware dump create directory" 2018-01-16 23:57:15 +00:00
Christopher Ferris
ed37aca987 Find first non-zero jit debug entry.
Sometimes a process will have multiple shared libraries loaded
that have defined __jit_debug_descriptor. Specifically, art testing
will load libart.so and libartd.so, which would have broken unwinding
through jit'd code for art testing if libart.so winds up being found first.
In order to avoid duplicating the code for the linker to figure out
which one is live, change the algorithm to find the first non-zero
first_entry_ set in __jit_debug_descriptor.

Bug: 68396769

Test: Passes unit tests.
Test: Verified this can unwind 137-cfi on arm/arm64.
Change-Id: Ic4d403065d2c6f22476ef0171e7add17cd1464cd
2018-01-16 14:59:51 -08:00
Tom Cherry
927c5d5fdc Introduce property types
Properties right now can take any format, but that makes it hard to
specify an API for these properties as Treble intends to do.
Therefore this change introduces the idea of property types, described below.

1) 'string' this is the default type and allows any property to be set.
2) 'bool' this allows only boolean values (true|false|1|0)
3) 'int' and 'uint' these allow signed and unsigned integer values
respectively.
4) 'double' this allows floating point numbers with double precision.
5) 'size' this allows for strings matching [0-9]+[gkm].
6) 'enum' this allows only a specific set of space deliminated values
to be set, e.g. 'enum allow these strings' only allows one of 'allow',
'these', or 'strings' to be set.

Bug: 70858511
Test: unit tests, test that properties are only set if their type matches
Change-Id: I7a6b00fb43ec630d1f56c9e9a1f1b61d3914f603
2018-01-16 14:44:40 -08:00
Chenbo Feng
94cff89571 Merge "Mount eBPF file system and cgroupv2 root directory" am: 4719ecd28c
am: 7a65861d7c

Change-Id: I4b325ed9b3bf5526260810f5aed990a4e802a482
2018-01-16 22:04:19 +00:00
Chenbo Feng
7a65861d7c Merge "Mount eBPF file system and cgroupv2 root directory"
am: 4719ecd28c

Change-Id: I10394f507c4cb6c91622804836f240d7de6c22ac
2018-01-16 22:01:16 +00:00
Treehugger Robot
4719ecd28c Merge "Mount eBPF file system and cgroupv2 root directory" 2018-01-16 21:45:29 +00:00
Chenbo Feng
2cba6f2e0e Mount eBPF file system and cgroupv2 root directory
Mount the eBPF file system under /sys/fs/bpf to allow netd to pin and
retrieve persistent eBPF map object from the file system. It helps the
system to maintain a consistent eBPF data store when netd crashed and
restart. Mount the cgroupv2 module and use the root folder of it to
monitor network statistics through eBPF program attached.

Test: eBPF map object show up under /sys/fs/bpf after netd start.
Bug: 30950746
Change-Id: Ie475112116603798fe75a75c5a84f4bbe5b942ec
2018-01-16 21:45:25 +00:00
Jeff Vander Stoep
14bf561f03 Merge "OWNERS: add myself" am: 4ba3ebbc2f
am: d64b97e0fd

Change-Id: Iab73dc727a7113db4fc16245b19a0a4e1532254e
2018-01-16 20:28:48 +00:00
Jeff Vander Stoep
d64b97e0fd Merge "OWNERS: add myself"
am: 4ba3ebbc2f

Change-Id: I29a5941cb476a343f8f419e9c8a2be088e027c6f
2018-01-16 20:07:20 +00:00
xshu
9a7a5b61c4 Firmware dump create directory
Setting up infanstructure for vendor tombstone in dir:
/data/vendor/tombstones

Wifi specific dumps will go into:
/data/vendor/tombstones/wifi

Bug: 70170285
Test: compile, run on device.
Change-Id: Ie16dd8236d9b5df19adb9818b4c62ce01e0d0b10
2018-01-16 19:10:57 +00:00
Treehugger Robot
4ba3ebbc2f Merge "OWNERS: add myself" 2018-01-16 19:09:56 +00:00
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