Yifan Hong
25eb37a86e
healthd: clean up unused code
...
With migration to health 2.0 HAL, there are unused code paths
that can be removed.
Test: health VTS test
Test: charger_test
Bug: 68724651
Change-Id: I9af2f95432529a0bf6e10980a99014d570dfce93
2017-11-30 15:34:46 -08:00
James Hawkins
4f07e909dc
Merge "bootstat: Three more boot reasons." am: 5470a12513
am: 0a86c0c1ed
...
am: 9a8b18210b
Change-Id: Ia0090c56cef4b4a014cfc9106a03e5094fd47353
2017-11-30 18:06:34 +00:00
James Hawkins
9a8b18210b
Merge "bootstat: Three more boot reasons." am: 5470a12513
...
am: 0a86c0c1ed
Change-Id: Ib67dd64ba4353cad68b270086101d16118e8072a
2017-11-30 18:02:36 +00:00
James Hawkins
0a86c0c1ed
Merge "bootstat: Three more boot reasons."
...
am: 5470a12513
Change-Id: If4b3dd7542efd8e4c937ea18dbfa58f9988b17c2
2017-11-30 17:55:08 +00:00
James Hawkins
5470a12513
Merge "bootstat: Three more boot reasons."
2017-11-30 17:47:00 +00:00
Joel Galenson
b6bc0a5b49
Merge "Run restorecon after init creates a symlink or writes to a file." am: c02b92a923
am: 80d2fdcac7
...
am: e24510c718
Change-Id: Ia8f7a556dcc83724e897511647df978d3d61255d
2017-11-30 17:38:39 +00:00
Joel Galenson
e24510c718
Merge "Run restorecon after init creates a symlink or writes to a file." am: c02b92a923
...
am: 80d2fdcac7
Change-Id: I4f0615f02c855c2e5a75d8387aad3351251222d3
2017-11-30 17:36:30 +00:00
Joel Galenson
80d2fdcac7
Merge "Run restorecon after init creates a symlink or writes to a file."
...
am: c02b92a923
Change-Id: I06d9c5cdefa732ae2094d389678980e597a89c4c
2017-11-30 17:34:25 +00:00
Treehugger Robot
c02b92a923
Merge "Run restorecon after init creates a symlink or writes to a file."
2017-11-30 17:30:17 +00:00
Christopher Ferris
4e391dc209
Merge "Fix incorrect usage of relative pcs." am: 96b5268405
am: 756d122b8f
...
am: d467f60a97
Change-Id: Ic2c43174949b5e65d46c107e5706f1cd2f3ba2a6
2017-11-30 03:25:43 +00:00
Christopher Ferris
d467f60a97
Merge "Fix incorrect usage of relative pcs." am: 96b5268405
...
am: 756d122b8f
Change-Id: I69f2736905a941924eea00e303eca679b38df675
2017-11-30 03:24:13 +00:00
Christopher Ferris
756d122b8f
Merge "Fix incorrect usage of relative pcs."
...
am: 96b5268405
Change-Id: I5ddf719aa80439cd56859bb52267ffa4bb9edac6
2017-11-30 03:22:05 +00:00
Christopher Ferris
96b5268405
Merge "Fix incorrect usage of relative pcs."
2017-11-30 03:11:41 +00:00
Dmitry Dementyev
a04cfbec0a
Merge "Make libkeystore_aidl shared and export to PDK."
2017-11-30 01:05:43 +00:00
Christopher Ferris
c3d79f7c07
Fix incorrect usage of relative pcs.
...
When stepping, it's necessary to use both the unaltered relative pc
and the adjusted relative pc. If the adjusted pc is not used, the
wrong unwind information can be used.
Added new offline unit tests that take real data and verifies that it
unwinds properly.
Fix a bug in the map code that would not properly parse map data for
a 64 bit process when done in a 32 bit process.
Fix bug in eh_frame processing that didn't adjust the pc correctly.
Fix unit tests related to the pc adjustment.
Bug: 69475565
Test: Passes libbacktrace/libunwindstack unit tests.
Test: Run debuggerd -b on processes on a hikey.
Change-Id: Ic501a1c4549c5f61d2742a7105c42a960f2c892b
2017-11-29 16:10:08 -08:00
Joel Galenson
4b591f1851
Run restorecon after init creates a symlink or writes to a file.
...
Init currently sets the SELinux context on a mkdir but not on
other operations. This patch modifies it to do so when creating
symlinks, writing to a file, or copying a file.
Test: Built, flashed, and booted. Added fake init entries and
verified that they received the proper SELinux context.
Change-Id: I836b570fef81d74f3b6c8e7ce0274e94ca7b12d3
2017-11-29 15:29:49 -08:00
James Hawkins
5f85f8354b
bootstat: Three more boot reasons.
...
Bug: none
Test: none
Change-Id: I37b6ed6ce73f403aa5f9db2c0234e9dc4c0f7c01
2017-11-29 14:30:06 -08:00
James Hawkins
b52ba1de8b
Merge "bootstat: Add a few more bootreasons." am: b623389421
am: 6c640a1617
...
am: 0ea0130d31
Change-Id: I115c593e6e71bf8597d790d85921d66d40792a1a
2017-11-29 20:05:54 +00:00
James Hawkins
0ea0130d31
Merge "bootstat: Add a few more bootreasons." am: b623389421
...
am: 6c640a1617
Change-Id: Ib8d59c37b86a6cc579c25080cd62b748c25aead9
2017-11-29 19:50:33 +00:00
James Hawkins
6c640a1617
Merge "bootstat: Add a few more bootreasons."
...
am: b623389421
Change-Id: I047d0fd7c22d3814d2d94ef267d4ad13e054541f
2017-11-29 19:38:12 +00:00
James Hawkins
b623389421
Merge "bootstat: Add a few more bootreasons."
2017-11-29 19:29:54 +00:00
Steven Moreland
8890f7431e
Merge "ld.config.txt.in typo: absolution -> absolute" am: 34778d24ae
am: 6cf3cd2288
...
am: be997bf245
Change-Id: If1e3b4f780fcf7a2a35626129b2e7e4841947201
2017-11-29 18:05:16 +00:00
Steven Moreland
be997bf245
Merge "ld.config.txt.in typo: absolution -> absolute" am: 34778d24ae
...
am: 6cf3cd2288
Change-Id: If6e27b5dbfb97e9ebc3c8a8e571354ac0796dd9b
2017-11-29 18:01:09 +00:00
Steven Moreland
6cf3cd2288
Merge "ld.config.txt.in typo: absolution -> absolute"
...
am: 34778d24ae
Change-Id: Ib541b7b0f3e5162845f49673e65cac5ab1fc909d
2017-11-29 17:57:34 +00:00
Treehugger Robot
34778d24ae
Merge "ld.config.txt.in typo: absolution -> absolute"
2017-11-29 17:49:33 +00:00
Elliott Hughes
e21f03550a
Merge "Remove a duplicate TEMP_FAILURE_RETRY." am: 166c6a4390
am: 0b8a47c55a
...
am: 6bba8117cb
Change-Id: Ic87fe0fa9f0f7f4f4b5bc698136aadbc7eab752d
2017-11-29 16:20:37 +00:00
Elliott Hughes
6bba8117cb
Merge "Remove a duplicate TEMP_FAILURE_RETRY." am: 166c6a4390
...
am: 0b8a47c55a
Change-Id: Id132b10cdf3877ed06bc7cf471ef16f98aba1137
2017-11-29 16:16:33 +00:00
Elliott Hughes
0b8a47c55a
Merge "Remove a duplicate TEMP_FAILURE_RETRY."
...
am: 166c6a4390
Change-Id: I7bf8f8b7c68ecced7c62122f59623eefe9bab285
2017-11-29 16:12:00 +00:00
Elliott Hughes
166c6a4390
Merge "Remove a duplicate TEMP_FAILURE_RETRY."
2017-11-29 16:06:12 +00:00
Christopher Ferris
5ccc0cf6fa
Merge "Allow multiple threads sharing a map to unwind." am: f819c1d94b
am: 19b90d2092
...
am: a2939f0f0f
Change-Id: Ia7c2bdcb095e3b47acc19e80a234d41418a9986c
2017-11-29 03:14:49 +00:00
Christopher Ferris
a2939f0f0f
Merge "Allow multiple threads sharing a map to unwind." am: f819c1d94b
...
am: 19b90d2092
Change-Id: I44b8fbb020434d70cbebc57200c9fe5c5c184ee5
2017-11-29 03:10:47 +00:00
Christopher Ferris
19b90d2092
Merge "Allow multiple threads sharing a map to unwind."
...
am: f819c1d94b
Change-Id: I708bd4218372b6d008f40df6fada92b601586a01
2017-11-29 03:07:08 +00:00
Christopher Ferris
f819c1d94b
Merge "Allow multiple threads sharing a map to unwind."
2017-11-29 02:58:06 +00:00
Elliott Hughes
3df2fa6d8e
Remove a duplicate TEMP_FAILURE_RETRY.
...
Bug: N/A
Test: builds
Change-Id: I19c2f50422e8a7e0c451a464586553f3e5eaadab
2017-11-28 18:05:27 -08:00
Dmitry Dementyev
963daf2c11
Make libkeystore_aidl shared and export to PDK.
...
Bug: 69539820
Test: manual
Change-Id: I2616cbd10351b7ea9041ae0f0abde6634206de65
2017-11-28 16:59:41 -08:00
Christopher Ferris
2fd523d8c3
Merge "Add way to specify an offset in an elf file." am: 2f1aa4e90f
am: 3bd2524d70
...
am: 155fefffa1
Change-Id: I709de40d76194df14f14054cef68db022e29629b
2017-11-28 23:21:00 +00:00
James Hawkins
74b1758cad
bootstat: Add a few more bootreasons.
...
Bug: none
Test: none
Change-Id: I9b482e642a9eec26670118a265046194f3cc2a7a
2017-11-28 15:20:44 -08:00
Christopher Ferris
be788d891d
Allow multiple threads sharing a map to unwind.
...
Add a mutex in MapInfo, and a mutex in Elf. Lock the creation of an Elf
file using the MapInfo mutex, and lock when calling Step, GetFunctionName,
or GetSoname since they can modify information in the object. It might
be beneficial to use a fine grained lock in the future.
Change the Maps object to contain a vector of MapInfo pointers rather
than the total objects. This avoids copying this data around.
Add a test to libbacktrace to verify that sharing a map while doing
unwinds in different threads works.
Add concurrency tests in libunwindstack to verify the locking works.
Add always inline to the RegsGetLocal arm and aarch64 functions. I had
a case where clang did not inline the code, so make sure this is specified.
Bug: 68813077
Test: New unit tests to cover the case. Passes all unit tests.
Test: Ran a monkey test while dumping bugreports and verified that
Test: no crashes in libunwind.
Test: Remove the locking and verified that all of the concurrenty tests fail.
Change-Id: I769e728c676f6bdae9e64ce4cdc03b6749beae03
2017-11-28 15:20:38 -08:00
Christopher Ferris
155fefffa1
Merge "Add way to specify an offset in an elf file." am: 2f1aa4e90f
...
am: 3bd2524d70
Change-Id: If0ddc322890e3d177574f1a2b3e63adbc8290387
2017-11-28 23:17:26 +00:00
Christopher Ferris
3bd2524d70
Merge "Add way to specify an offset in an elf file."
...
am: 2f1aa4e90f
Change-Id: I05ffa0f44bbf1e9e6807389ea6ad5c9e06489e35
2017-11-28 23:13:52 +00:00
Christopher Ferris
2f1aa4e90f
Merge "Add way to specify an offset in an elf file."
2017-11-28 23:09:48 +00:00
Steven Moreland
ab338c10e6
ld.config.txt.in typo: absolution -> absolute
...
Test: none
Change-Id: I247722c0881fa733226eec6578f17b1a481d1e91
2017-11-28 12:42:19 -08:00
Yan, Shaopu
223c620fab
Merge "add null pointer check for msg buffer" am: f03f2a5cd7
am: a3e4876715
...
am: cf50e34861
Change-Id: I6012632c3690bd67edf3a8b71bde38b232d41d02
2017-11-28 20:09:48 +00:00
Yan, Shaopu
cf50e34861
Merge "add null pointer check for msg buffer" am: f03f2a5cd7
...
am: a3e4876715
Change-Id: I039c5cccf74a1ad878ea7752918ed6d5b40552ea
2017-11-28 20:02:15 +00:00
Yan, Shaopu
a3e4876715
Merge "add null pointer check for msg buffer"
...
am: f03f2a5cd7
Change-Id: I988bd6cf38aae918dd6b8c547b6db92501925685
2017-11-28 19:58:40 +00:00
Treehugger Robot
f03f2a5cd7
Merge "add null pointer check for msg buffer"
2017-11-28 19:54:27 +00:00
Christopher Ferris
a141709b21
Add way to specify an offset in an elf file.
...
This is to support the ability to dump an elf embedded in an apk.
Test: Ran unwind_info on a file, then ran it on an apk with an offset.
Change-Id: I8f23f4bdaadfd3665900bdd45d50cb270e2e0eed
2017-11-28 10:59:33 -08:00
Lorenzo Colitti
6a1057863d
Merge "Don't complain that the DNSSL RA option is "unknown"." am: 8055ea44de
am: 0bdb39ef5d
...
am: 6b0abb1fa9
Change-Id: I788d220bfac55faf691e3b04d6ca541712f8af5b
2017-11-28 09:21:41 +00:00
Lorenzo Colitti
6b0abb1fa9
Merge "Don't complain that the DNSSL RA option is "unknown"." am: 8055ea44de
...
am: 0bdb39ef5d
Change-Id: Ie41d6da6b93af6c76123437c0b26984c297a8b27
2017-11-28 09:17:35 +00:00
Lorenzo Colitti
0bdb39ef5d
Merge "Don't complain that the DNSSL RA option is "unknown"."
...
am: 8055ea44de
Change-Id: Id3553fdaca4b852330026f3083ec34a21b12ec54
2017-11-28 09:13:01 +00:00