Commit graph

36287 commits

Author SHA1 Message Date
Elliott Hughes
b0269508d9 Merge "libsparse: fix building on linux host." am: 716488f53f
am: bea330844a

Change-Id: I0fd4102d17e3243d74761505326124a2d9e7f4d6
2017-10-12 15:31:24 +00:00
Elliott Hughes
bea330844a Merge "libsparse: fix building on linux host."
am: 716488f53f

Change-Id: Ic4cdc8a08244ecd8ad4c9ced1d758e3f90142fd4
2017-10-12 15:27:32 +00:00
Elliott Hughes
716488f53f Merge "libsparse: fix building on linux host." 2017-10-12 15:18:40 +00:00
Christopher Ferris
b626ce6686 Merge "Add support for boolean literals." am: 63a0008df7
am: 008f11fb5e

Change-Id: I43f85bff0bc7973cea368f8fd873498cf0bb1e32
2017-10-12 01:38:44 +00:00
Christopher Ferris
008f11fb5e Merge "Add support for boolean literals."
am: 63a0008df7

Change-Id: I050cc47929c0152f05832bbe54a12aa45f93766a
2017-10-12 01:33:49 +00:00
Christopher Ferris
63a0008df7 Merge "Add support for boolean literals." 2017-10-12 01:20:07 +00:00
Dan Albert
2ad44ea5fd Merge "Add missing includes." am: 0c24d6ccea
am: d166904f30

Change-Id: I0b87b789f2f07e83dd3b39fee3f09dfeb03115ce
2017-10-12 00:18:31 +00:00
Dan Albert
d166904f30 Merge "Add missing includes."
am: 0c24d6ccea

Change-Id: I4e59965bbc8d9a42b5e7feda56ab289a5c5294b0
2017-10-12 00:16:06 +00:00
Treehugger Robot
0c24d6ccea Merge "Add missing includes." 2017-10-12 00:06:30 +00:00
Dan Albert
1055d1a453 Merge "Add missing includes." am: 81dd96c0da
am: 5436974d21

Change-Id: I65b5c9ca872c96e3475c7d22950a5664e8e273c1
2017-10-11 22:50:14 +00:00
Dan Albert
5436974d21 Merge "Add missing includes."
am: 81dd96c0da

Change-Id: I6b54545c3eb6322fb5da9f2ef85089fe632cb5f1
2017-10-11 22:30:54 +00:00
Christopher Ferris
0523275893 Add support for boolean literals.
Bug: 67678053

Test: Passes new unit tests.
Change-Id: I9d0ede56aa5d7071e682f366870148320545406e
2017-10-11 15:23:45 -07:00
Treehugger Robot
81dd96c0da Merge "Add missing includes." 2017-10-11 22:17:38 +00:00
Mark Salyzyn
7d47f2f99c Merge "bootstat: test: inject ro.boot.bootreason values" am: 3bc8d4529e
am: 4f9ba3f0ba

Change-Id: I27aa3e4ebe9cd49f48834bdcc7a53ef656f22c57
2017-10-11 21:14:40 +00:00
Mark Salyzyn
4f9ba3f0ba Merge "bootstat: test: inject ro.boot.bootreason values"
am: 3bc8d4529e

Change-Id: I6295d929d3042f9d89f17abdb80f4564710ebe0a
2017-10-11 21:06:39 +00:00
Mark Salyzyn
3bc8d4529e Merge "bootstat: test: inject ro.boot.bootreason values" 2017-10-11 20:52:46 +00:00
Mark Salyzyn
7c4e845951 Merge "bootstat: test: refine reported test durations" am: bb52cbf35d
am: 9d00f0079d

Change-Id: If393cf4164f5cc5d24ac290c1258157f50da698e
2017-10-11 20:51:16 +00:00
Mark Salyzyn
16a15f5666 Merge "bootstat: Add some reserved sys.boot.reason values to enumeration" am: 444e3a9f74
am: bd7bbf853a

Change-Id: Idedc1989abbd601c16699bd7418dc863f4a9d90d
2017-10-11 20:49:30 +00:00
Mark Salyzyn
9a3870490a bootstat: test: inject ro.boot.bootreason values
Adding a set of automated engineering unit tests with a strict list of
prerequisites.  Not meant for "user" builds.  Must have a crafted
bootloader that does not set the boot reason.  Only works on platforms
where the bootloader either by accident or specifically does not set
the ro.boot.bootreason via kernel command line configuration
androidboot.bootreason=.  If the tests do not have the prerequisites,
the test will report success, but with protest.

