OSDN Git Service
Automerger Merge Worker [Mon, 3 Feb 2020 19:13:39 +0000 (19:13 +0000)]
Refactor property-watch optout logic am:
6d9db09a45
Change-Id: Icd801b4575116da024d4c3c118408ee8ecce76a2
Automerger Merge Worker [Mon, 3 Feb 2020 19:13:02 +0000 (19:13 +0000)]
Do init_profile_extras constructor tasks only once am:
2b1bdd1079
Change-Id: I4ed48c21a3c4e221a5151b7e63a8d027fab1467e
Pirama Arumuga Nainar [Tue, 4 Jun 2019 22:33:45 +0000 (15:33 -0700)]
Refactor property-watch optout logic
Bug: http://b/
116873221
Refactor the processes without property-watch thread into a list.
Test: Build cuttlefish with coverage
Change-Id: Id8f0ceab133b961219b1cf77ae02b00eba4cfaf5
Merged-In: Id8f0ceab133b961219b1cf77ae02b00eba4cfaf5
(cherry picked from commit
5b9defd41d61b000c82c84662f02394e89192d93)
Pirama Arumuga Nainar [Mon, 3 Jun 2019 17:56:35 +0000 (10:56 -0700)]
Do init_profile_extras constructor tasks only once
Bug: http://b/
116873221
Currently, every coverage-enabled binary (the main executable or shared
library) in the process executes the init_profile_extras constructor
leading to redundant initialization.
Instead, add a weak global value that gets set once so following
constructors don't set a signal handler or create a pthread. It's ok to
do this before the constructor succeeds because if pthread creation or
signal handler registration failed once, they are unlikely to succeed
the second time.
This is thread-safe since constructor initialization is single-threaded.
The one possibility for a race - the process doesn't have any
coverage-enabled library, and multiple threads dlopen() coverage-enabled
shared libraries - seems quite unlikely.
Test: Verify that only one extra thread is created for a daemon (adbd).
Change-Id: Ie969311c2ddac147497c870b5c365b4617b3c60a
Merged-In: Ie969311c2ddac147497c870b5c365b4617b3c60a
(cherry picked from commit
e76c23dc6b7bff0c7404744b9bdde0d02465acdf)
Paul Crowley [Wed, 11 Sep 2019 21:57:45 +0000 (14:57 -0700)]
Add a per-boot-key policy reference, apply to per_boot
Includes changes picked from aosp/
1119783
570d20d2ac875198416dff280b7a4b7adaacac81 in platform/system/core
Bug:
140882488
Test: Booted twice, checked logs to ensure encryption
is different each time, adb created files in directory.
Cherry-Picked-From:
ab3085004e35cff9517fcedb03317f3f1ac84cf9
Merged-In: I5c962edb316d160dd09c0df893912c6b257d7810
Change-Id: I5c962edb316d160dd09c0df893912c6b257d7810
Daniel Rosenberg [Fri, 7 Jun 2019 23:03:08 +0000 (16:03 -0700)]
Lower gc_urgent_sleeptime to 50
am:
999afeeb3e
Change-Id: I0bd72cc643f7aee82c2fc2d2b3abc2b0d90de395
Daniel Rosenberg [Thu, 6 Jun 2019 23:03:21 +0000 (16:03 -0700)]
Lower gc_urgent_sleeptime to 50
This will substantially speed up GC progress
Test: Run /vendor/bin/checkpoint_gc
Bug:
133822599
Change-Id: Ic1f064437381bce99d62dfd146088d43e08b1766
Oliver Nguyen [Wed, 5 Jun 2019 21:19:22 +0000 (14:19 -0700)]
Merge "Do not create property_watch_loop thread for zygote" into qt-dev
am:
5c1ad00d4b
Change-Id: Idb1e40982b8aa0edd6e6f40b4f53d1793a6a8efb
Pirama Arumuga Nainar [Wed, 5 Jun 2019 21:19:04 +0000 (14:19 -0700)]
Prefix sysprop for flushing coverage with 'debug.'
am:
baedc8e881
Change-Id: I126ba230b198665a5d1113d383cf2bc5a1470b15
Oliver Nguyen [Wed, 5 Jun 2019 21:03:15 +0000 (21:03 +0000)]
Merge "Do not create property_watch_loop thread for zygote" into qt-dev
Pirama Arumuga Nainar [Wed, 22 May 2019 17:04:50 +0000 (10:04 -0700)]
Prefix sysprop for flushing coverage with 'debug.'
Bug: http://b/
133322197
Fix selinux denials when reading the coverage.flush sysprop by prefixing
it with 'debug.'. Sysprops starting with 'debug.' are readable by all
processes when ro.debuggable is set.
Test: Build cuttlefish with coverage and verify that selinux denials for
sysprop reads no longer happen.
Change-Id: I76bef0a658ce881cc81e2d2d4947bef966060376
(cherry picked from commit
9d31ce99069b28d302c5487c2154fc0fd5c2f9fd)
Pirama Arumuga Nainar [Wed, 29 May 2019 21:18:18 +0000 (14:18 -0700)]
Do not create property_watch_loop thread for zygote
Bug: http://b/
116873221
Bug: http://b/
133872559
Do not create thread running property_watch_loop for zygote (which is
essentially /system/bin/app_process invoked with a specific argument to
start the zygote).
The reason this is needed is because when the zygote forks system_server
or an app, it waits for all threads to stop. But the thread created
here doesn't know that it has to stop. So zygote gets stuck waiting and
the device doesn't boot.
This check is only needed for the platform, but can be done on any
version after Android L, when getprogname() was added.
Test: cuttlefish with coverage enabled can boot.
Change-Id: I65aa603a88bf8da1f14b5c4ada3adf3776f33275
(cherry picked from commit
4cedcc68d4dfedf96474973de1e7e22d0ce0a523)
Changyeon Jo [Wed, 15 May 2019 18:57:18 +0000 (11:57 -0700)]
Command-line argument to set logcat buffer size
am:
84d06f1474
Change-Id: I583f41a0c7454b950583079328d2ab899e6509ac
Changyeon Jo [Fri, 10 May 2019 01:42:12 +0000 (18:42 -0700)]
Command-line argument to set logcat buffer size
Adds new argument to set the size of the log ring buffer.
Bug:
132431643
Change-Id: I092924bf16950fede49f35b25dbbea7dfe2c8109
Signed-off-by: Changyeon Jo <changyeon@google.com>
Daniel Rosenberg [Tue, 30 Apr 2019 22:45:21 +0000 (15:45 -0700)]
Add a max timeout in checkpoint_gc
After one hour, we will abandon our efforts to do checkpointing ahead of
time. At that point, it's likely that something has gone wrong with
garbage collection. Log dirty segments.
Test: Run checkpoint_gc after remounting with checkpoint=disable. This
will prevent GC from making progress. The script should exit after
one hour
Bug:
131557838
Change-Id: Ifbff5d3e889725259d7c797fe6fa1d4a84fc7cec
David Anderson [Thu, 25 Apr 2019 01:16:27 +0000 (18:16 -0700)]
Add an lpunpack tool for extracting partitions from super.img.
This tool performs the inverse of lpmake. It can extract partition
images out of a prebuilt super.img. There are a few caveats:
- lpunpack does not support retrofit/split images.
- lpunpack does not support sparse super images. They must be unsparsed
before using with lpunpack.
- Partition names will be suffixed on A/B devices, meaning,
vendor_a.img will contain vendor.img and vendor_b.img will be
0-length.
Note that lpunpack will store output files with holes for zero blocks,
as a space-saving measure.
Usage: lpunpack [options] SUPER_IMAGE [OUTPUT_DIR]
Bug:
131173010
Test: m superimage
mm lpunpack
lpunpack super.img
lpunpack super.img out/
lpunpack -p vendor_a super.img
lpunpack -p unknown super.img
sha1sum image with precursor image
Change-Id: Iad3f7362ae6ce767ddc7de2e8cfa7e4a47190e99
Merged-In: Iad3f7362ae6ce767ddc7de2e8cfa7e4a47190e99
Yifan Hong [Tue, 16 Apr 2019 17:01:19 +0000 (17:01 +0000)]
Merge "cppreopts: umount_all fstab.postinstall" into qt-dev
Yifan Hong [Tue, 9 Apr 2019 18:53:00 +0000 (11:53 -0700)]
cppreopts: umount_all fstab.postinstall
- Change 'umount /postinstall' to a full umount_all so that
postinstall-verity device get destroyed.
- No longer set sys.cppreopt=mounted because that incurs even
more code. Just duplicate the two procedures.
Test: flash, boot, then check `dmctl list devices`, then OTA
Fixes:
129988285
Change-Id: Ic0cdf55b3639632dc5f2659c8bf36b8c3deea92d
Alex Light [Tue, 9 Apr 2019 17:19:11 +0000 (10:19 -0700)]
Change warning logic in preopt2cachename
We were incorrectly warning when a filename had 8 segments. This is
valid since we can have paths of the form
'/postinstall/product/priv-app/<app>/oat/arm64/<app>.odex' in addition
to those of the form
'/postinstall/priv-app/<app>/oat/arm64/<app>.odex'.
Test: boot, look at logcat
Bug:
123696019
Change-Id: I97c88302a3967e133421244bb132b4e8fd0812a1
(cherry picked from commit
73befcf4495616129ce484e5124e05b85277192e)
Elliott Hughes [Thu, 4 Apr 2019 20:55:20 +0000 (13:55 -0700)]
simpleperf: update simpleperf prebuilts to build
5436767.
Taken from branch aosp-simpleperf-release.
Bug: http://b/
128690014
(cherry picked from commit
9c8b641a6c1f21a1271d5f1fb0d220e68684ae5c)
Change-Id: I6f92c53b5537d03a0077ec08fc81404d69d7bc60
Yifan Hong [Tue, 2 Apr 2019 23:19:06 +0000 (16:19 -0700)]
lpmake: allow to build non-sparse super image.
Bug:
120041578
Test: build without --sparse but with --image.
Change-Id: Iaaa8324fa1f9e8e6785f96e787c8a4ee23d37982
Merged-In: Iaaa8324fa1f9e8e6785f96e787c8a4ee23d37982
Elliott Hughes [Wed, 3 Apr 2019 02:08:29 +0000 (19:08 -0700)]
Merge "simpleperf: add an explicit "simpleperf" target." am:
7ed6aabda8 am:
784ccdf92d
am:
885c96098b
Change-Id: Ie7e001f84d85d0384ffbde794a060506cbe47908
Elliott Hughes [Wed, 3 Apr 2019 01:41:54 +0000 (18:41 -0700)]
Merge "simpleperf: add an explicit "simpleperf" target." am:
7ed6aabda8
am:
784ccdf92d
Change-Id: I511d370eadb5b1788300cf79fd25070610c25391
Elliott Hughes [Wed, 3 Apr 2019 01:07:18 +0000 (18:07 -0700)]
Merge "simpleperf: add an explicit "simpleperf" target."
am:
7ed6aabda8
Change-Id: I33a0e877ccd49127980fe0113e138189f5c16690
Treehugger Robot [Tue, 2 Apr 2019 22:57:00 +0000 (22:57 +0000)]
Merge "simpleperf: add an explicit "simpleperf" target."
Daniel Rosenberg [Tue, 2 Apr 2019 22:51:18 +0000 (15:51 -0700)]
Merge "Make checkpoint_gc.sh robust against interference" am:
07a8c9f8de am:
dfc3247d58
am:
5c73e66be5
Change-Id: Ie086639b64a774270b1d140445d4e360387f5d9c
Daniel Rosenberg [Tue, 2 Apr 2019 22:07:31 +0000 (15:07 -0700)]
Merge "Make checkpoint_gc.sh robust against interference" am:
07a8c9f8de
am:
dfc3247d58
Change-Id: I33d144fe33ed91941fa925c451522ffe169acba5
Daniel Rosenberg [Tue, 2 Apr 2019 21:23:25 +0000 (14:23 -0700)]
Merge "Make checkpoint_gc.sh robust against interference"
am:
07a8c9f8de
Change-Id: I463777238185d14bdda88ed23eaa2e1253878731
Daniel Rosenberg [Tue, 2 Apr 2019 20:25:05 +0000 (20:25 +0000)]
Merge "Make checkpoint_gc.sh robust against interference"
Elliott Hughes [Tue, 2 Apr 2019 20:00:55 +0000 (13:00 -0700)]
simpleperf: add an explicit "simpleperf" target.
This lets us set up the aosp-simpleperf-release branch to just build
simpleperf.
Bug: http://b/
128690014
Test: manual
Change-Id: Ida8c4df5f6563b050a1399028fac31e7d1737f52
Wei Wang [Tue, 2 Apr 2019 01:27:21 +0000 (18:27 -0700)]
Merge "Use fsync instead of sync during first boot" am:
654a37cd65 am:
d603390bed
am:
17226e5ef6
Change-Id: I4ad0e370ace2e6f24df93a8581ce753bb4a84617
Daniel Rosenberg [Tue, 2 Apr 2019 00:55:58 +0000 (17:55 -0700)]
Make checkpoint_gc.sh robust against interference
If some other process decides to run a brief period of GC and then turn
it off, checkpoint_gc.sh will keep running and hold up the OTA. To
combat that, we set gc_urgent again each cycle.
Test: set gc_urgent to 0 after the script sets it to 1. Verify script
still runs
Change-Id: If361a7e6aace2b20d976d94210fc5a72c3630c72
Wei Wang [Tue, 2 Apr 2019 00:44:21 +0000 (17:44 -0700)]
Merge "Use fsync instead of sync during first boot" am:
654a37cd65
am:
d603390bed
Change-Id: I7292168b8684759512e3fb6279d3a00adaa77571
Wei Wang [Tue, 2 Apr 2019 00:14:37 +0000 (17:14 -0700)]
Merge "Use fsync instead of sync during first boot"
am:
654a37cd65
Change-Id: I7f31af52f578b0157007fbc728e929f4a05d7ae0
Wei Wang [Mon, 1 Apr 2019 23:24:00 +0000 (23:24 +0000)]
Merge "Use fsync instead of sync during first boot"
Wei Wang [Mon, 1 Apr 2019 15:51:18 +0000 (08:51 -0700)]
Use fsync instead of sync during first boot
1) fsync the specific copied file instead of sync whole file system
2) boost prio/ioprio for CFQ since cpppreopt is on critical path
3) change to foreground group
Before CL:
03-29 21:49:31.450 1 1 I init : Service 'cppreopts' (pid 1662) exited with status 0 waiting took 55.175999 seconds
03-29 21:49:31.808 1440 1440 I PackageManager: cppreopts took 55591 ms
After CL:
04-01 15:47:43.841 1 1 I init : Service 'cppreopts' (pid 1871) exited with status 0 waiting took 2.007000 seconds
04-01 15:47:45.343 1549 1549 I PackageManager: cppreopts took 3709 ms
Bug:
129542240
Test: boot
Change-Id: Ia9bacabe798764084790b077abc80ae60401f9c1
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:32:11 +0000 (09:32 -0700)]
Merge changes from topic "coverage_flush" am:
41cb9915b2 am:
9fcdb3edaf
am:
101b4d5d0e
Change-Id: I3e205b4883c90d1f85ac7fe5c5aed1d751c778ba
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:31:54 +0000 (09:31 -0700)]
Add OWNERS for system/extras/toolchain-extras am:
26ca42cb84 am:
e6eff58534
am:
7bba35096c
Change-Id: Iaf456eff56259244574dea97e58263361a891ee4
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:22:48 +0000 (09:22 -0700)]
Merge changes from topic "coverage_flush" am:
41cb9915b2
am:
9fcdb3edaf
Change-Id: I87d76100735dad338e5df31bc2e11325012da2db
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:21:42 +0000 (09:21 -0700)]
Add OWNERS for system/extras/toolchain-extras am:
26ca42cb84
am:
e6eff58534
Change-Id: I8ce8124a95f930fe3e7376fb78c84c78d4a7a622
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:18:05 +0000 (09:18 -0700)]
Merge changes from topic "coverage_flush"
am:
41cb9915b2
Change-Id: I8da9aa6f78d7f30f4dbbb52a804058accfef6905
Pirama Arumuga Nainar [Fri, 29 Mar 2019 16:17:42 +0000 (09:17 -0700)]
Add OWNERS for system/extras/toolchain-extras
am:
26ca42cb84
Change-Id: I0c505636472a7a95810ae5008fa8474b22f7090a
Pirama Arumuga Nainar [Fri, 29 Mar 2019 15:57:32 +0000 (15:57 +0000)]
Merge changes from topic "coverage_flush"
* changes:
Helper static library for coverage/profile collection
Add OWNERS for system/extras/toolchain-extras
Bernie Innocenti [Fri, 29 Mar 2019 04:31:54 +0000 (21:31 -0700)]
Merge "Fix incorrect error checking on unique_fd" am:
d2515c56d4 am:
3a431be49b
am:
497b2e27e0
Change-Id: I08a266eb804324c5e03543a5e7782f03a37a84e0
Bernie Innocenti [Fri, 29 Mar 2019 04:15:21 +0000 (21:15 -0700)]
Merge "Fix incorrect error checking on unique_fd" am:
d2515c56d4
am:
3a431be49b
Change-Id: I147a5d51706e80e967cd91477f837b6ac1c1d0f1
Bernie Innocenti [Fri, 29 Mar 2019 04:09:08 +0000 (21:09 -0700)]
Merge "Fix incorrect error checking on unique_fd"
am:
d2515c56d4
Change-Id: I731d55e1a0585f4a4d5677e9094e22d56bde4c56
Treehugger Robot [Fri, 29 Mar 2019 03:52:46 +0000 (03:52 +0000)]
Merge "Fix incorrect error checking on unique_fd"
Yifan Hong [Thu, 28 Mar 2019 21:19:21 +0000 (14:19 -0700)]
Merge "lpdump: log warning message." am:
8162690b3f am:
8d6d2c44f9
am:
00c0df0574
Change-Id: Ifd5d71ad745b99d0a921932fb24ab0aa9a10a2bc
Pirama Arumuga Nainar [Tue, 22 May 2018 22:40:49 +0000 (15:40 -0700)]
Helper static library for coverage/profile collection
Bug: http://b/
128524141
This static library adds two different ways to trigger the Clang profile
runtime to flush GCOV profiles:
- a real-time signal (37) targeted to this process/pid
- a transistion of "coverage.flush" sysprop from "0" -> "1".
Test: libprofile-extras-test
Change-Id: I6bc8149b32ca1aebd4646b28150985b7b93ab33f
Yifan Hong [Thu, 28 Mar 2019 21:05:29 +0000 (14:05 -0700)]
Merge "lpdump: log warning message." am:
8162690b3f
am:
8d6d2c44f9
Change-Id: If40f4d783ec223395cc1ea6d07c6914fb37401ef
Yifan Hong [Thu, 28 Mar 2019 20:52:39 +0000 (13:52 -0700)]
Merge "lpdump: log warning message."
am:
8162690b3f
Change-Id: Id6b3d5591f558c11e512877ac44a7236b90d7bd9
Treehugger Robot [Thu, 28 Mar 2019 20:26:32 +0000 (20:26 +0000)]
Merge "lpdump: log warning message."
Yifan Hong [Thu, 28 Mar 2019 17:42:05 +0000 (10:42 -0700)]
lpdump: log warning message.
Warning messages were placed in the output stream as well.
Put them in logcat so that stdout is always a valid JSON
string.
Test: lpdump --json on walleye
Bug:
126233777
Change-Id: If313eeaee9c347c498818f53decdf092328f142c
Dan Willemsen [Thu, 28 Mar 2019 17:37:19 +0000 (10:37 -0700)]
Merge "Convert more of system/extras to Android.bp" am:
0a35afacda am:
03cc6a3537
am:
07bcf1a5c3
Change-Id: Iaff58bceea0b9f344cef8422211be668803fd374
Dan Willemsen [Thu, 28 Mar 2019 17:30:42 +0000 (10:30 -0700)]
Merge "Convert more of system/extras to Android.bp" am:
0a35afacda
am:
03cc6a3537
Change-Id: Id7c90b9e86e0b7aeb2e51663d3382d4f003f68f5
Dan Willemsen [Thu, 28 Mar 2019 17:25:48 +0000 (10:25 -0700)]
Merge "Convert more of system/extras to Android.bp"
am:
0a35afacda
Change-Id: Ib7f43ab43b562057540920367c70c621fca98ab8
Treehugger Robot [Thu, 28 Mar 2019 17:12:20 +0000 (17:12 +0000)]
Merge "Convert more of system/extras to Android.bp"
Dan Willemsen [Sat, 23 Mar 2019 20:53:03 +0000 (13:53 -0700)]
Convert more of system/extras to Android.bp
See build/soong/README.md for more information about Soong.
Bug:
122331914
Test: cd system/extras; mma
Test: treehugger
Change-Id: Ic1cf293df2c848c7476ca93c150106a4a3cd849c
Bernie Innocenti [Thu, 28 Mar 2019 11:48:02 +0000 (20:48 +0900)]
Fix incorrect error checking on unique_fd
The expression "!fd" calls the implicit conversion to int, but comparing
the raw fd against 0 won't work, since open() and other POSIX calls
returning file descriptors use -1 to signal an error.
Test: m verity_verifier
Change-Id: Ib117de62ff46c8d3389db54875bfa269fd539b51
Pirama Arumuga Nainar [Mon, 25 Mar 2019 18:40:27 +0000 (11:40 -0700)]
Add OWNERS for system/extras/toolchain-extras
Test: N/A
Change-Id: Idb0886aceb84da2465a2e37c6b8d4673ac770b32
Daniel Rosenberg [Wed, 27 Mar 2019 01:08:49 +0000 (18:08 -0700)]
Merge "Change checkpoint_gc to run until threshold is met" am:
632a01f745 am:
14c86ddd39
am:
c8b3534e5e
Change-Id: I2529699a1b5571f49ab360ceb3bab4b81b24fd94
Daniel Rosenberg [Wed, 27 Mar 2019 00:40:16 +0000 (17:40 -0700)]
Merge "Change checkpoint_gc to run until threshold is met" am:
632a01f745
am:
14c86ddd39
Change-Id: I5918a1b0a6b052e49e465b2637caca87b008f015
Daniel Rosenberg [Wed, 27 Mar 2019 00:13:31 +0000 (17:13 -0700)]
Merge "Change checkpoint_gc to run until threshold is met"
am:
632a01f745
Change-Id: Id0a30badf557476f99031d9e11f53cfdddc819b7
Yifan Hong [Tue, 26 Mar 2019 23:41:16 +0000 (16:41 -0700)]
Merge changes from topic "lpdumpd" am:
384833d0af am:
133b475d03
am:
1eca27c738
Change-Id: I9a6dfc42cb4a10f504f9074138ff5c7166e1f4aa
Yifan Hong [Tue, 26 Mar 2019 23:40:56 +0000 (16:40 -0700)]
lpdump: Add --json option am:
7ea1a93cbf am:
dc8fdcd331
am:
d55e2338a9
Change-Id: I641a4481909232d6b2c27bb1eef536864b3cdcbf
Yifan Hong [Tue, 26 Mar 2019 23:40:39 +0000 (16:40 -0700)]
Make lpdump possible without root. am:
b84fb57317 am:
885cae02dc
am:
acd334ad78
Change-Id: Id2701208d8517527066a4ee2dc0eeb5644ee67dd
Yifan Hong [Tue, 26 Mar 2019 23:40:22 +0000 (16:40 -0700)]
lpdump: refactor to use std::ostream am:
b48d79fa91 am:
d85c47a6d1
am:
68d75a8012
Change-Id: I4430953f14913c596510ca7b99e12e9a0ee37006
Daniel Rosenberg [Tue, 26 Mar 2019 23:25:18 +0000 (23:25 +0000)]
Merge "Change checkpoint_gc to run until threshold is met"
Yifan Hong [Tue, 26 Mar 2019 22:39:08 +0000 (15:39 -0700)]
Merge changes from topic "lpdumpd" am:
384833d0af
am:
133b475d03
Change-Id: Idc0375283a66bd88bda29df0177c2de28118283f
Yifan Hong [Tue, 26 Mar 2019 22:38:46 +0000 (15:38 -0700)]
lpdump: Add --json option am:
7ea1a93cbf
am:
dc8fdcd331
Change-Id: I516ac5f1ecb24534c96168c271b9820b7d068280
Yifan Hong [Tue, 26 Mar 2019 22:38:25 +0000 (15:38 -0700)]
Make lpdump possible without root. am:
b84fb57317
am:
885cae02dc
Change-Id: I856a8856e242bc76e7e40c579d6f0c043f5cbadf
Yifan Hong [Tue, 26 Mar 2019 22:38:05 +0000 (15:38 -0700)]
lpdump: refactor to use std::ostream am:
b48d79fa91
am:
d85c47a6d1
Change-Id: Iec6d82938997d4c964c67211ed5b77b7bca96463
Yifan Hong [Tue, 26 Mar 2019 21:32:04 +0000 (14:32 -0700)]
Merge changes from topic "lpdumpd"
am:
384833d0af
Change-Id: I92f6f9f1610b117ccfcb23282e49c31fb87656c3
Yifan Hong [Tue, 26 Mar 2019 21:31:37 +0000 (14:31 -0700)]
lpdump: Add --json option
am:
7ea1a93cbf
Change-Id: Idedff158c574e949826231bbf3d146665d75f645
Yifan Hong [Tue, 26 Mar 2019 21:31:11 +0000 (14:31 -0700)]
Make lpdump possible without root.
am:
b84fb57317
Change-Id: Iaf4fbccd87835bda3273a50fd11aa81006df3930
Yifan Hong [Tue, 26 Mar 2019 21:30:40 +0000 (14:30 -0700)]
lpdump: refactor to use std::ostream
am:
b48d79fa91
Change-Id: Ie422d550bc48ef7dcb1f7f2a271f3d9febb54fca
Yifan Hong [Tue, 26 Mar 2019 20:35:36 +0000 (20:35 +0000)]
Merge changes from topic "lpdumpd"
* changes:
suspend_stress: depend on libbase
lpdump: Add --json option
Make lpdump possible without root.
lpdump: refactor to use std::ostream
Daniel Rosenberg [Fri, 22 Mar 2019 23:01:10 +0000 (16:01 -0700)]
Change checkpoint_gc to run until threshold is met
Run until garbage collection is done to prevent long boot times while
f2fs checkpointing runs garbage collection
Test: Apply update, or run /vendor/bin/checkpoint_gc UNUSED 1
Bug:
123367711
Change-Id: I4481b9179a819621dd77f5088778950e49d73ff3
Yifan Hong [Fri, 22 Mar 2019 19:32:53 +0000 (12:32 -0700)]
suspend_stress: depend on libbase
It links to libcutils statically.
Test: builds
Change-Id: Ia1ddc848777f67b4aae3abfb901f84e38d397f62
Yifan Hong [Fri, 15 Mar 2019 23:06:50 +0000 (16:06 -0700)]
lpdump: Add --json option
This option outputs in JSON format. In addition, it emits information
like usage data on mounted file systems, and block size of super block
devices.
Test: `lpdump --json` on host and device
Bug:
126233777
Change-Id: Iad68eb3932f317637e07cd692cdebe71e52db769
Yifan Hong [Fri, 15 Mar 2019 21:19:08 +0000 (14:19 -0700)]
Make lpdump possible without root.
Test: adb unroot && adb shell lpdump
Bug:
126233777
Change-Id: Ie559072fe53fee43d7c4a9e8f97a89d979e5b9bc
Pirama Arumuga Nainar [Wed, 20 Mar 2019 21:30:13 +0000 (14:30 -0700)]
Merge "Do not use --exclude-libs linker flag for Windows" am:
a3cec0985a am:
0526409654
am:
8863dc52b1
Change-Id: Ifb6f84af2e5d36c35b966fa62f10ed3bf371e9be
Pirama Arumuga Nainar [Wed, 20 Mar 2019 21:27:07 +0000 (14:27 -0700)]
Merge "Do not use --exclude-libs linker flag for Windows" am:
a3cec0985a
am:
0526409654
Change-Id: I3c34c73f5c7008c01a2d7b19b1c6de7f5e035b6f
Pirama Arumuga Nainar [Wed, 20 Mar 2019 21:23:02 +0000 (14:23 -0700)]
Merge "Do not use --exclude-libs linker flag for Windows"
am:
a3cec0985a
Change-Id: Ic32e7be86135692b2527430e7661ffc801e478a3
Pirama Arumuga Nainar [Wed, 20 Mar 2019 21:13:18 +0000 (21:13 +0000)]
Merge "Do not use --exclude-libs linker flag for Windows"
Yifan Hong [Tue, 19 Mar 2019 23:18:11 +0000 (16:18 -0700)]
lpdump: refactor to use std::ostream
... so that the output stream / error stream can be
replaced with stringstream later.
Test: lpdump
Bug:
126233777
Change-Id: I837554b0289a5d669f0f89d35e7da1b79dd33b28
Bowgo Tsai [Tue, 19 Mar 2019 05:22:34 +0000 (22:22 -0700)]
Merge "Allowing product-specific fstab.postinstall" am:
66920d2072 am:
43145ee304
am:
ef290c560a
Change-Id: I9c76ecd83ee7abf2728655398bf3bed36f346363
Bowgo Tsai [Tue, 19 Mar 2019 05:18:24 +0000 (22:18 -0700)]
Merge "Allowing product-specific fstab.postinstall" am:
66920d2072
am:
43145ee304
Change-Id: I0639b020ee967009f8006fb4e5e1240703be3650
Bowgo Tsai [Tue, 19 Mar 2019 05:14:11 +0000 (22:14 -0700)]
Merge "Allowing product-specific fstab.postinstall"
am:
66920d2072
Change-Id: Ibd593a3530053d011fad17a705cebb30b164e47d
Treehugger Robot [Tue, 19 Mar 2019 05:02:58 +0000 (05:02 +0000)]
Merge "Allowing product-specific fstab.postinstall"
Yifan Hong [Mon, 18 Mar 2019 17:16:09 +0000 (10:16 -0700)]
Merge "libjsonverify: allow option for missing files." am:
ea299553a0 am:
e6045ac0f6
am:
508acad44a
Change-Id: I91fb88cba5ffefb64d8e21759af446bd3b0757e4
Yifan Hong [Mon, 18 Mar 2019 17:11:21 +0000 (10:11 -0700)]
Merge "libjsonverify: allow option for missing files." am:
ea299553a0
am:
e6045ac0f6
Change-Id: I405edd0c77904ebc3b57dfa26709024d12ba6e75
Yifan Hong [Mon, 18 Mar 2019 17:06:21 +0000 (10:06 -0700)]
Merge "libjsonverify: allow option for missing files."
am:
ea299553a0
Change-Id: Ia2cadf6e732116e8c8db8b3d683fed6dc1dc6a09
Yifan Hong [Mon, 18 Mar 2019 16:53:47 +0000 (16:53 +0000)]
Merge "libjsonverify: allow option for missing files."
Yifan Hong [Tue, 5 Mar 2019 00:27:11 +0000 (16:27 -0800)]
libjsonverify: allow option for missing files.
When 'optional' is set to true:
- If file is missing, test pass (with logs)
- If file is present but empty, test fails
- If file is present but in wrong format, test fails
Test: vts_processgroup_validate_test
Bug:
123664216
Change-Id: Ib6640c3c1ce159c5cac068042af564d98c9bbb1f
Gavin Corkery [Thu, 14 Mar 2019 14:44:32 +0000 (07:44 -0700)]
[automerger skipped] Merge "Rename data/pkg_staging to data/app-staging" am:
aac8abab9d am:
11a29880f3
am:
cd4adb6b27 -s ours
am skip reason: change_id I73367a60c23ca17d0557253bea25279c104e1e53 with SHA1
671b42d624 is in history
Change-Id: I5b61235f4f3c41662107bc3729be0eee768e41e2
Gavin Corkery [Thu, 14 Mar 2019 14:32:44 +0000 (07:32 -0700)]
Merge "Rename data/pkg_staging to data/app-staging" am:
aac8abab9d
am:
11a29880f3
Change-Id: Ifea950f6fd40fd0085fa8723b478bcbbae6cdbfc
Gavin Corkery [Thu, 14 Mar 2019 14:22:40 +0000 (07:22 -0700)]
Merge "Rename data/pkg_staging to data/app-staging"
am:
aac8abab9d
Change-Id: I606af9209c8c24edda1e619bb0d495ee103395d5
Gavin Corkery [Thu, 14 Mar 2019 14:14:38 +0000 (14:14 +0000)]
Merge "Rename data/pkg_staging to data/app-staging"
Gavin Corkery [Wed, 27 Feb 2019 11:18:03 +0000 (11:18 +0000)]
Rename data/pkg_staging to data/app-staging
Test: n/a
Bug:
126330086
Change-Id: I73367a60c23ca17d0557253bea25279c104e1e53
Merged-In: I73367a60c23ca17d0557253bea25279c104e1e53