Yang Ni
875fe42a81
Revert "Prevent vendors from accessing private VNDK libs"
...
Bug: 70260989
Bug: 70279973
This reverts commit 6b369bee69
.
Test: Build for Walley and tested Photos edit.
2017-12-06 11:59:26 -08:00
Jin Qian
0a360e3dd7
Merge "fastboot: fix build break" am: cce381e307
am: 2cbce3739b
...
am: 72ce9fddd3
Change-Id: I6cd7aac2390a7fbc27cd7528381ee2c154ce430a
2017-12-06 07:41:30 +00:00
Jin Qian
72ce9fddd3
Merge "fastboot: fix build break" am: cce381e307
...
am: 2cbce3739b
Change-Id: Ia6333f699fee3c67fa5f425cc42a871a8408fccb
2017-12-06 07:37:30 +00:00
Jin Qian
2cbce3739b
Merge "fastboot: fix build break"
...
am: cce381e307
Change-Id: I1492e940fff923a979d957d9ca1d51ecffdb6492
2017-12-06 07:33:52 +00:00
Treehugger Robot
cce381e307
Merge "fastboot: fix build break"
2017-12-06 07:27:29 +00:00
Jin Qian
0c04f78286
fastboot: fix build break
...
execvpe is a GNU extension. Use execve instead.
Change-Id: I8bf4b6a4e9fd0cae0239f4c5aa9707f141460a7d
2017-12-05 21:39:40 -08:00
Alin Jerpelea
778447ad7d
Merge "add odm partition to ld.config.legacy" am: cc06663c04
am: 6ba4207461
...
am: 61860a37aa
Change-Id: I06c52549ab1b316f6bb1854d9b2a71fbdbbabe36
2017-12-06 04:23:20 +00:00
Alin Jerpelea
5997b4cb87
Merge "Allow firmware loading from ODM partition" am: 5b78366665
am: 4a33cee3f8
...
am: 4c4882d97d
Change-Id: Ied0f25af8f6e0bed50175bc64ea8e23be04ee87d
2017-12-06 04:22:34 +00:00
Alin Jerpelea
61860a37aa
Merge "add odm partition to ld.config.legacy" am: cc06663c04
...
am: 6ba4207461
Change-Id: I434956c50012f3e4662623ecd45a1573ae363f4e
2017-12-06 04:16:39 +00:00
Alin Jerpelea
4c4882d97d
Merge "Allow firmware loading from ODM partition" am: 5b78366665
...
am: 4a33cee3f8
Change-Id: I6540bc6bf98adaf9d83b8e3f398081438f4cbafc
2017-12-06 04:16:13 +00:00
Alin Jerpelea
6ba4207461
Merge "add odm partition to ld.config.legacy"
...
am: cc06663c04
Change-Id: I4251acfd4d37b09041aedfdbf926da0d2e64ff67
2017-12-06 04:10:24 +00:00
Alin Jerpelea
4a33cee3f8
Merge "Allow firmware loading from ODM partition"
...
am: 5b78366665
Change-Id: Ic7c19c97598fc4087af9a1b7fcc28d5ed0600558
2017-12-06 04:10:02 +00:00
Treehugger Robot
cc06663c04
Merge "add odm partition to ld.config.legacy"
2017-12-06 04:03:07 +00:00
Treehugger Robot
5b78366665
Merge "Allow firmware loading from ODM partition"
2017-12-06 04:03:07 +00:00
Jin Qian
291baf5a47
Merge "fastboot: pass environment variables to exec_e2fs_cmd" am: 7ed1a15efe
am: 1ab4d182bd
...
am: 9ab13e3826
Change-Id: I14b8e145474434d76fafe193147d21f71bbed710
2017-12-06 03:12:59 +00:00
Jin Qian
9ab13e3826
Merge "fastboot: pass environment variables to exec_e2fs_cmd" am: 7ed1a15efe
...
am: 1ab4d182bd
Change-Id: I570bf6005f9c55061939d41a7ab01155f6663601
2017-12-06 03:07:46 +00:00
Jin Qian
1ab4d182bd
Merge "fastboot: pass environment variables to exec_e2fs_cmd"
...
am: 7ed1a15efe
Change-Id: I25b475a4fdc0894d5321ff8c0d64c588b56d25c7
2017-12-06 02:57:29 +00:00
Treehugger Robot
7ed1a15efe
Merge "fastboot: pass environment variables to exec_e2fs_cmd"
2017-12-06 00:28:32 +00:00
Christopher Ferris
261425888a
Merge "Demand read load bias for a map." am: 1ae6d14f93
am: de54053fc3
...
am: fa423146a4
Change-Id: I5e78e007dbffbb29eb0faa2decdf758bf36640cd
2017-12-05 23:52:01 +00:00
Christopher Ferris
fa423146a4
Merge "Demand read load bias for a map." am: 1ae6d14f93
...
am: de54053fc3
Change-Id: I22ceefac70a6daa02923401f27f8de652d0aaf15
2017-12-05 23:49:24 +00:00
Christopher Ferris
de54053fc3
Merge "Demand read load bias for a map."
...
am: 1ae6d14f93
Change-Id: I781a7499b370e70c7fcf18acbdaafcb1c0889781
2017-12-05 23:43:27 +00:00
Christopher Ferris
1ae6d14f93
Merge "Demand read load bias for a map."
2017-12-05 23:36:44 +00:00
Jin Qian
03c73e106f
fastboot: pass environment variables to exec_e2fs_cmd
...
Set MKE2FS_CONFIG to point to a config file that comes with mke2fs
binary.
Change-Id: I1d68726ff8baa0c00b930b32f66c54c298c46b81
2017-12-05 14:06:26 -08:00
Christopher Ferris
b7de5f5429
Demand read load bias for a map.
...
Add a static GetLoadBias method to the Elf object that only reads just
enough to get the load bias.
Add a method to MapInfo that gets the load bias. First attempt to get
it if the elf object already exists. If no elf object was created, use
the new static method to get the load bias.
In BacktraceMap, add a custom iterator so that when code dereferences
a map element, that's when the load bias will be retrieved if it hasn't
already been set.
Bug: 69871050
Test: New unit tests, verify tombstones have non-zero load bias values for
Test: libraries with a non-zero load bias.
Change-Id: I125f4abc827589957fce2f0df24b0f25d037d732
2017-12-05 13:12:47 -08:00
Hao Wang
f7fa9078b3
Merge "logd: enhance multiple blocking readers performance" am: 6740b9697e
am: da620dff5f
...
am: ee56d405de
Change-Id: I3f394e9825222824b72e117294268a022cc08a0c
2017-12-05 20:41:26 +00:00
Hao Wang
ee56d405de
Merge "logd: enhance multiple blocking readers performance" am: 6740b9697e
...
am: da620dff5f
Change-Id: Iedb0d69053f553befbba411e967e3c664bd00dc0
2017-12-05 20:00:05 +00:00
Hao Wang
da620dff5f
Merge "logd: enhance multiple blocking readers performance"
...
am: 6740b9697e
Change-Id: Iedd4096dd37d30a605fc8e92b89e5715fc0c4300
2017-12-05 19:54:23 +00:00
Treehugger Robot
6740b9697e
Merge "logd: enhance multiple blocking readers performance"
2017-12-05 19:31:21 +00:00
TreeHugger Robot
0f288d8630
Merge "Prevent vendors from accessing private VNDK libs"
2017-12-05 13:56:09 +00:00
Hao Wang
f6e2296953
logd: enhance multiple blocking readers performance
...
logd suffers performance degradation when multiple blocking
readers connect to it. Each time when the writer thread log
new entries, all of the readers are notified regardless of
which log id they are watching.
In this case, only give notification to the readers who are
actually watching new entries' log id. This decreases logd
CPU consumption by skipping unnecessary LogBuffer::flushTo
loops.
Test: liblog-unit-tests, logd-unit-tests & CtsLiblogTestCases
logcat-unit-tests
Test: manual:
1.'logcat –b all' at constant heavy logging load level
2.simultaneously 'logcat –b crash' in another session,
a healthy crash buffer usually keep empty
3.logd CPU consumption doesn't increase after step 2
Change-Id: I4ffc045c9feb7a0998f7e47ae2173f8f6aa28e8a
2017-12-05 18:46:24 +08:00
Christopher Ferris
1b393ac656
Merge "Switch MemoryRemote to use ptrace." am: ebca57adec
am: 269bbeef84
...
am: de8433fdc4
Change-Id: Idc94ca7b711191f817e6e8fd811c4a3c7193e1f7
2017-12-05 02:07:11 +00:00
Christopher Ferris
de8433fdc4
Merge "Switch MemoryRemote to use ptrace." am: ebca57adec
...
am: 269bbeef84
Change-Id: I6848c5c3b466e4f166508cdd8fe8a00f79e0bc68
2017-12-05 01:59:48 +00:00
Christopher Ferris
269bbeef84
Merge "Switch MemoryRemote to use ptrace."
...
am: ebca57adec
Change-Id: I1729cd0095b2882091328768ce951f785f23fbbf
2017-12-05 01:57:43 +00:00
Christopher Ferris
ebca57adec
Merge "Switch MemoryRemote to use ptrace."
2017-12-05 01:49:17 +00:00
James Hawkins
f0ca3729ff
Merge "bootstat: Add more boot reasons." am: 4aba23831d
am: bb69ab2010
...
am: 020dcbc20f
Change-Id: Iabe2e177c580f42f655b63f4b52c905542d33c27
2017-12-05 01:25:19 +00:00
James Hawkins
020dcbc20f
Merge "bootstat: Add more boot reasons." am: 4aba23831d
...
am: bb69ab2010
Change-Id: Ibe70420486afcdfe779440aecbf544182f586cf2
2017-12-05 01:14:36 +00:00
James Hawkins
bb69ab2010
Merge "bootstat: Add more boot reasons."
...
am: 4aba23831d
Change-Id: Icaffd6019899acfc1b279afccafc3d69471ee7c3
2017-12-05 01:02:07 +00:00
Treehugger Robot
4aba23831d
Merge "bootstat: Add more boot reasons."
2017-12-05 00:12:33 +00:00
Christopher Ferris
e714ed2774
Switch MemoryRemote to use ptrace.
...
Some processes will fail to read when using process_vm_read, so switch
back to ptrace for now. For example, the system_server process only
gets two frames without this fix.
Fix up some of the remote memory read unit tests to allow passing
even when using ptrace.
Bug: 70160908
Test: All unit tests pass, debuggerd -b <system_server pid> works.
Change-Id: I37c67bf9c480d7268c9fe32dad6a8d78a4020b85
2017-12-04 14:27:34 -08:00
James Hawkins
00433a2305
bootstat: Add more boot reasons.
...
Bug: none
Test: none
Change-Id: I4cc6e2e39b6c5954387006d48f2119211fa37dd5
2017-12-04 14:20:21 -08:00
Chih-hung Hsieh
7ccb51b64f
Merge "Use -Werror in system/core/healthd"
2017-12-04 21:40:40 +00:00
Yao Chen
3e1f33f44f
Merge "make log.tag.stats_log work for stats buffer." am: 1e2ed53ffc
am: 9e28024b42
...
am: 693a0fae38
Change-Id: Ic0345e098e77ff1fed6370a79b779efa3436a061
2017-12-04 21:21:55 +00:00
Yao Chen
693a0fae38
Merge "make log.tag.stats_log work for stats buffer." am: 1e2ed53ffc
...
am: 9e28024b42
Change-Id: I63b2072f2781c3bbd71df94d1492c9b4ee0ea3ce
2017-12-04 21:19:33 +00:00
Yao Chen
9e28024b42
Merge "make log.tag.stats_log work for stats buffer."
...
am: 1e2ed53ffc
Change-Id: I5b81edb2c221eb8a7c5ab64316d788879d727c58
2017-12-04 21:17:18 +00:00
Treehugger Robot
1e2ed53ffc
Merge "make log.tag.stats_log work for stats buffer."
2017-12-04 21:02:26 +00:00
Elliott Hughes
2da2a2e371
Merge "Always build awk." am: 919887ebd3
am: d11a642bd0
...
am: a471c4d9a1
Change-Id: I147ed04bde78be2863b3cde9c0ef50f227e7f9c9
2017-12-04 20:55:44 +00:00
Elliott Hughes
a471c4d9a1
Merge "Always build awk." am: 919887ebd3
...
am: d11a642bd0
Change-Id: Ie25e3f62574423649778e89ceb3205c7a5c38949
2017-12-04 20:53:11 +00:00
Elliott Hughes
d11a642bd0
Merge "Always build awk."
...
am: 919887ebd3
Change-Id: I81d8d8600b1cb0f23b3bb789c04d4f0dad7b708f
2017-12-04 20:48:49 +00:00
Elliott Hughes
919887ebd3
Merge "Always build awk."
2017-12-04 20:32:48 +00:00
Yao Chen
025f05a225
make log.tag.stats_log work for stats buffer.
...
Test: adb shell setprop log.tag.stats_log S
And saw the stats logs are silent.
Change-Id: I7a9313f5f12029f9b8a8f070de1e1db659675525
2017-12-04 10:07:12 -08:00