Commit graph

40180 commits

Author SHA1 Message Date
Jaekyun Seok
977abec8a6 Merge "Allow vendor_init_actionable to persist.sys.usb.usbradio.config" into pi-dev
am: bfb490e3e8

Change-Id: I3bd2e532c3a1c09a3ea8f80bfb633d237b85dc0f
2018-03-20 05:06:06 +00:00
TreeHugger Robot
bfb490e3e8 Merge "Allow vendor_init_actionable to persist.sys.usb.usbradio.config" into pi-dev 2018-03-20 03:46:42 +00:00
Yabin Cui
6fff238997 Always set the sp reg to the cfa for DWARF.
am: 414df3e583

Change-Id: I0b0f13c41e0fee72f015dcc90d3f0293fe0ce3bf
2018-03-20 02:38:44 +00:00
Jaekyun Seok
56f832e561 Allow vendor_init_actionable to persist.sys.usb.usbradio.config
persist.sys.usb.usbradio.config can be used as an action trigger in
vendor init scripts.

Bug: 75202311
Bug: 74266614
Test: succeeded building and tested on pixels
Change-Id: I123b5ebce4bbf33f41222c2e11137d52e38ff9f8
2018-03-20 07:40:16 +09:00
Josh Gao
48aa138ac6 Merge changes I99b85f07,If28f6c8d am: 6156420fb7
am: 0204f8c2f2

Change-Id: I20b80d869279af82393c382ea837197633e4757c
2018-03-19 20:36:53 +00:00
Josh Gao
0204f8c2f2 Merge changes I99b85f07,If28f6c8d
am: 6156420fb7

Change-Id: I07fd7bee350ad02933d7c329c4852b504221ea9b
2018-03-19 20:22:38 +00:00
Treehugger Robot
6156420fb7 Merge changes I99b85f07,If28f6c8d
* changes:
  adb: implement std::make_unique, start using it.
  base: export GetThreadId.
2018-03-19 20:14:33 +00:00
Christopher Ferris
709bce067e Merge "Always set the sp reg to the cfa for DWARF." am: b22451f178
am: 2b1abddfea

Change-Id: I10973a3ce74636ab75d662aabc30dc05289a26d9
2018-03-19 19:59:55 +00:00
Christopher Ferris
2b1abddfea Merge "Always set the sp reg to the cfa for DWARF."
am: b22451f178

Change-Id: I515033f35e1ec1dc6cd11673c5ef5dfaff487984
2018-03-19 19:34:50 +00:00
Yabin Cui
414df3e583 Always set the sp reg to the cfa for DWARF.
There are a few places where it is assumed that this register is
set to the cfa value when interpreting DWARF information.

Add a testcase for unwinding art_quick_osr_stub on ARM.

Bug: 73954823

Test: Ran libunwindstack/libbacktrace unit tests.
Test: Random debuggerd -b of process on a hikey.
Test: Ran the 137 art test on host.
Change-Id: Ida6ccdc38c3cfeea6b57fe861a0cc127b150b790
(cherry picked from commit 11e96fe48a)
2018-03-19 11:11:19 -07:00
Christopher Ferris
b22451f178 Merge "Always set the sp reg to the cfa for DWARF." 2018-03-19 17:48:59 +00:00
David Srbecky
c407b0925d Merge "Don't include map name if the consumer doesn't want names." am: e8d1b75c0c
am: 1e352c0768

Change-Id: I712d708100121a48608951201c1ceea0b7212c7e
2018-03-19 11:51:12 +00:00
David Srbecky
1e352c0768 Merge "Don't include map name if the consumer doesn't want names."
am: e8d1b75c0c

Change-Id: I47c02409a273dded8562c728dfdf35b1c1b418a0
2018-03-19 11:41:02 +00:00
David Srbecky
e8d1b75c0c Merge "Don't include map name if the consumer doesn't want names." 2018-03-19 11:23:10 +00:00
David Srbecky
e62f4c4d4c Don't include map name if the consumer doesn't want names.
Simpleperf doesn't need the name, so avoid the string copies.

This seems to speed up simpleperf by around 20%.

Test: backtrace_test libunwindstack_test
Change-Id: Iba064c7078f7e5ecfc9d8539ba09c14495a52158
2018-03-19 11:20:00 +00:00
Bowgo Tsai
86a64a261e Merge "adb: checks device state when using adb disable-verity for AVB" into pi-dev
am: 8dca85f0c8  -s ours

Change-Id: I0f6cebbfd169276a449accf5bf7f3c747733509b
2018-03-17 08:16:32 +00:00
TreeHugger Robot
8dca85f0c8 Merge "adb: checks device state when using adb disable-verity for AVB" into pi-dev 2018-03-17 08:03:18 +00:00
Yabin Cui
11e96fe48a Always set the sp reg to the cfa for DWARF.
There are a few places where it is assumed that this register is
set to the cfa value when interpreting DWARF information.