These new tests should work on current Hikey and Hikey960 bootloaders
but could very well become obsolete if those platform bootloaders
start setting the boot reason.

We do not want a platform solution as it could allow a third party to
override the bootloader boot reason.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: I1793184a8484b83e1d9077475bc65af9816dadf7
2017-10-11 13:48:33 -07:00
Mark Salyzyn
9d00f0079d Merge "bootstat: test: refine reported test durations"
am: bb52cbf35d

Change-Id: I91c3a4fd36126033e70688f5fbbd3fa20015ad3e
2017-10-11 20:46:25 +00:00
Mark Salyzyn
bd7bbf853a Merge "bootstat: Add some reserved sys.boot.reason values to enumeration"
am: 444e3a9f74

Change-Id: I0e0bfcd1e351e58f272a51c6c97bcd7cc52e32a1
2017-10-11 20:45:04 +00:00
Mark Salyzyn
bb52cbf35d Merge "bootstat: test: refine reported test durations" 2017-10-11 20:33:05 +00:00
Dmitry Shmidt
825915bfde Merge "console: Add setenv HOSTNAME console" am: d2c66b31a0
am: 5884f608d9

Change-Id: I0ce00d53c7ef176e920d0a2dc3c9136c20383f3d
2017-10-11 20:32:34 +00:00
Mark Salyzyn
444e3a9f74 Merge "bootstat: Add some reserved sys.boot.reason values to enumeration" 2017-10-11 20:32:00 +00:00
Dan Albert
f0d3f6716a Add missing includes.
Test: mma
Bug: None
Merged-In: I8a3390d186aec73f55ae2be2c7b4b2deffed810f
Change-Id: I8a3390d186aec73f55ae2be2c7b4b2deffed810f
2017-10-11 13:31:43 -07:00
Dmitry Shmidt
5884f608d9 Merge "console: Add setenv HOSTNAME console"
am: d2c66b31a0

Change-Id: I85addec989872b9e66f0e68c4fea20b969a1eb25
2017-10-11 20:28:49 +00:00
Treehugger Robot
d2c66b31a0 Merge "console: Add setenv HOSTNAME console" 2017-10-11 20:22:48 +00:00
Dan Albert
c38057a603 Add missing includes.
Test: mma
Bug: None
Change-Id: I5ee2d09eeac2b4e2056719498916cbdfb79725d2
2017-10-11 13:19:09 -07:00
James Hawkins
1d617f8325 Merge "bootstat: Special case logging for empty boot reason." am: b93357bdb2
am: 79afacdd61

Change-Id: I9200df2994145b581616353990a98e4924b2a79b
2017-10-11 20:11:37 +00:00
James Hawkins
79afacdd61 Merge "bootstat: Special case logging for empty boot reason."
am: b93357bdb2

Change-Id: I07374a59888eba48d1f9b8d112729e8d793adca6
2017-10-11 20:07:55 +00:00
James Hawkins
b93357bdb2 Merge "bootstat: Special case logging for empty boot reason." 2017-10-11 19:48:49 +00:00
Dmitry Shmidt
d0fb2510e2 console: Add setenv HOSTNAME console
Bug: 67678999
Test: Run serial console on Hikey

Change-Id: Ia5fa9c2af4771508d96545f6a8814a81d5ccee3c
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2017-10-11 11:20:02 -07:00
Mark Salyzyn
2450cb1a30 bootstat: test: refine reported test durations
Use actual test durations to refine future duration estimates.
Better estimates are cosmetic, but lend confidence to the test
results.

SideEffects: none
Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: I49143b78a6dc6fb21838a3d6c70b7eb5a8b4cba5
2017-10-11 10:56:54 -07:00
Mark Salyzyn
243fa29804 bootstat: Add some reserved sys.boot.reason values to enumeration
Add cold,powerkey, warm,s3_wakeup and hard,hw_reset so that
sys.boot.reason values can also be enumerated.  Also add
some reserved speculative entries associated with forced
suspend to RAM and DISK; shutdown,suspend and shutdown,hibernate
respectively.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 67636061
Change-Id: Ic43523748e6006aaca882f8eec7c1f0c08431bd8
2017-10-11 10:56:42 -07:00
Xiaolei Yu
c39caafbbb libsparse: fix building on linux host.
memset is declared in <string.h>

Test: builds and works on host

Change-Id: I224a01c78ee1d0c2f8d5e86eef10c84c8960cbc0
2017-10-11 15:37:52 +08:00
Bowgo Tsai
c13381d680 Merge "fs_mgr: removing __BEGIN_DECLS and __END_DECLS" am: 85b80dc18d
am: a4b15d7e2c

