Commit graph

34283 commits

Author SHA1 Message Date
Mark Salyzyn
16d6ed1845 Merge "liblog: add bool to android_log_event_list"
am: d105aa8496

Change-Id: I3b376d3d5c89fd16c4e5eac5afdb74981f372ee1
2017-06-05 17:39:47 +00:00
Treehugger Robot
d105aa8496 Merge "liblog: add bool to android_log_event_list" 2017-06-05 17:31:36 +00:00
Mark Salyzyn
e09e9a503e liblog: add bool to android_log_event_list
Test: compile
Bug: 62241642
Change-Id: I977702456417ceec21be96ff8463a5ed047560ec
2017-06-05 07:50:13 -07:00
Christopher Ferris
e67232e13e Merge "Use demangle for function names." am: daa6602a86 am: 7f717dfc83 am: 56b004c350
am: b5d73cffef

Change-Id: Ifdc5cdc6eb2e5adb49f7c0c1f2d15c34f9e6517d
2017-06-02 22:26:28 +00:00
Christopher Ferris
b5d73cffef Merge "Use demangle for function names." am: daa6602a86 am: 7f717dfc83
am: 56b004c350

Change-Id: I04c96c44d6dd72ab7acd8d8f4a76534e0d35e31b
2017-06-02 22:22:49 +00:00
Christopher Ferris
56b004c350 Merge "Use demangle for function names." am: daa6602a86
am: 7f717dfc83

Change-Id: I1d67a1f2395962c5fda76394447a2deb47481259
2017-06-02 22:19:15 +00:00
Christopher Ferris
7f717dfc83 Merge "Use demangle for function names."
am: daa6602a86

Change-Id: I045673de2c9ac70cdbe65ef56e0ee7b057d88e93
2017-06-02 22:16:45 +00:00
Christopher Ferris
daa6602a86 Merge "Use demangle for function names." 2017-06-02 22:10:02 +00:00
Tom Cherry
2d707e0955 Merge "ueventd: parallelize uevent handling" am: 70431b1f22 am: ed75c00f72 am: 27fc35ace4
am: 573287de3a

Change-Id: I3e5917ff58df1d59ae8ed7bf75bf5fa01eb7f137
2017-06-02 22:06:07 +00:00
Tom Cherry
573287de3a Merge "ueventd: parallelize uevent handling" am: 70431b1f22 am: ed75c00f72
am: 27fc35ace4

Change-Id: Ib243f67c5be0822805c457106f5b8ab7cd013989
2017-06-02 22:02:42 +00:00
Tom Cherry
27fc35ace4 Merge "ueventd: parallelize uevent handling" am: 70431b1f22
am: ed75c00f72

Change-Id: I6824f5d6330f7eac9b7e2421ae6e8f862a509a3f
2017-06-02 22:00:12 +00:00
Tom Cherry
ed75c00f72 Merge "ueventd: parallelize uevent handling"
am: 70431b1f22

Change-Id: Iddec3d673b1f18bc4b8520aafa01c22e0bcbabbf
2017-06-02 21:55:42 +00:00
Tom Cherry
70431b1f22 Merge "ueventd: parallelize uevent handling" 2017-06-02 21:47:57 +00:00
Tom Cherry
c583305ed7 ueventd: parallelize uevent handling
fork() subprocesses to handle uevents in parallel.

This reduces coldboot time on bullhead from ~446ms to ~230ms.
This reduces coldboot time on sailfish from ~690ms to ~360ms.
This reduces coldboot time on ryu from ~187ms to ~122ms.

Bug: 33785894

Test: boot bullhead x40, observe no major differences in /dev and /sys
Test: boot sailfish x40, observe no major differences in /dev and /sys
Test: boot ryu x40, observe no major differences in /dev and /sys
Test: boottime tests on bullhead and sailfish
Test: init unit tests

Change-Id: Ie2f63e000b8af78d187477d31fe109f20304d749
2017-06-02 21:45:56 +00:00
Christopher Ferris
7d0aea91c9 Use demangle for function names.
Bug: 62141808

Test: Ran unit tests, ran debuggerd -b on android processes.
Change-Id: I40f341bcb2b35dd0a020d245d6b6f2ed2df65481
2017-06-02 10:10:24 -07:00
Christopher Ferris
9cc0844c87 Merge "Fix handling of _ZLXX." am: 9b537f24bd am: a11394356c am: 930e0c3ad4
am: 1109ce9b9f

Change-Id: I5eb6cafb02128a75152cc7dcfe818f90a43b0a4f
2017-06-02 15:19:05 +00:00
Christopher Ferris
ef587c9c30 Merge "Change RegsTmpl to RegsImpl." am: 2065a741cd am: d34b599ec8 am: a32945f71a
am: d1019c33d7

