Elliott Hughes
3c03125f14
Merge "init start time tracking." am: 601bf9e7c9
...
am: eefaa1f250
Change-Id: I48d8ec69d0f6cad1ffbd152e253ae4ff4d0eaec9
2016-11-14 21:41:55 +00:00
Elliott Hughes
eefaa1f250
Merge "init start time tracking."
...
am: 601bf9e7c9
Change-Id: Idd707d4694a4339e26884fe72b8f0c08c4100daf
2016-11-14 21:34:24 +00:00
Elliott Hughes
601bf9e7c9
Merge "init start time tracking."
2016-11-14 21:21:00 +00:00
Christopher Ferris
7c1a4addbf
Merge "Revert "Use process_vm_readv to read memory."" am: f96e7446fd
...
am: 430f61fd83
Change-Id: Iff2ef0734678333b303ec88137956c7b74e8d4f3
2016-11-14 20:35:03 +00:00
Christopher Ferris
430f61fd83
Merge "Revert "Use process_vm_readv to read memory.""
...
am: f96e7446fd
Change-Id: Ib0a7f77fa7e3ed9ab2653e87e274d1a3eb032ab7
2016-11-14 20:27:33 +00:00
Christopher Ferris
f96e7446fd
Merge "Revert "Use process_vm_readv to read memory.""
2016-11-14 20:14:18 +00:00
Keun-young Park
ca2714b02a
Merge "fix swapped min / max in priority parsing" am: 557359863c
...
am: ec2d5d8f04
Change-Id: I900b742d6edf9f25039a4997e6e2d2f34849786a
2016-11-13 04:59:29 +00:00
Keun-young Park
ec2d5d8f04
Merge "fix swapped min / max in priority parsing"
...
am: 557359863c
Change-Id: Ie8bbb5add66b56ff8641f26a081fe185204b7cc1
2016-11-13 04:52:29 +00:00
Treehugger Robot
557359863c
Merge "fix swapped min / max in priority parsing"
2016-11-13 04:44:43 +00:00
Elliott Hughes
9605a945f7
init start time tracking.
...
With this change, init sets a property "init.start" to show the
CLOCK_BOOTTIME time at which init itself started, and for each service
an "init.svc.<name>.start" property to show the CLOCK_BOOTTIME time at
which that service was most recently started.
These times can be used by tools like bootstat to track boot time.
As part of this change, move init over to std::chrono. Also, rather than
make the command-line argument handling more complex, I've switched to
using an environment variable for communication between first- and
second-stage init, and added another environment variable to pass the
start time of the first stage through to the second stage.
Bug: http://b/32780225
Test: manual
Change-Id: Ia65a623e1866ea688b9a5433d6507926ce301dfe
2016-11-12 11:17:40 -08:00
Keun-young Park
dd34ca45ea
fix swapped min / max in priority parsing
...
- This error led into not handling highest priority,
which made zygote's priority boost no-op
bug: 32718256
Test: check init log during bootup
Change-Id: I959eb94912a9c1d95bfdb98ee675fdd12cf85699
2016-11-11 18:32:13 -08:00
Josh Gao
64ef152173
Merge "crasher: add option to wait for input before crashing." am: 84db3f19bc
...
am: e1a06eef2a
Change-Id: I705780410cd897150e560e584ddee082ede2a201
2016-11-12 01:24:06 +00:00
Josh Gao
e1a06eef2a
Merge "crasher: add option to wait for input before crashing."
...
am: 84db3f19bc
Change-Id: I448bf3e527cd7435f650345492a9df1711b91048
2016-11-12 01:17:04 +00:00
Treehugger Robot
84db3f19bc
Merge "crasher: add option to wait for input before crashing."
2016-11-12 01:04:41 +00:00
Josh Gao
100ce3910d
crasher: add option to wait for input before crashing.
...
This will be useful for tests that want to do things with crasher's pid
before it crashes.
Bug: http://b/30705528
Test: crasher wait-abort; crasher wait-thread-abort
Change-Id: I8ba826094dc304d6cd0e6ab088e5cfdb35d2007b
2016-11-11 14:29:13 -08:00
Christopher Ferris
fdb02f8b9c
Revert "Use process_vm_readv to read memory."
...
This reverts commit 279843e139 .
Bug: 32806783
Change-Id: I61df26d979a8139a571ff5a6442fb5499ca20547
Test: Verified that the stack and read data works with the revert.
2016-11-10 23:19:30 +00:00
Vineela Tummalapalli
5cd910acfc
Merge "Implement Reboot bootloader via bootloader_message" am: e759c83bde
...
am: d1b560c6f9
Change-Id: Ie57df293a41803c62cc8a9226c238047236b4592
2016-11-10 02:58:22 +00:00
Vineela Tummalapalli
d1b560c6f9
Merge "Implement Reboot bootloader via bootloader_message"
...
am: e759c83bde
Change-Id: Id0a0e9e9c10f3df206138f297d2acafa87dc4ebf
2016-11-10 02:52:23 +00:00
Treehugger Robot
e759c83bde
Merge "Implement Reboot bootloader via bootloader_message"
2016-11-10 02:43:08 +00:00
Wei Wang
0d946cb931
Merge "init: warn slow action" am: 5782f72711
...
am: d26107d939
Change-Id: Ic47f75edabca831cbf3c18e575f83378722d2eb2
2016-11-10 01:07:11 +00:00
Wei Wang
d26107d939
Merge "init: warn slow action"
...
am: 5782f72711
Change-Id: Ia9c2f08e990d70f9afbe17efbb2646717e8d58f7
2016-11-10 01:01:14 +00:00
Treehugger Robot
5782f72711
Merge "init: warn slow action"
2016-11-10 00:53:04 +00:00
Tianjie Xu
6be7829e4e
Merge "Start update_verifier in cache group" am: 8cbc89527c
...
am: 081e1f3b13
Change-Id: If8efc4d2f0e88491608994c94763b35e9c7624f7
2016-11-10 00:17:12 +00:00
Tianjie Xu
081e1f3b13
Merge "Start update_verifier in cache group"
...
am: 8cbc89527c
Change-Id: I965a5deefdebf24fc61a203362bed46da7d6d9dc
2016-11-10 00:11:44 +00:00
Tianjie Xu
8cbc89527c
Merge "Start update_verifier in cache group"
2016-11-09 23:52:52 +00:00
Wei Wang
b1a309ac1f
init: warn slow action
...
Slow action that takes longer than 50ms will be warned to user
Test: grep init log
Bug: 32712851
Change-Id: I3a6a881a8dee1807270343b511a47c76dd230392
2016-11-09 15:19:11 -08:00
Mark Salyzyn
d65b7bc4d8
Merge "liblog: android_closeEventTagMap pointer check" am: 2422d55d2b
...
am: 2492336e0e
Change-Id: Iaf2055f84c8afe1468a17c3c00d6e399aa6c2a33
2016-11-09 19:59:38 +00:00
Tianjie Xu
c488087aa0
Start update_verifier in cache group
...
Start update_verifier in cache group to avoid dac_override
Bug: 30020920
Change-Id: I227b4a0e1c07e7b9bf209b432e9db02275ffe660
Test: mma
(cherry picked from commit 1e4635f0a8 )
2016-11-09 11:57:26 -08:00
Mark Salyzyn
2492336e0e
Merge "liblog: android_closeEventTagMap pointer check"
...
am: 2422d55d2b
Change-Id: I4959f76a5a94fdc2f24bf988c9c036939f67fa4d
2016-11-09 19:53:40 +00:00
Treehugger Robot
2422d55d2b
Merge "liblog: android_closeEventTagMap pointer check"
2016-11-09 19:47:50 +00:00
Mark Salyzyn
53e9fc7915
liblog: android_closeEventTagMap pointer check
...
Followup to c/278768 where failure to open tag map can
result in segment violation in android_closeEventTagMap.
Add check for pointer value = -1 to bypass call to close.
Test: gTest liblog-unit-tests, logcat-unit-tests & logd-unit-tests
Bug: 30963384
Bug: 31456426
Change-Id: I20547e55d7e29682fde4538bc1fc6d83b4535d49
2016-11-09 10:16:38 -08:00
Mark Salyzyn
a764e40bf4
Merge "init: errno handling in create_file" am: bccb521c6b
...
am: 900b5027ac
Change-Id: I4f84c30696008048a96a5b923138318ac4bdce6f
2016-11-09 16:15:27 +00:00
Mark Salyzyn
900b5027ac
Merge "init: errno handling in create_file"
...
am: bccb521c6b
Change-Id: Ice050c9caeb6c5b53c47c00007b68248fcd4070a
2016-11-09 16:08:54 +00:00
Treehugger Robot
bccb521c6b
Merge "init: errno handling in create_file"
2016-11-09 16:01:48 +00:00
Mark Salyzyn
db69107de6
init: errno handling in create_file
...
Save errno before resetting global context. Use unique_fd.
Test: gTest init_tests
Bug: 32450474
Change-Id: If45eeaebc3ae379f84bf3ffa3c40194043191854
2016-11-09 08:00:17 -08:00
Vineela Tummalapalli
039734c7de
Implement Reboot bootloader via bootloader_message
...
- Write reboot bootloader message to misc
- Clarify naming for reboot to recovery
BUG: https://issuetracker.google.com/issues/32474515
Change-Id: I4e42509bfcf572e37c8fc070d6571afe406a48b6
Signed-off-by: Vineela Tummalapalli <vineela.tummalapalli@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Reviewed-on: https://android.intel.com/548494
2016-11-08 16:45:03 -08:00
Jin Qian
90d1339bc9
Merge "fs_mgr: fix clang static analyzer warning" am: 847670437b -s ours
...
am: a10dcbdf6c
Change-Id: Ie17f2a25770fa5ed2309052ebe09f50dbc15ddc3
2016-11-08 21:54:17 +00:00
Jin Qian
a10dcbdf6c
Merge "fs_mgr: fix clang static analyzer warning"
...
am: 847670437b -s ours
Change-Id: I28baba7da55de12c2e6ef84cfd961b833cffe815
2016-11-08 21:48:48 +00:00
Treehugger Robot
847670437b
Merge "fs_mgr: fix clang static analyzer warning"
2016-11-08 21:36:53 +00:00
Jin Qian
905948ed74
fs_mgr: fix clang static analyzer warning
...
Pointer from strdup is lost hence triggers mem leak warning from
clang, since ptr returned from basename may not point to start of
duplicated string any more.
Switch to use gnu version of basename which doesn't modify input
string so that strdup is no longer necessary.
Bug: 27126348
Change-Id: Iadb5cf343437a1e27e588ee067b084897633ea07
Merged-In: I937a68c01c223230932c932bffdd35da6503c3c4
2016-11-08 20:07:31 +00:00
Mark Salyzyn
9292815cea
Merge changes I93a1c003,I283fec89 am: e133feb6b4
...
am: 52b299b4c8
Change-Id: I4aa88d132f77c1b65289ee1d4e3d08d61ada7402
2016-11-07 22:52:12 +00:00
Mark Salyzyn
3bcdc007c1
liblog: logcat: logprint support -v descriptive am: 4fd0507b20
...
am: cacd9dc244
Change-Id: I83cbc090cfbcfba90f0e11e62a29db940eaf75bf
2016-11-07 22:52:07 +00:00
Mark Salyzyn
68513d18d6
liblog: add android_lookupEventFormat_len am: 530711b39e
...
am: 494a394545
Change-Id: I3d4ec3de6bf216dbb78e31b54ab9f667b804e15d
2016-11-07 22:52:02 +00:00
Mark Salyzyn
52b299b4c8
Merge changes I93a1c003,I283fec89
...
am: e133feb6b4
Change-Id: I840cf1b37e2e1f69992bb38d0dffb3fd8c615f23
2016-11-07 22:46:46 +00:00
Mark Salyzyn
cacd9dc244
liblog: logcat: logprint support -v descriptive
...
am: 4fd0507b20
Change-Id: Idd4379d83b1d2f708451e1f2dd21cd40bfa49811
2016-11-07 22:46:45 +00:00
Mark Salyzyn
494a394545
liblog: add android_lookupEventFormat_len
...
am: 530711b39e
Change-Id: I62a33b249df6afdc4405a89b3f60a51a2897f98e
2016-11-07 22:46:39 +00:00
Mark Salyzyn
e133feb6b4
Merge changes I93a1c003,I283fec89
...
* changes:
liblog: logcat: logprint support -v descriptive
liblog: add android_lookupEventFormat_len
2016-11-07 22:42:08 +00:00
Dimitry Ivanov
08aa99d622
Merge "Allow different namespace types for different classloaders" am: a61c48d5fd
...
am: 9b1d1cb923
Change-Id: I6832b42ba46681801724838c97951f92967c259c
2016-11-07 18:12:16 +00:00
Dimitry Ivanov
9b1d1cb923
Merge "Allow different namespace types for different classloaders"
...
am: a61c48d5fd
Change-Id: Idcf998f47e8a09fbe1e56a898f23b2c82a75aa44
2016-11-07 18:08:06 +00:00
Dimitry Ivanov
a61c48d5fd
Merge "Allow different namespace types for different classloaders"
2016-11-07 18:00:40 +00:00