Change-Id: Ic57af6475e804fff036e318c05b6cd0123fcf402
2017-10-11 01:57:57 +00:00
Bowgo Tsai
a4b15d7e2c Merge "fs_mgr: removing __BEGIN_DECLS and __END_DECLS"
am: 85b80dc18d

Change-Id: I6c86972b32534f7962656531de072a2ccc654ed8
2017-10-11 01:53:35 +00:00
Treehugger Robot
85b80dc18d Merge "fs_mgr: removing __BEGIN_DECLS and __END_DECLS" 2017-10-11 01:43:11 +00:00
James Hawkins
25f7122512 bootstat: Special case logging for empty boot reason.
Empty boot reason is mostly unexpected but may take up the bulk of
unknown reported boot reason values.

Bug: none
Test: none
Change-Id: I9978658c2b052d5cf5d28299861b0d1125ba9fc0
2017-10-10 16:37:05 -07:00
Josh Gao
24016570d6 Merge "libdebuggerd: fix tombstone tests." am: 8eada2a90f
am: 877747f1f6

Change-Id: I6e593eeb02dc580316339e9cd6bede2889e0ce13
2017-10-10 23:24:32 +00:00
Josh Gao
877747f1f6 Merge "libdebuggerd: fix tombstone tests."
am: 8eada2a90f

Change-Id: I08437a54100f4ade155a7a5db6af7ab92dec1167
2017-10-10 23:16:12 +00:00
Josh Gao
8eada2a90f Merge "libdebuggerd: fix tombstone tests." 2017-10-10 23:05:12 +00:00
Josh Gao
1ce8e14568 libdebuggerd: fix tombstone tests.
Update the tests to match new output (and stop pluralizing '1 entries').

Test: `debuggerd_test{32,64} --gtest_filter="TombstoneTest.*" on hikey960
Change-Id: I16b0335715303252fad3a35d6a053a50fefdac30
2017-10-10 13:55:44 -07:00
Mark Salyzyn
75374ba1d2 Merge "init+bootstat: reduce last reboot reason to canonical alias" am: 613a5a97e0
am: cfed5e795a

Change-Id: I0a6136b68ed199b5be93ff11d47a6d802d571f40
2017-10-10 19:30:26 +00:00
Mark Salyzyn
cfed5e795a Merge "init+bootstat: reduce last reboot reason to canonical alias"
am: 613a5a97e0

Change-Id: I3217fe94b0b3637521ef3a9f455124155001dd0d
2017-10-10 19:26:14 +00:00
Mark Salyzyn
613a5a97e0 Merge "init+bootstat: reduce last reboot reason to canonical alias" 2017-10-10 19:18:19 +00:00
Mark Salyzyn
6290982ee3 init+bootstat: reduce last reboot reason to canonical alias
To make parsing easier for last reboot reason.  This also ensures that
last boot reason matches the content that is typically returned by the
bootloader or in turn landed in the canonical system boot reason.

Simplify parsing in bootstat.  Adjust and fix boot_reason_test.sh for
new reality.  Allow boot reason tests battery and kernel_panic to pass
if device does not support pstore (empty before and after the test).
If device somehow landed in fastboot mode while waiting for the
display, issue a fastboot reboot to move the test along.  Some cleanup
and standardization changes to the test script.

Test: system/core/bootstat/boot_reason_test.sh
Bug: 63736262
Change-Id: I97d5467c0b4a6d65df3525f1a2d0051db813d5ad
2017-10-10 09:37:59 -07:00
Bowgo Tsai
d837f837ad fs_mgr: removing __BEGIN_DECLS and __END_DECLS
fs_mgr isn't usable by C now as we've migrated all fs_mgr clients in AOSP
to CPP. Removing the support for C clients.

Bug: 67024518
Bug: 67444051
Test: boot sailfish

Change-Id: Iac57f51eb6a524c6dcdc625c83af75602b4f9b3b
2017-10-10 18:17:29 +08:00
Nick Kralevich
141a3079cf Merge "set O_CLOEXEC on /dev/ashmem" am: be729702ae
am: 7e772f8194

Change-Id: I6f96618cb56344a294d06be9f48c1586be3a1bbf
2017-10-09 23:06:13 +00:00
Nick Kralevich
7e772f8194 Merge "set O_CLOEXEC on /dev/ashmem"
am: be729702ae

Change-Id: Ib308d27bd05d9d824772ab76564b2ed1487e09d3
2017-10-09 22:59:32 +00:00