Change-Id: Ia5aa23b0da093032ddff0b182b60b32706ad76c4
2017-06-02 15:18:43 +00:00
Christopher Ferris
1109ce9b9f Merge "Fix handling of _ZLXX." am: 9b537f24bd am: a11394356c
am: 930e0c3ad4

Change-Id: I13bf64e4979c37fde8d903540c69deb028a97cbd
2017-06-02 15:15:34 +00:00
Christopher Ferris
d1019c33d7 Merge "Change RegsTmpl to RegsImpl." am: 2065a741cd am: d34b599ec8
am: a32945f71a

Change-Id: If5f8b33dbeff59115888b0964c22e21a65ad7d06
2017-06-02 15:15:15 +00:00
Christopher Ferris
930e0c3ad4 Merge "Fix handling of _ZLXX." am: 9b537f24bd
am: a11394356c

Change-Id: I8c9b52fd9c25db639b36709bbfc95dc4470e56bd
2017-06-02 15:12:06 +00:00
Christopher Ferris
a32945f71a Merge "Change RegsTmpl to RegsImpl." am: 2065a741cd
am: d34b599ec8

Change-Id: Ic0c1ad6466a548be140a122e7eb28884100fbb75
2017-06-02 15:11:44 +00:00
Christopher Ferris
a11394356c Merge "Fix handling of _ZLXX."
am: 9b537f24bd

Change-Id: I19aaab318b88fcb2289eaa7bc1fe636072c5bc39
2017-06-02 15:09:38 +00:00
Christopher Ferris
d34b599ec8 Merge "Change RegsTmpl to RegsImpl."
am: 2065a741cd

Change-Id: Ib4050f99b4f452ed26aa41be0ca137656f610a7f
2017-06-02 15:09:14 +00:00
Christopher Ferris
9b537f24bd Merge "Fix handling of _ZLXX." 2017-06-02 15:06:08 +00:00
Christopher Ferris
2065a741cd Merge "Change RegsTmpl to RegsImpl." 2017-06-02 15:05:29 +00:00
Josh Gao
9e13521ecb debuggerd_client: increase pipe buffer size to max. am: a1c9e943c0 -s ours
am: 35708f6042  -s ours

Change-Id: I857b3ee0f1fbc7f42193778fefff2872e3ded3a5
2017-06-02 04:50:44 +00:00
Josh Gao
51314d1b53 crash_dump: don't notify ActivityManager if it crashed. am: 8126d2de3e -s ours
am: 324638a7ea  -s ours

Change-Id: I910827e1ed5063ac34300c6164379ff70a82999e
2017-06-02 04:50:36 +00:00
Josh Gao
9a37c94ed6 crash_dump: clear the signal mask. am: 615d939974 -s ours
am: 0d74a59261  -s ours

Change-Id: I97f8e065b347c70a0eab5b962689f835e99f0aec
2017-06-02 04:50:28 +00:00
Josh Gao
35708f6042 debuggerd_client: increase pipe buffer size to max.
am: a1c9e943c0  -s ours

Change-Id: Ia09d99ea6516d5187f38ad5d5acf3b11dd1ae64f
2017-06-02 04:44:14 +00:00
Josh Gao
324638a7ea crash_dump: don't notify ActivityManager if it crashed.
am: 8126d2de3e  -s ours

Change-Id: I200746553a85103f10b1819d7cabc5dbc92762e2
2017-06-02 04:44:00 +00:00
Josh Gao
0d74a59261 crash_dump: clear the signal mask.
am: 615d939974  -s ours

Change-Id: Id6cee06d89ba1a6093744e0b79ee3a22dce0426e
2017-06-02 04:43:53 +00:00
Josh Gao
f2bd9a1b6f Merge "adb: reunregress waiting for device on start-server." am: 72076d1aa7 am: 08a70ac6e5 am: 986ba5bbbb
am: 86aeea69f2

Change-Id: Icfb77a5a596ebd9207793d9c7929bebb992de40d
2017-06-02 00:58:23 +00:00
Christopher Ferris
65bf99b5b5 Merge "Add DwarfSection classes." am: 6a80c3e1a8 am: 5659a2b6fe am: 1fc59234bf
am: 36fc37106c

Change-Id: Ib63707cf99f6f5d803757d3b45a2e9d3e512256d
2017-06-02 00:57:57 +00:00
Christopher Ferris
7b8e467192 Change RegsTmpl to RegsImpl.
Also clang-format modified Regs.cpp slightly.

Bug: 23762183

Test: Built and ran unit tests.
Change-Id: I1c7c1b01974ee3f35059c42b8e2aef24d46c81a7
2017-06-01 17:56:46 -07:00
Christopher Ferris
4504bba7d0 Fix handling of _ZLXX.
Mangled names of the form _ZLXX, where XX is a number is now properly
demangled.