Add a testcase for unwinding art_quick_osr_stub on ARM.

Bug: 73954823

Test: Ran libunwindstack/libbacktrace unit tests.
Test: Random debuggerd -b of process on a hikey.
Test: Ran the 137 art test on host.
Change-Id: Ida6ccdc38c3cfeea6b57fe861a0cc127b150b790
2018-03-16 23:38:07 -07:00
Jerry Zhang
7c97b17a59 Merge "adb: Remove usages of ENDPOINT_ALLOC" am: 4fa763290e
am: e15fb6b9d5

Change-Id: Ia7ee18f30fe755eb0c8bbcd844a847d0c5f9d473
2018-03-17 01:12:10 +00:00
Jerry Zhang
e15fb6b9d5 Merge "adb: Remove usages of ENDPOINT_ALLOC"
am: 4fa763290e

Change-Id: Ie04bfb59fba0ba3526c217355b492ffee7f351fe
2018-03-17 01:05:36 +00:00
Treehugger Robot
4fa763290e Merge "adb: Remove usages of ENDPOINT_ALLOC" 2018-03-17 00:50:54 +00:00
Mark Salyzyn
08475ad935 Merge changes If35518c0,I04bede0b am: bda0a3e637
am: bbdddfa030

Change-Id: I28e587ea4e0818fcdecea35f78d71c5e7b617605
2018-03-17 00:16:17 +00:00
Mark Salyzyn
a25c4e6292 Merge "bootstat: add support for regex in aliasReasons and powerkeys" am: f4be06450a
am: 4134f4c701

Change-Id: Iaf9c670ed74aa395455252bfda9a2b3933654d11
2018-03-17 00:15:01 +00:00
Josh Gao
dede0946e2 Merge "adb: add test for flushing socket data after a write failure." am: 32caa9870f
am: aef43182dc

Change-Id: Ibeae383dd6a926beeb1d453aa42d22d3837c6f95
2018-03-17 00:07:09 +00:00
Mark Salyzyn
bbdddfa030 Merge changes If35518c0,I04bede0b
am: bda0a3e637

Change-Id: I9561d358eb5e43b68011758009ae9bfcc19f5624
2018-03-16 23:22:59 +00:00
Mark Salyzyn
4134f4c701 Merge "bootstat: add support for regex in aliasReasons and powerkeys"
am: f4be06450a

Change-Id: I2a40009690329700770d7d5e9841d9080c5dba7f
2018-03-16 23:22:18 +00:00
Josh Gao
aef43182dc Merge "adb: add test for flushing socket data after a write failure."
am: 32caa9870f

Change-Id: I8f1e13f89d0ce42311ea517612488d0b5e46a543
2018-03-16 23:15:51 +00:00
Treehugger Robot
bda0a3e637 Merge changes If35518c0,I04bede0b
* changes:
  bootstat: add support for suppressing needle match on output
  bootstat: usb and rtc refinement
2018-03-16 22:48:51 +00:00
Mark Salyzyn
281932803d bootstat: add support for suppressing needle match on output
For aliasReasons allow one to optionally suppress needle for output
member using a <bang> (!) character prefix.

Test: boot_reason_test.sh
Bug: 63736262
Bug: 74595769
Change-Id: If35518c08cf909c6c78a16275e9d8dfd0ff839a9
2018-03-16 15:47:27 -07:00
Mark Salyzyn
8aa36c67f8 bootstat: usb and rtc refinement
For all known cases, if usb is present in the bootloader reason,
then it is actually reporting a cold,charger canonical boot reason.
This signifies that the device was powered down, and was woken
up by the charger being connected.

For all known cases, if rtc is present in the bootloader reason,
then it is actually reporting a cold,rtc canonical boot reason.
This signifies that the device was powered down, and was woken
up by the rtc clock.

Test: boot_reason_test.sh
Bug: 74595769
Bug: 63736262
Change-Id: I04bede0b7ccaa1b859943f7def93521a8f7b25c6
2018-03-16 15:47:27 -07:00
Treehugger Robot
f4be06450a Merge "bootstat: add support for regex in aliasReasons and powerkeys" 2018-03-16 22:44:57 +00:00
Josh Gao
31b5be69f4 adb: implement std::make_unique, start using it.
Add an implementation of std::make_unique for Windows, where we're
currently stuck with C++11, and switch some uses of new over to it.

Test: treehugger
Change-Id: I99b85f07754adda7c525243480c3e0bce9a25ce7
2018-03-16 15:35:52 -07:00
Josh Gao
5791e21697 base: export GetThreadId.
and stop using the incorrect (on Mac) version in adb..

