Commit graph

38419 commits

Author SHA1 Message Date
Max Bires
cd4fa12263 Merge "Adding /data/local/traces for traceur app" am: 658e4ddd03
am: 69c428e5a6

Change-Id: I51eef49ded8be6a24bea2e7afa0694dbc65bc6f1
2018-01-20 01:00:11 +00:00
Max Bires
69c428e5a6 Merge "Adding /data/local/traces for traceur app"
am: 658e4ddd03

Change-Id: Icd96940adf99c754a6bdb06c42ae8b1ad615cf9d
2018-01-20 00:57:00 +00:00
Treehugger Robot
658e4ddd03 Merge "Adding /data/local/traces for traceur app" 2018-01-20 00:51:30 +00:00
Christopher Ferris
ad7e37c40f Merge "Change all uintptr_t to uint64_t in API." am: e20b4a48fe
am: b5ca867bd5

Change-Id: I786d4e22b69b11369b5c8786b19a23d123706a27
2018-01-19 23:43:28 +00:00
Christopher Ferris
b5ca867bd5 Merge "Change all uintptr_t to uint64_t in API."
am: e20b4a48fe

Change-Id: Id0bb2e33e87a6889ded796fc29fdb6a273d4c5ff
2018-01-19 23:38:38 +00:00
Christopher Ferris
e20b4a48fe Merge "Change all uintptr_t to uint64_t in API." 2018-01-19 23:30:33 +00:00
Elliott Hughes
8d92bb14f2 Merge "Fix fastboot memory corruption." am: b6d7f2655d
am: 944cc0d002

Change-Id: I98f56eeb4a7a49e33bf4113c495f97c1cab4eada
2018-01-19 22:50:36 +00:00
Elliott Hughes
944cc0d002 Merge "Fix fastboot memory corruption."
am: b6d7f2655d

Change-Id: Idc566a2dad5cdeeee1b049598d9b92e6cf7c3c73
2018-01-19 22:48:03 +00:00
Treehugger Robot
b6d7f2655d Merge "Fix fastboot memory corruption." 2018-01-19 22:39:14 +00:00
Max Bires
181d11c5cb Adding /data/local/traces for traceur app
Traceur app is being split out of shell user. Previously it logged to
shell's bugreports directory. It no longer has access, so it needs a
new, user-friendly file location to store trace data.

Bug:68126425
Test: Traceur can write and shell can read from this directory
Change-Id: I9e344973fd43eb5699f7a848524e20b06458fb77
2018-01-19 09:37:44 -08:00
Ian Pedowitz
3e554073a4 Merge "Fixing app compat issue b/72143978" am: 0f2ed7d398
am: 11ecd63660

Change-Id: I7532124bae2d06f1bcce58e86e45f28d3c519b87
2018-01-19 04:21:59 +00:00
Ian Pedowitz
11ecd63660 Merge "Fixing app compat issue b/72143978"
am: 0f2ed7d398

Change-Id: Iee2097bf9db16f0056da2daa6c319a894078195a
2018-01-19 04:13:22 +00:00
Treehugger Robot
0f2ed7d398 Merge "Fixing app compat issue b/72143978" 2018-01-19 02:38:33 +00:00
Christopher Ferris
7937a36c8e Change all uintptr_t to uint64_t in API.
In order to support the offline unwinding properly, get rid of the
usage of non-fixed type uintptr_t from all API calls.

In addition, completely remove the old local and remote unwinding code
that used libunwind.

The next step will be to move the offline unwinding to the new unwinder.

Bug: 65682279

Test: Ran unit tests for libbacktrace/debuggerd.
Test: Ran debuggerd -b on a few arm and arm64 processes.
Test: Ran crasher and crasher64 and verified tombstones look correct.
Change-Id: Ib0c6cee3ad6785a102b74908a3d8e5e93e5c6b33
2018-01-18 17:26:20 -08:00
Elliott Hughes
aaa3b6bbf2 Fix fastboot memory corruption.
Bug: http://b/68664649
Test: echo 'ANDROID!' > fake.img ; fastboot -c `python -c "print 'A'*4000"` boot fake.img
Change-Id: I3299e0fba24a6c1f6178c994731a94cea68f7254
2018-01-18 16:50:14 -08:00
David Sehr
f9cd8e0e83 Merge "Remove libziparchive dependency on libutils" am: 34f8eaab0d
am: 8b70132880

Change-Id: I9efbb31fde3c96967caf354bbbe7ea7931072a0a
2018-01-19 00:26:16 +00:00
Ian Pedowitz
7bb9785a1d Fixing app compat issue b/72143978
Revert "Remove obsolete workaround."

This reverts commit 1f3ac7583f.

Bug: 72143978
Bug: 24465209
Test: Tested failing case on sailfish, reverted back all CL's since
Test: 3471433 for b/24465209 and apps open
2018-01-18 16:25:24 -08:00
David Sehr
8b70132880 Merge "Remove libziparchive dependency on libutils"
am: 34f8eaab0d

Change-Id: I41c99c26aebc23b2cc1d82b2e147e5be5aada114
2018-01-19 00:21:21 +00:00
David Sehr
34f8eaab0d Merge "Remove libziparchive dependency on libutils" 2018-01-19 00:03:47 +00:00
Christopher Ferris
9a0acd254b Merge "Add support for getting a dex pc." am: 5e5056c5a5
am: 4e57346a75

Change-Id: I7847df1666f06c5953680e59ba40b9ab005a4b75
2018-01-18 18:53:19 +00:00
Christopher Ferris
4e57346a75 Merge "Add support for getting a dex pc."
am: 5e5056c5a5

Change-Id: If01d3174ed5e874cb85cf728a52eed441fd3afbe
2018-01-18 18:51:14 +00:00
Christopher Ferris
5e5056c5a5 Merge "Add support for getting a dex pc." 2018-01-18 18:45:56 +00:00
David Sehr
abfb9f3b99 Remove libziparchive dependency on libutils
Prevent future cyclic dependency from libunwind changes.

Bug: 66919073
Test: make -j 50
Change-Id: I2a4fa5b7c2c3a82db2073d0fa51940da6603be1f
2018-01-18 09:23:53 -08:00
Christopher Ferris
98984b41da Add support for getting a dex pc.
Changes:
- Change the register type from int16_t to uint32_t for the location data
  and the Eval processing. This is because the special dex pc is > 65535.
- Add the ability for Dwarf register location information to point to a
  register that is itself a Dwarf location register.
- Add dex_pc to the frame information.
- Modify the unwind tool to print the dex pc if non-zero.

This does not implement the printing of the dex information in anything
but the unwind tool. It's not the final form of this printing.

Bug: 72070049

Test: Ran new unit tests.
Test: Dumped stack while in interpreter running 137-cfi art test and
Test: verified dex pc is set to non-zero.
Change-Id: I6ce8a6b577fb4f92abacbd433b1f68977e272542
2018-01-17 19:18:00 -08:00
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