Test: Ran new unit tests.
Change-Id: I89fbb36d2294c46da428c75bd1a2f39f69ac4b43
2017-06-01 17:37:09 -07:00
Josh Gao
86aeea69f2 Merge "adb: reunregress waiting for device on start-server." am: 72076d1aa7 am: 08a70ac6e5
am: 986ba5bbbb

Change-Id: I5db3903d12a686394f8ce94078b202a3a52d2d71
2017-06-02 00:34:04 +00:00
Christopher Ferris
36fc37106c Merge "Add DwarfSection classes." am: 6a80c3e1a8 am: 5659a2b6fe
am: 1fc59234bf

Change-Id: Ic6ce7179ebd0b93bd1ef143b60a8d90b38ba4997
2017-06-02 00:28:41 +00:00
Josh Gao
986ba5bbbb Merge "adb: reunregress waiting for device on start-server." am: 72076d1aa7
am: 08a70ac6e5

Change-Id: Ie379f49929c8b11544328694fd1a438e63da453d
2017-06-02 00:27:49 +00:00
Josh Gao
08a70ac6e5 Merge "adb: reunregress waiting for device on start-server."
am: 72076d1aa7

Change-Id: Ie00b2258e92e93b45e4c859cbec11a374b4f7557
2017-06-02 00:26:14 +00:00
Christopher Ferris
1fc59234bf Merge "Add DwarfSection classes." am: 6a80c3e1a8
am: 5659a2b6fe

Change-Id: Ic1de0d9f88febb87c2485d964a85071b676ebde3
2017-06-02 00:25:54 +00:00
Christopher Ferris
5659a2b6fe Merge "Add DwarfSection classes."
am: 6a80c3e1a8

Change-Id: I353f0d1fb1c3203134e8590a1ef7267407240bed
2017-06-02 00:22:25 +00:00
Treehugger Robot
72076d1aa7 Merge "adb: reunregress waiting for device on start-server." 2017-06-02 00:20:31 +00:00
Christopher Ferris
6a80c3e1a8 Merge "Add DwarfSection classes." 2017-06-02 00:15:13 +00:00
Josh Gao
a1c9e943c0 debuggerd_client: increase pipe buffer size to max.
If a process tries to dump itself (e.g. system_server during ANRs),
crash_dump will block trying to write to its pipe if it's not
sufficiently large. Increase the pipe size to the max, and add a test
to make sure that it's always at least 1MB (the default value).

Bug: http://b/38427757
Test: debuggerd_test
Merged-In: Iddb0cb1e5ce9e687efa9e94c2748a1edfe09f119
Change-Id: Iddb0cb1e5ce9e687efa9e94c2748a1edfe09f119
(cherry picked from commit 5675f3c321)
2017-06-01 16:26:23 -07:00
Josh Gao
8126d2de3e crash_dump: don't notify ActivityManager if it crashed.
Bug: http://b/38427757
Test: killall -ABRT system_server, plus added logging
Merged-In: Ic15e0b0870b1ec08a2f165ad0e5356afed02eece
Change-Id: Ic15e0b0870b1ec08a2f165ad0e5356afed02eece
(cherry picked from commit b0e51e388b)
2017-06-01 16:26:10 -07:00
Josh Gao
615d939974 crash_dump: clear the signal mask.
crash_dump inherits its signal mask from the thread that forked it,
which always has all of its signals blocked, now that sigchain respects
sa_mask.

Manually clear the signal mask, and reduce the timeout to a
still-generous 2 seconds.

Bug: http://b/38427757
Test: manually inserted sleep in crash_dump
Merged-In: If1c9adb68777b71fb19d9b0f47d6998733ed8f52
Change-Id: If1c9adb68777b71fb19d9b0f47d6998733ed8f52
(cherry picked from commit e740250b9d)
2017-06-01 16:25:39 -07:00
Josh Gao
f89b81603d Merge changes Iddb0cb1e,Ic15e0b08,If1c9adb6 am: 2b17afc68d am: f1477d7f43 am: e8f700611e
am: ee634e478c

Change-Id: I3817bafd8c00b118c2badc83b7d3598abee43482
2017-06-01 22:05:22 +00:00
Josh Gao
ee634e478c Merge changes Iddb0cb1e,Ic15e0b08,If1c9adb6 am: 2b17afc68d am: f1477d7f43
am: e8f700611e

Change-Id: Idc9bc1ea27eabd51853b254141177407d607115d
2017-06-01 21:59:03 +00:00
Josh Gao
e8f700611e Merge changes Iddb0cb1e,Ic15e0b08,If1c9adb6 am: 2b17afc68d
am: f1477d7f43

Change-Id: Ic37df35542dcb27b88401bb4efa59cb2113dbbd7
2017-06-01 21:56:28 +00:00
Josh Gao
f1477d7f43 Merge changes Iddb0cb1e,Ic15e0b08,If1c9adb6
am: 2b17afc68d

Change-Id: I893f4c95143638598fbc4ef48e6717d1616e3688
2017-06-01 21:53:29 +00:00