Test: mma
Change-Id: If28f6c8d73b03db863be13ed88df81422c3aef87
2018-03-16 15:35:52 -07:00
Jerry Zhang
99499f1740 adb: Remove usages of ENDPOINT_ALLOC
All devices that previously used ENDPOINT_ALLOC
are on the new async io routines. None of the devices
using aio_compat have ENDPOINT_ALLOC so remove the
code to stop logging failures.

Fixes: 74213465
Test: adb works
Change-Id: I0c903eb76b006b6bcce48cec24f5353fa47cc128
(cherry picked from commit 9a1be3ad0e)
2018-03-16 15:33:26 -07:00
Josh Gao
32caa9870f Merge "adb: add test for flushing socket data after a write failure." 2018-03-16 22:18:43 +00:00
Mark Salyzyn
d9dde08660 Merge "bootstat: alias underline to space in bit error rate handling" am: 40858e95b6
am: ee3c8e64dc

Change-Id: I9f25ad71f8abfbd39c9a0055e2c96c9024224eca
2018-03-16 21:48:01 +00:00
Mark Salyzyn
7ad1c9e388 Merge "bootstat: comment out duplicate entries in kBootReasonMap" am: 1408ceec4f
am: 07e4e9b5fc

Change-Id: If9f7c72d286b926253602f141245ccf9385e23d4
2018-03-16 21:44:12 +00:00
Mark Salyzyn
ee3c8e64dc Merge "bootstat: alias underline to space in bit error rate handling"
am: 40858e95b6

Change-Id: I8094305ff1b9610f8726d62476a5d5890f024618
2018-03-16 21:32:27 +00:00
Mark Salyzyn
07e4e9b5fc Merge "bootstat: comment out duplicate entries in kBootReasonMap"
am: 1408ceec4f

Change-Id: Ief59024678937b79200daeef5d9a1a70be43b3f1
2018-03-16 21:31:56 +00:00
Mark Salyzyn
057ba5845c Merge "bootstat: 3.18 kernel does not report "SysRq : Trigger a crash"" am: 5e2b2681ef
am: a2b4750771

Change-Id: Id6dc67787ae80e7ca043258cc7dd8e498f8fe0c5
2018-03-16 21:28:23 +00:00
Colin Cross
53e8351eb2 Merge "Remove test_suites: ["vts"] from memunreachable_binder_test" am: c8e757b6dd
am: 41e04f033f

Change-Id: Ib917f1c176e8ff064223c6b50353d9ded3b6cd8a
2018-03-16 21:25:47 +00:00
Benedict Wong
061dbd188d Merge "Set SPI Allocation Timeout to One Hour" am: 78ca1fecef
am: 3c7b751619

Change-Id: I9c8ca2e5019a380fc45621b148c9b2e950d01987
2018-03-16 21:10:28 +00:00
Mark Salyzyn
9ac619bb4d Merge "bootstat: test: regression from "Fix perfomance degredation from BootSequence atom"" am: 450b1afcb5
am: a6c1ddd262

Change-Id: I7a774ac1e0782cde687ca3d3202cf19653ad05c4
2018-03-16 20:58:34 +00:00
Mark Salyzyn
a2b4750771 Merge "bootstat: 3.18 kernel does not report "SysRq : Trigger a crash""
am: 5e2b2681ef

Change-Id: I9c3ad26c9c1a385aa2fe5bb428af5ff5c2221e00
2018-03-16 20:56:19 +00:00
Colin Cross
41e04f033f Merge "Remove test_suites: ["vts"] from memunreachable_binder_test"
am: c8e757b6dd

Change-Id: Ib5ca8bdf24e798210d417edd84449dcec52d75cd
2018-03-16 20:55:44 +00:00
Benedict Wong
3c7b751619 Merge "Set SPI Allocation Timeout to One Hour"
am: 78ca1fecef

Change-Id: I1919dd54d7c64e8a58f6397145e605ec1eb8c356
2018-03-16 20:43:23 +00:00
Mark Salyzyn
a6c1ddd262 Merge "bootstat: test: regression from "Fix perfomance degredation from BootSequence atom""
am: 450b1afcb5

Change-Id: Ic9c63c3dcbd8b4345c1d3d4bb85b389f0258c39e
2018-03-16 20:39:15 +00:00
Treehugger Robot
40858e95b6 Merge "bootstat: alias underline to space in bit error rate handling" 2018-03-16 19:46:37 +00:00
Treehugger Robot
1408ceec4f Merge "bootstat: comment out duplicate entries in kBootReasonMap" 2018-03-16 19:35:24 +00:00
Treehugger Robot
5e2b2681ef Merge "bootstat: 3.18 kernel does not report "SysRq : Trigger a crash"" 2018-03-16 18:49:49 +00:00