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
Ivan Lozano
f4dafbc836
Disable integer overflow sanitizer in grep.
...
Disables integer overflow sanitization in grep on integer sanitized
builds.
Bug: 30969751
Test: Compiles.
Change-Id: I2668ef6f2261a86f17d2a0f04d5ec7a3c0336ff1
2017-12-04 14:47:49 -08: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
Alin Jerpelea
fa7958e1fb
add odm partition to ld.config.legacy
...
change is needed to be able to load libraries from /odm partition
/odm partition should have the lowest priority so that it can not override
the libraries from /vendor or /system partitions
Test: libraries are loaded ok.
Change-Id: Ifdfc22a3406ae3ad1fde53618d4120fd0498f615
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
2017-12-01 06:14:11 +09:00
Jim Kaye
ab74e068ee
Fix typos in ADB documentation
...
Bug: None
Test: None
Change-Id: Ib036eefc602bf0ebac869146b04eea225cae39ef
2017-11-30 10:57:51 -08: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
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
Dan Willemsen
528f144e77
Fix / suppress new unused warnings for mingw+clang
...
Bug: 69933068
Test: mmma system/core
Change-Id: I089166a979d3d8c5ada38a7745d507b555048499
2017-11-29 21:37:28 -08: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
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