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
5b78366665
Merge "Allow firmware loading from ODM partition"
2017-12-06 04:03:07 +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
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
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
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
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
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
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
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
Elliott Hughes
62fc11b054
Always build awk.
...
Bug: http://b/69117476
Test: builds
Change-Id: I93590e942fa78d7e472f032181f72b87c57bc387
2017-12-04 09:35:43 -08:00
Alin Jerpelea
b398ac859c
Allow firmware loading from ODM partition
...
ODM partition may contain firmware and we should allow
firmware loading from this partition
Test: firmware is loaded succesfully
Change-Id: I7d327bc79a04d1a2dee0fd47407eb53f9d391665
Signed-off-by: Alin Jerpelea <alin.jerpelea@sonymobile.com>
2017-12-04 16:22:15 +01:00
Josh Gao
3e4f309b68
Merge changes I53c2c560,I7d845ac5,I8b11d923
...
am: b4fda18d83
Change-Id: I1901e4dfe4d5d59b0ebfa018bb79d0827d22ba05
2017-12-02 00:22:06 +00:00
Treehugger Robot
b4fda18d83
Merge changes I53c2c560,I7d845ac5,I8b11d923
...
* changes:
unwindstack: rename Memory::ReadPartially to Read.
unwindstack: rename Memory::Read to ReadFully.
unwindstack: add Memory::ReadPartially.
2017-12-02 00:12:21 +00:00
James Hawkins
9810df82a8
Merge "bootstat: Add four more boot reasons."
...
am: 20a410b575
Change-Id: Ida2da2e46327d9cb572bb0f12d5348acc5c5357d
2017-12-01 19:42:38 +00:00
James Hawkins
20a410b575
Merge "bootstat: Add four more boot reasons."
2017-12-01 19:35:03 +00:00
Joel Galenson
a55ca79ba6
Merge "Remove unnecessary restorecon."
...
am: f896d274bc
Change-Id: If23392b7c0ba23cce9a9f65b55aa4e48713d977e
2017-12-01 16:52:00 +00:00
Elliott Hughes
152d7e0f6c
Merge "std::string_view is no longer experimental."
...
am: c8022a3efc
Change-Id: I75fa251cb6a959e7dfd32524b8d0ffcf839c3dc4
2017-12-01 16:51:24 +00:00
Elliott Hughes
b32552496c
Merge "Stop defining local "unused" macros now this is C++."
...
am: 3183c567b0
Change-Id: I34c0d37280510810ac27de45b33403b362ad0973
2017-12-01 16:50:26 +00:00
Treehugger Robot
f896d274bc
Merge "Remove unnecessary restorecon."
2017-12-01 16:47:10 +00:00
Elliott Hughes
c8022a3efc
Merge "std::string_view is no longer experimental."
2017-12-01 16:42:25 +00:00
Elliott Hughes
3183c567b0
Merge "Stop defining local "unused" macros now this is C++."
2017-12-01 16:42:20 +00:00
Bowgo Tsai
43da9ee604
Merge "init/selinux: renames nonplat_declaration.cil to plat_pub_versioned.cil"
...
am: d06a0c035b
Change-Id: I9d5f5c441dc3669417787f69116f6e332807d337
2017-12-01 05:06:43 +00:00
Treehugger Robot
d06a0c035b
Merge "init/selinux: renames nonplat_declaration.cil to plat_pub_versioned.cil"
2017-12-01 05:02:47 +00:00
Dan Willemsen
fe75fb7cef
Merge "Mark more win32 parameters as unused"
...
am: b4d6b8ff8d
Change-Id: I69064a1a0eaeb4ab0450b5c824abc13657023e00
2017-12-01 02:05:00 +00:00
Treehugger Robot
b4d6b8ff8d
Merge "Mark more win32 parameters as unused"
2017-12-01 01:56:35 +00:00
Elliott Hughes
e805883a2b
std::string_view is no longer experimental.
...
Bug: N/A
Test: builds
Change-Id: I8f022fdc3ebaebd8aa250414569485a752f98da7
2017-11-30 16:32:15 -08:00
Elliott Hughes
38d2567c9f
Stop defining local "unused" macros now this is C++.
...
Bug: N/A
Test: builds, boots
Change-Id: I3eb075d5003fa7cdc6690f4af29a296e22be257c
2017-11-30 16:24:36 -08:00
Joel Galenson
fef8644f8d
Remove unnecessary restorecon.
...
Now that creating a symlink in init automatically sets its
context, we do not need to call restorecon manually.
Bug: 69965807
Test: Booted device and tested wifi and camera.
Change-Id: I0863198f2c2bfce79566b5320c7ef035698f3afb
2017-11-30 15:39:43 -08:00
Dan Willemsen
22088fd2d1
Mark more win32 parameters as unused
...
Missed one new instance with my last patch.
Bug: 69933068
Test: m native-host-cross
Change-Id: Ib6d0b994131a0011b3a2f1a4633b21756a9d6732
2017-11-30 23:35:42 +00:00
Elliott Hughes
bfb96796a4
Merge "use std::hash instead of hashing byte by byte"
...
am: aaa0bbce8e
Change-Id: Iee321900f8ef386cd118d874c31c5b0d2741551a
2017-11-30 23:25:55 +00:00
Elliott Hughes
aaa0bbce8e
Merge "use std::hash instead of hashing byte by byte"
2017-11-30 23:18:19 +00:00
James Hawkins
f4444f058c
bootstat: Add four more boot reasons.
...
Bug: none
Test: none
Change-Id: Ifd62e3a8bb6142e89fcde819eab1caba3d7933b7
2017-11-30 15:01:40 -08:00
Dan Willemsen
829ecaa808
Merge "Fix / suppress new unused warnings for mingw+clang"
...
am: f106bb6bb8
Change-Id: I4e4ac1ff248bd437dd721cac8d55b4925e7af5a8
2017-11-30 22:43:14 +00:00
Dan Willemsen
f106bb6bb8
Merge "Fix / suppress new unused warnings for mingw+clang"
2017-11-30 22:31:54 +00:00
Jim Kaye
42f9a44000
Merge "Fix typos in ADB documentation"
...
am: 017203b140
Change-Id: I263536093d33e7e1783049834862346e47643723
2017-11-30 21:53:43 +00:00
Treehugger Robot
017203b140
Merge "Fix typos in ADB documentation"
2017-11-30 21:41:26 +00:00
Jim Kaye
ab74e068ee
Fix typos in ADB documentation
...
Bug: None
Test: None
Change-Id: Ib036eefc602bf0ebac869146b04eea225cae39ef
2017-11-30 10:57:51 -08:00