OSDN Git Service

android-x86/system-core.git
6 years agoMerge changes Iea2d97fb,I08fa3905,Idd5b923e am: e1ae2ff9e4
Tom Cherry [Fri, 16 Feb 2018 00:49:59 +0000 (00:49 +0000)]
Merge changes Iea2d97fb,I08fa3905,Idd5b923e am: e1ae2ff9e4
am: 44fd091bee

Change-Id: Id7f8405d9dc76bc62bcb2937ab3840121263a373

6 years agoMerge changes Iea2d97fb,I08fa3905,Idd5b923e
Tom Cherry [Fri, 16 Feb 2018 00:45:37 +0000 (00:45 +0000)]
Merge changes Iea2d97fb,I08fa3905,Idd5b923e
am: e1ae2ff9e4

Change-Id: Ia21b586491e053c439878c661e056bfd6754f430

6 years agoMerge "Move libdexfile out of runtime" am: a99ff49ab0
David Sehr [Thu, 15 Feb 2018 16:53:57 +0000 (16:53 +0000)]
Merge "Move libdexfile out of runtime" am: a99ff49ab0
am: 868eac2f94

Change-Id: I0f927559800247dc57e6e61952b5246d5f5960b7

6 years agoMerge "Move libdexfile out of runtime"
David Sehr [Thu, 15 Feb 2018 16:46:40 +0000 (16:46 +0000)]
Merge "Move libdexfile out of runtime"
am: a99ff49ab0

Change-Id: I2c1fc649d7bef7c645e61f6459e77de1257d7b12

6 years agoMerge changes Iea2d97fb,I08fa3905,Idd5b923e
Tom Cherry [Thu, 15 Feb 2018 16:32:52 +0000 (16:32 +0000)]
Merge changes Iea2d97fb,I08fa3905,Idd5b923e

* changes:
  Move all Action parsing into ActionParser
  Move ActionManager to its own file
  Move ActionParser to its own file

6 years agoMerge "Move libdexfile out of runtime"
David Sehr [Thu, 15 Feb 2018 16:21:21 +0000 (16:21 +0000)]
Merge "Move libdexfile out of runtime"

6 years agoMerge "init.rc: Add nodev,noexec,nosuid to /config" am: 7238eca684
Luis Hector Chavez [Thu, 15 Feb 2018 03:16:47 +0000 (03:16 +0000)]
Merge "init.rc: Add nodev,noexec,nosuid to /config" am: 7238eca684
am: 53274d67ff

Change-Id: Ie9c45a81347bf5ca796645c81d466177afa318e1

6 years agoMerge "init.rc: Add nodev,noexec,nosuid to /config"
Luis Hector Chavez [Thu, 15 Feb 2018 03:10:29 +0000 (03:10 +0000)]
Merge "init.rc: Add nodev,noexec,nosuid to /config"
am: 7238eca684

Change-Id: I72e4b379f2a4fb6f5dadb32410a1f87c658b4ec1

6 years agoMerge "init.rc: Add nodev,noexec,nosuid to /config"
Treehugger Robot [Thu, 15 Feb 2018 03:01:33 +0000 (03:01 +0000)]
Merge "init.rc: Add nodev,noexec,nosuid to /config"

6 years agoMove all Action parsing into ActionParser
Tom Cherry [Wed, 14 Feb 2018 00:24:51 +0000 (16:24 -0800)]
Move all Action parsing into ActionParser

Bug: 36970783
Test: Build
Change-Id: Iea2d97fb45c3e88bc83fb72d6fa67049be42cfa9

6 years agoMove ActionManager to its own file
Tom Cherry [Tue, 13 Feb 2018 23:36:14 +0000 (15:36 -0800)]
Move ActionManager to its own file

Bug: 36970783
Test: build
Change-Id: I08fa39052236b462249f79de1d02bf02bdbf4c84

6 years agoMerge "init.rc: Mount /mnt with nodev,nosuid,noexec" am: 6698482ca4
Luis Hector Chavez [Thu, 15 Feb 2018 00:36:18 +0000 (00:36 +0000)]
Merge "init.rc: Mount /mnt with nodev,nosuid,noexec" am: 6698482ca4
am: 0802d45683

Change-Id: I3566b5d1cbc053b579144ab5ddc7a45af1983fe5

6 years agoMerge "init.rc: Mount /mnt with nodev,nosuid,noexec"
Luis Hector Chavez [Thu, 15 Feb 2018 00:31:11 +0000 (00:31 +0000)]
Merge "init.rc: Mount /mnt with nodev,nosuid,noexec"
am: 6698482ca4

Change-Id: I525302301e2812db8b087995c9e4b23d2e0cc966

6 years agoMerge "init.rc: Mount /mnt with nodev,nosuid,noexec"
Treehugger Robot [Thu, 15 Feb 2018 00:20:12 +0000 (00:20 +0000)]
Merge "init.rc: Mount /mnt with nodev,nosuid,noexec"

6 years agoMerge "ion_test.c: Fix c/p error in arg parse." am: f51886bbc4
Steven Moreland [Wed, 14 Feb 2018 23:41:33 +0000 (23:41 +0000)]
Merge "ion_test.c: Fix c/p error in arg parse." am: f51886bbc4
am: 23da76e246

Change-Id: I13b32269d54e9a4b0eb04e100dd9058b27142f1f

6 years agoMerge "init.rc: Remount / with MS_REMOUNT|MS_BIND" am: 008576080e
Luis Hector Chavez [Wed, 14 Feb 2018 23:40:56 +0000 (23:40 +0000)]
Merge "init.rc: Remount / with MS_REMOUNT|MS_BIND" am: 008576080e
am: c37d85953e

Change-Id: I3c71332e0755ff980cd052d182d251b13f6b440e

6 years agoMerge "ion_test.c: Fix c/p error in arg parse."
Steven Moreland [Wed, 14 Feb 2018 23:35:44 +0000 (23:35 +0000)]
Merge "ion_test.c: Fix c/p error in arg parse."
am: f51886bbc4

Change-Id: I91864b299077d374eeccc128b571ee04ea130480

6 years agoMerge "init.rc: Remount / with MS_REMOUNT|MS_BIND"
Luis Hector Chavez [Wed, 14 Feb 2018 23:34:58 +0000 (23:34 +0000)]
Merge "init.rc: Remount / with MS_REMOUNT|MS_BIND"
am: 008576080e

Change-Id: Ie48bb09b8f46ccdda809835fb29811fac8b44c6c

6 years agoMerge "ion_test.c: Fix c/p error in arg parse."
Treehugger Robot [Wed, 14 Feb 2018 23:25:23 +0000 (23:25 +0000)]
Merge "ion_test.c: Fix c/p error in arg parse."

6 years agoMerge "init.rc: Remount / with MS_REMOUNT|MS_BIND"
Treehugger Robot [Wed, 14 Feb 2018 23:24:01 +0000 (23:24 +0000)]
Merge "init.rc: Remount / with MS_REMOUNT|MS_BIND"

6 years agoMerge "Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds" am...
yusukes [Wed, 14 Feb 2018 21:21:39 +0000 (21:21 +0000)]
Merge "Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds" am: 7c6b024241
am: b94bff1d64

Change-Id: Iaa97b5ca5d791817d6da74b5f053b2a124d35a65

6 years agoMerge "Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds"
yusukes [Wed, 14 Feb 2018 21:16:53 +0000 (21:16 +0000)]
Merge "Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds"
am: 7c6b024241

Change-Id: I08851adfbb9a4fa01a65ca1af6a7c41d0643ca1d

6 years agoion_test.c: Fix c/p error in arg parse.
Steven Moreland [Wed, 14 Feb 2018 21:11:11 +0000 (13:11 -0800)]
ion_test.c: Fix c/p error in arg parse.

Bug/Test: N/A

Change-Id: Iad1ac3f057ed153429780242e138cec58e8ee764

6 years agoinit.rc: Add nodev,noexec,nosuid to /config
Luis Hector Chavez [Wed, 14 Feb 2018 16:35:01 +0000 (08:35 -0800)]
init.rc: Add nodev,noexec,nosuid to /config

This change adds some additional flags to the /config mount. This is to
reduce the number of mounts with unnecessary privileges.

Bug: 73255020
Test: aosp_sailfish still boots
Test: CtsAppSecurityHostTestCases {ExternalStorageHostTest,StorageHostTest}
Merged-In: If3409d917cdf76a67ebfb7c4035a3ae8fee6189f
Change-Id: If3409d917cdf76a67ebfb7c4035a3ae8fee6189f

6 years agoinit.rc: Mount /mnt with nodev,nosuid,noexec
Luis Hector Chavez [Wed, 14 Feb 2018 16:39:03 +0000 (08:39 -0800)]
init.rc: Mount /mnt with nodev,nosuid,noexec

This change adds some additional flags to /mnt. This is to reduce
the number of mounts with unnecessary flags.

Bug: 73255020
Test: aosp_sailfish still boots
Test: CtsAppSecurityHostTestCases {StorageHostTest,ExternalStorageHostTest}
Test: CtsOsTestCases StorageManagerTest
Test: find /mnt  | egrep -v '^/mnt/runtime/(default|read|write)/emulated' | \
      xargs ls -lZd  # Shows no character devices or executable files
Change-Id: I54739133119d9626ebeb2ef9a1c127f7a90fa098

6 years agoinit.rc: Remount / with MS_REMOUNT|MS_BIND
Luis Hector Chavez [Wed, 14 Feb 2018 16:36:16 +0000 (08:36 -0800)]
init.rc: Remount / with MS_REMOUNT|MS_BIND

Since we only want to change the ro flag on / (and leave all other mount
flags alone), this can also be achieved by passing MS_REMOUNT|MS_BIND,
even if the mount is not a bind-mount.

This aims to make running Android within a user namespace easier, since
remounts without the MS_BIND flag are forbidden.

Bug: 73255020
Test: aosp_sailfish still boots
Test: rootfs on / type rootfs (rw,seclabel)
      /dev/root on / type ext4 (ro,seclabel,relatime,data=ordered)
Change-Id: I2f89a8badfc467db47304c9355648e8fd8ad1272

6 years agoMerge "Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds"
Treehugger Robot [Wed, 14 Feb 2018 20:33:24 +0000 (20:33 +0000)]
Merge "Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds"

6 years agoPrevent WaitForProperty() from using ~100% of CPU time on 32bit builds
yusukes [Wed, 14 Feb 2018 02:28:50 +0000 (18:28 -0800)]
Prevent WaitForProperty() from using ~100% of CPU time on 32bit builds

Since 'struct timespec' members (time_t and long) are both 32bit on
32bit systems, and std::chrono::{seconds,nanoseconds}::rep are both
>32bit, timespec members assigned in DurationToTimeSpec() can have a
negative value, especially when WaitForProperty() is called with the
default timeout value which is std::chrono::milliseconds::max().

Regarding functionality, passing a negative value to
__system_property_wait() is okay because WaitForProperty() still
waits for the property value (so unit tests are passing), but while
WaitForProperty() does that, the function, to be more exact,
SystemProperties::Wait() in bionic/, consumes ~100% of CPU time. This
happens because SystemProperties::Wait() which implements
__system_property_wait() has a tight while-loop with a __futex_wait()
call, and the futex call immediately returns EINVAL when the timespec
passed in has a negative value.

With this CL, WaitForProperty() will never pass a negative timespec
to __system_property_wait(), and therefore the __futex_wait() call
in bionic works as expected without consuming too much CPU time even
on 32bit systems.

Bug: None
Test: libbase_test32 still passes
Test: strace no longer shows repeated EINVALs from __futex_wait
Change-Id: Id1834fac8cd2876b02dbe4479bf3d3eda2fa7da1

6 years agoMove libdexfile out of runtime
David Sehr [Wed, 14 Feb 2018 00:29:01 +0000 (16:29 -0800)]
Move libdexfile out of runtime

Move the files out of runtime, leaving unfortunate dependences still
there on runtime/base (for the moment).  Also separates the build logic
into two Android.bp files.

Bug: 22322814
Test: make -j 50 test-art-host
Change-Id: I54b06f035034e7564480cd5d4c33c4f62785682d

6 years agoMerge "Add tracing tags to vibrator" am: c415d00fbe
Alexey Kuzmin [Wed, 14 Feb 2018 16:22:14 +0000 (16:22 +0000)]
Merge "Add tracing tags to vibrator" am: c415d00fbe
am: 0f71d5fe53

Change-Id: Ifdaba4c1a0cf4eef02b4cd611ecab9668dbf2f6b

6 years agoMerge "Implement new DEX PC lookup scheme." am: f1e55f7a99
David Srbecky [Wed, 14 Feb 2018 16:21:00 +0000 (16:21 +0000)]
Merge "Implement new DEX PC lookup scheme." am: f1e55f7a99
am: c3aabea0b1

Change-Id: Idb582d40556504d8ba4e52b94f24f354d27cbc03

6 years agoMerge "Add tracing tags to vibrator"
Alexey Kuzmin [Wed, 14 Feb 2018 16:16:19 +0000 (16:16 +0000)]
Merge "Add tracing tags to vibrator"
am: c415d00fbe

Change-Id: Ic9e871085ae05ba68590623dc20f9c94f05fe0ec

6 years agoMerge "Implement new DEX PC lookup scheme."
David Srbecky [Wed, 14 Feb 2018 16:15:14 +0000 (16:15 +0000)]
Merge "Implement new DEX PC lookup scheme."
am: f1e55f7a99

Change-Id: I9e7161dbef33febe2b8eb4398ceee163815b7a8f

6 years agoMerge "Add tracing tags to vibrator"
Treehugger Robot [Wed, 14 Feb 2018 15:57:34 +0000 (15:57 +0000)]
Merge "Add tracing tags to vibrator"

6 years agoMerge "Implement new DEX PC lookup scheme."
David Srbecky [Wed, 14 Feb 2018 15:26:41 +0000 (15:26 +0000)]
Merge "Implement new DEX PC lookup scheme."

6 years agoMerge "Move libz to llndk from vndk-sp for non-VNDK-enforced devices." am: 524254f3df
Justin Yun [Wed, 14 Feb 2018 09:40:12 +0000 (09:40 +0000)]
Merge "Move libz to llndk from vndk-sp for non-VNDK-enforced devices." am: 524254f3df
am: 7987a191f6

Change-Id: Ie277aea1a52a766bc6291952ff837f255051fffb

6 years agoMerge "Move libz to llndk from vndk-sp for non-VNDK-enforced devices."
Justin Yun [Wed, 14 Feb 2018 09:34:07 +0000 (09:34 +0000)]
Merge "Move libz to llndk from vndk-sp for non-VNDK-enforced devices."
am: 524254f3df

Change-Id: I4436065d935dfb88a90dda18138a1f91ef7e7547

6 years agoMerge "Move libz to llndk from vndk-sp for non-VNDK-enforced devices."
Treehugger Robot [Wed, 14 Feb 2018 09:26:42 +0000 (09:26 +0000)]
Merge "Move libz to llndk from vndk-sp for non-VNDK-enforced devices."

6 years agoMove libz to llndk from vndk-sp for non-VNDK-enforced devices.
Justin Yun [Wed, 14 Feb 2018 05:07:59 +0000 (14:07 +0900)]
Move libz to llndk from vndk-sp for non-VNDK-enforced devices.

For non-VNDK-enforced devices, libz cannot be installed in vndk-sp
to avoid CTS test failure.
Move libz to llndk from vndk-sp for generating the namespace
configuration from ld.config.vndk_lite.txt.

Bug: 73296261
Test: run android.jni.cts test on marlin/sailfish
Change-Id: I1b8b43cd87dc8dfdd2667001ae1e50d9eaedf93d

6 years agoMerge "Fix PDK build" am: 24e34e4b8e
Logan Chien [Wed, 14 Feb 2018 03:16:49 +0000 (03:16 +0000)]
Merge "Fix PDK build" am: 24e34e4b8e
am: 9a393de28f

Change-Id: Ifbca60968122be56fc1aa4567354f26e5a41d848

6 years agoMerge "Fix PDK build"
Logan Chien [Wed, 14 Feb 2018 03:09:56 +0000 (03:09 +0000)]
Merge "Fix PDK build"
am: 24e34e4b8e

Change-Id: I559cb5436686fd9214dcabf7509fc8b176938c61

6 years agoMerge "Fix PDK build"
Logan Chien [Wed, 14 Feb 2018 03:03:57 +0000 (03:03 +0000)]
Merge "Fix PDK build"

6 years agoFix PDK build
Logan Chien [Tue, 13 Feb 2018 10:08:53 +0000 (18:08 +0800)]
Fix PDK build

This commit disables "bootstat" in PDK builds because "bootstat" depends
on "libstatslog" (from "frameworks/base") which is not included in PDK
builds as well.

Test: Build a target (described in http://b/72961456) with
`platform.zip` built from master FSK source tree.

Bug: 72961456
Change-Id: I06b1555694510e17ea82d5c6dfcdeaf99b905e4d

6 years agoMerge "Make log_event_list.h available to vendor code." am: fd01164a8d
Pavel Grafov [Wed, 14 Feb 2018 01:11:45 +0000 (01:11 +0000)]
Merge "Make log_event_list.h available to vendor code." am: fd01164a8d
am: ab30115581

Change-Id: Idc4109867a85d30bfacbd91ec725c78450641f23

6 years agoMerge "Make log_event_list.h available to vendor code."
Pavel Grafov [Wed, 14 Feb 2018 01:02:08 +0000 (01:02 +0000)]
Merge "Make log_event_list.h available to vendor code."
am: fd01164a8d

Change-Id: Ie72c87f9bf5a65ae6c806f9b35778e1e2788bfb3

6 years agoImplement new DEX PC lookup scheme.
Christopher Ferris [Tue, 13 Feb 2018 04:18:03 +0000 (20:18 -0800)]
Implement new DEX PC lookup scheme.

GDB wasn't handling the old one gracefully.

- Create a RegsInfo structure that can be used to properly eval expression
  data.
- Remove the versions on Dwarf ops. It doesn't work the in the real world
  and doesn't add useful information.
- Fix dex pc frame number bug.

Test: testrunner.py -j40 --host --cdex-fast -t 137
Test: libunwindstack_test
Test: All unit tests pass.
Change-Id: Iac4fea651b81cb6087fd237a9a5027a352a49245

6 years agoMerge "Make log_event_list.h available to vendor code."
Treehugger Robot [Wed, 14 Feb 2018 00:02:33 +0000 (00:02 +0000)]
Merge "Make log_event_list.h available to vendor code."

6 years agoMerge "adbd: receive jdwp pids from art as raw integers." am: d31df3a1be
Josh Gao [Wed, 14 Feb 2018 00:00:11 +0000 (00:00 +0000)]
Merge "adbd: receive jdwp pids from art as raw integers." am: d31df3a1be
am: f6a2296aff

Change-Id: Ib69f5cb5cc956ec8948cb0f1b997d6c6260d8888

6 years agoMerge "adbd: receive jdwp pids from art as raw integers."
Josh Gao [Tue, 13 Feb 2018 23:54:49 +0000 (23:54 +0000)]
Merge "adbd: receive jdwp pids from art as raw integers."
am: d31df3a1be

Change-Id: I91bba1e12a7b20e1e4be104dd306d0fdafa7af55

6 years agoMerge "adbd: receive jdwp pids from art as raw integers."
Treehugger Robot [Tue, 13 Feb 2018 23:34:49 +0000 (23:34 +0000)]
Merge "adbd: receive jdwp pids from art as raw integers."

6 years agoMove ActionParser to its own file
Tom Cherry [Tue, 13 Feb 2018 23:25:29 +0000 (15:25 -0800)]
Move ActionParser to its own file

Bug: 36970783
Test: build
Change-Id: Idd5b923e4789760bb9ef67c10982b2642bc6a31a

6 years agoMerge "init.rc: Perform some mounts with nodev,nosuid,noexec" am: cd66e4c6ea
Luis Hector Chavez [Tue, 13 Feb 2018 22:41:35 +0000 (22:41 +0000)]
Merge "init.rc: Perform some mounts with nodev,nosuid,noexec" am: cd66e4c6ea
am: 8cb681fa1f

Change-Id: I89c176ac07da5d238dd0391ddf31434fb69ead67

6 years agoMerge "init.rc: Perform some mounts with nodev,nosuid,noexec"
Luis Hector Chavez [Tue, 13 Feb 2018 22:32:40 +0000 (22:32 +0000)]
Merge "init.rc: Perform some mounts with nodev,nosuid,noexec"
am: cd66e4c6ea

Change-Id: I4d5496ae210c19f03ff1588f37cd848231f7b3e8

6 years agoMerge "init.rc: Perform some mounts with nodev,nosuid,noexec"
Treehugger Robot [Tue, 13 Feb 2018 21:02:47 +0000 (21:02 +0000)]
Merge "init.rc: Perform some mounts with nodev,nosuid,noexec"

6 years agoMake log_event_list.h available to vendor code.
Pavel Grafov [Thu, 8 Feb 2018 19:20:56 +0000 (19:20 +0000)]
Make log_event_list.h available to vendor code.

This is required in order to be able to log audit
events from wpa_supplicant. Only log writing functions
from log_event_list.h are made available.

Test: manually
Bug: 70886042
Change-Id: I097d4ad1de573662658678e6a9f1fc8f17820542

6 years agoAdd tracing tags to vibrator
Alexey Kuzmin [Sat, 10 Feb 2018 15:11:38 +0000 (15:11 +0000)]
Add tracing tags to vibrator

Now all somewhat time-consuming methods of the VibratorService
are surrounded by traceBegin/traceEnd blocks.
The vibration itself is surrounded with asyncTrace block.

Test: Run "systrace vibrator" and see the time consumption report.
Bug: 73000045
Merged-In: I94172e379354ec3418321b8151e6182cec2e886c
Change-Id: I94172e379354ec3418321b8151e6182cec2e886c

6 years agoMerge "Remove urb request size maximum." am: 1cb765c867
Jerry Zhang [Tue, 13 Feb 2018 08:13:45 +0000 (08:13 +0000)]
Merge "Remove urb request size maximum." am: 1cb765c867
am: 1ab6e9d018

Change-Id: Ib11513a31b2f1d02a35adc0da16f616a0c2da307

6 years agoMerge "Fix computation of pc." am: 71fa8125b9
Christopher Ferris [Tue, 13 Feb 2018 08:11:57 +0000 (08:11 +0000)]
Merge "Fix computation of pc." am: 71fa8125b9
am: b84d662e54

Change-Id: I92ea4539584cc79926e178a1e2e5d36581fd1fce

6 years agoMerge "adb: fix build breakage." am: 14d7cdce51
Josh Gao [Tue, 13 Feb 2018 08:10:15 +0000 (08:10 +0000)]
Merge "adb: fix build breakage." am: 14d7cdce51
am: a4c4ef463b

Change-Id: I49766025464814d15029196a080477f6b8aa5215

6 years agoMerge "adb: use delete on objects with destructors." am: e504360f3d
Josh Gao [Tue, 13 Feb 2018 08:05:45 +0000 (08:05 +0000)]
Merge "adb: use delete on objects with destructors." am: e504360f3d
am: 854879ecdc

Change-Id: I1048bf7c391b1570845b99e7e2846eb71e2c3160

6 years agoMerge "Remove urb request size maximum."
Jerry Zhang [Tue, 13 Feb 2018 07:40:07 +0000 (07:40 +0000)]
Merge "Remove urb request size maximum."
am: 1cb765c867

Change-Id: I2915011f47e312888d5e330be62cf76576d9cf3a

6 years agoMerge "Fix computation of pc."
Christopher Ferris [Tue, 13 Feb 2018 07:38:23 +0000 (07:38 +0000)]
Merge "Fix computation of pc."
am: 71fa8125b9

Change-Id: I2a600c1fbe47ff5e4efadc0ff961d174b64f29c3

6 years agoMerge "adb: fix build breakage."
Josh Gao [Tue, 13 Feb 2018 07:36:35 +0000 (07:36 +0000)]
Merge "adb: fix build breakage."
am: 14d7cdce51

Change-Id: I497739c7573be43483fd801ec2083f66fa425305

6 years agoMerge "adb: use delete on objects with destructors."
Josh Gao [Tue, 13 Feb 2018 07:33:45 +0000 (07:33 +0000)]
Merge "adb: use delete on objects with destructors."
am: e504360f3d

Change-Id: I1ade6caf84ed8798db5ae194e52c9187789a885d

6 years agoMerge "Remove urb request size maximum."
Treehugger Robot [Tue, 13 Feb 2018 07:25:04 +0000 (07:25 +0000)]
Merge "Remove urb request size maximum."

6 years agoMerge "Fix computation of pc."
Christopher Ferris [Tue, 13 Feb 2018 03:02:19 +0000 (03:02 +0000)]
Merge "Fix computation of pc."

6 years agoMerge "adb: fix build breakage."
Josh Gao [Tue, 13 Feb 2018 02:05:52 +0000 (02:05 +0000)]
Merge "adb: fix build breakage."

6 years agoadb: fix build breakage.
Josh Gao [Tue, 13 Feb 2018 02:03:49 +0000 (18:03 -0800)]
adb: fix build breakage.

Test: mma
Change-Id: Id8e7ffd2212449bbac5b64b50e7b3aef7e97d649

6 years agoMerge "adb: use delete on objects with destructors."
Josh Gao [Tue, 13 Feb 2018 01:37:46 +0000 (01:37 +0000)]
Merge "adb: use delete on objects with destructors."

6 years agoadb: use delete on objects with destructors.
Josh Gao [Tue, 13 Feb 2018 01:24:00 +0000 (17:24 -0800)]
adb: use delete on objects with destructors.

asocket has a destructor now, so we have to delete it, or leak the
data pointed to by its std::string.

Bug: http://b/73257049
Test: manual testing with asan
Change-Id: Ia88199292cc74e10032a9a16226d3afc61c3e0be

6 years agoMerge "Support * as a wildcard for ATRACE_TAG_APP" am: 53c964f53b
Daniel Colascione [Mon, 12 Feb 2018 23:20:29 +0000 (23:20 +0000)]
Merge "Support * as a wildcard for ATRACE_TAG_APP" am: 53c964f53b
am: 2e50045f60

Change-Id: I8b593eb2752483b825acfac55eba5013fd427f33

6 years agoinit.rc: Perform some mounts with nodev,nosuid,noexec
Luis Hector Chavez [Mon, 12 Feb 2018 19:30:46 +0000 (11:30 -0800)]
init.rc: Perform some mounts with nodev,nosuid,noexec

This change adds some additional flags to some mounts. This is to reduce
the number of mounts with these flags.

Bug: 73255020
Test: aosp_sailfish still boots
Change-Id: I285e6d7b3dcc19f691a3d6780e7d3a3a5d7cb3de

6 years agoMerge "Support * as a wildcard for ATRACE_TAG_APP"
Daniel Colascione [Mon, 12 Feb 2018 23:14:23 +0000 (23:14 +0000)]
Merge "Support * as a wildcard for ATRACE_TAG_APP"
am: 53c964f53b

Change-Id: Ie6721a7c126908a6c1522a578094434a09b29db3

6 years agoadbd: receive jdwp pids from art as raw integers.
Josh Gao [Mon, 12 Feb 2018 23:05:05 +0000 (15:05 -0800)]
adbd: receive jdwp pids from art as raw integers.

Don't go through a pointless conversion to hex that reduces our maximum
pid to 64k.

Bug: http://b/17661822
Test: `adb jdwp`
Change-Id: Idd572eac827f3ed3825ac2cf55fc4db109e70854

6 years agoMerge "Support * as a wildcard for ATRACE_TAG_APP"
Daniel Colascione [Mon, 12 Feb 2018 22:51:33 +0000 (22:51 +0000)]
Merge "Support * as a wildcard for ATRACE_TAG_APP"

6 years agoFix computation of pc.
Christopher Ferris [Mon, 12 Feb 2018 21:24:18 +0000 (13:24 -0800)]
Fix computation of pc.

Fix the case where a non-zero load bias or a non-zero elf offset causes
the pc to be set incorrectly.

Add unit tests for these cases.

Bug: 73172903

Test: Ran unit tests.
Test: Ran the unit tests from the simpleperf CL that detected the failure.
Change-Id: Id8802c00b34c66875edd4926a20c5fccd2bb7d72

6 years agoMerge "Fix off by 4 error handling eh_frame hdr." am: 73a2508dc4
Christopher Ferris [Mon, 12 Feb 2018 20:22:27 +0000 (20:22 +0000)]
Merge "Fix off by 4 error handling eh_frame hdr." am: 73a2508dc4
am: 5384c29b55

Change-Id: I594b42148331d1349f8733eb36460c85a2d8bcd4

6 years agoMerge "Fix a few demangler issues." am: ecff589728
Elliott Hughes [Mon, 12 Feb 2018 20:21:46 +0000 (20:21 +0000)]
Merge "Fix a few demangler issues." am: ecff589728
am: bb5b8ab90d

Change-Id: I942d758028657ba9fbc613a50e4e91bcb62681d4

6 years agoMerge "Clear dex pc to avoid duplicate frames." am: 643f1e93ae
Christopher Ferris [Mon, 12 Feb 2018 20:20:52 +0000 (20:20 +0000)]
Merge "Clear dex pc to avoid duplicate frames." am: 643f1e93ae
am: d25de127bf

Change-Id: Ie3c6e1cb4c8f1b2a212a2b6ea872c51a267bfe2d

6 years agoMerge "Fix off by 4 error handling eh_frame hdr."
Christopher Ferris [Mon, 12 Feb 2018 20:09:12 +0000 (20:09 +0000)]
Merge "Fix off by 4 error handling eh_frame hdr."
am: 73a2508dc4

Change-Id: Ic5374ce8305b29fa471bd2591a1943918ac74111

6 years agoMerge "Fix a few demangler issues."
Elliott Hughes [Mon, 12 Feb 2018 20:08:27 +0000 (20:08 +0000)]
Merge "Fix a few demangler issues."
am: ecff589728

Change-Id: I4cd74455f1055ab02c0599035e3d789ce8a97520

6 years agoMerge "Clear dex pc to avoid duplicate frames."
Christopher Ferris [Mon, 12 Feb 2018 20:07:46 +0000 (20:07 +0000)]
Merge "Clear dex pc to avoid duplicate frames."
am: 643f1e93ae

Change-Id: I1efa6a2331da06a019b126924ec0ca074068760d

6 years agoMerge "Fix off by 4 error handling eh_frame hdr."
Christopher Ferris [Mon, 12 Feb 2018 18:58:34 +0000 (18:58 +0000)]
Merge "Fix off by 4 error handling eh_frame hdr."

6 years agoMerge "Fix a few demangler issues."
Elliott Hughes [Mon, 12 Feb 2018 18:54:29 +0000 (18:54 +0000)]
Merge "Fix a few demangler issues."

6 years agoMerge "Clear dex pc to avoid duplicate frames."
Christopher Ferris [Mon, 12 Feb 2018 18:44:20 +0000 (18:44 +0000)]
Merge "Clear dex pc to avoid duplicate frames."

6 years agoClear dex pc to avoid duplicate frames.
Christopher Ferris [Mon, 12 Feb 2018 16:46:19 +0000 (08:46 -0800)]
Clear dex pc to avoid duplicate frames.

Bug: 73228466

Test: Passes new unit tests, fails without change.
Change-Id: I3660bfd16cbf2d5cf96490ca7714bc5f97914884

6 years agoFix off by 4 error handling eh_frame hdr.
Christopher Ferris [Fri, 9 Feb 2018 23:57:39 +0000 (15:57 -0800)]
Fix off by 4 error handling eh_frame hdr.

- Add a new tool that can dump the register information given a pc.
- Add a new offline unwinder test that fails without this change.
- Update unit tests.
- Refactor offline unwind tests to make it easier to add tests.

Bug: 73048324

Test: Passes new unit tests.
Test: Passes libbacktrace unit tests.
Test: Ran debuggerd -b on random processes.
Change-Id: If6c70a044299505c2274ae6888b35bf9ac34b74b

6 years agoSupport * as a wildcard for ATRACE_TAG_APP
Daniel Colascione [Sat, 10 Feb 2018 04:07:23 +0000 (20:07 -0800)]
Support * as a wildcard for ATRACE_TAG_APP

Test: strcmp
Change-Id: I33ec3ae071e3856538444663bbabb3c779ed8afa

6 years agoMerge "debuggerd_fallback: fix race." am: cd2fa1f432
Josh Gao [Sat, 10 Feb 2018 02:05:47 +0000 (02:05 +0000)]
Merge "debuggerd_fallback: fix race." am: cd2fa1f432
am: 135dacd4d1

Change-Id: I5330f48b7f1d713644465865ac33badcce046d7a

6 years agoMerge "debuggerd_fallback: fix race."
Josh Gao [Sat, 10 Feb 2018 01:59:44 +0000 (01:59 +0000)]
Merge "debuggerd_fallback: fix race."
am: cd2fa1f432

Change-Id: Ie074a05e7eacbf8234c4ece44e98a9f8b5b96a2e

6 years agoMerge "debuggerd_fallback: fix race."
Treehugger Robot [Sat, 10 Feb 2018 01:44:07 +0000 (01:44 +0000)]
Merge "debuggerd_fallback: fix race."

6 years agoFix a few demangler issues.
Elliott Hughes [Sat, 10 Feb 2018 01:30:14 +0000 (17:30 -0800)]
Fix a few demangler issues.

Specifically:

  * rvalue references.

  * St does not require N...E delimiters (explicit special case in the spec).

  * ".cfi" suffixes.

Bug: http://b/67678053
Test: ran tests
Change-Id: If8cabad448b46b165eefc6c5487996428c9c6975

6 years agodebuggerd_fallback: fix race.
Josh Gao [Wed, 24 Jan 2018 22:23:42 +0000 (14:23 -0800)]
debuggerd_fallback: fix race.

A race condition occurs when one thread takes more than a second to get
scheduled to handle the signal we send to ask it to dump its stack.
When this happens, the main thread will continue on, close the fd, and
then ask the next thread to dump, but the slow thread will then wake up
and try to write to the new thread's fd, or trigger an assertion in
__linker_enable_fallback_allocator.

Do a few things to make this less bad:
  - encode both target tid and fd in the shared atomic, so that we know
    who each fd is for
  - switch __linker_enable_fallback_allocator to return success instead
    of aborting, and bail out if it's already in use
  - write to the output fd right when we get to it, instead of doing it
    whenever the dumping code decides to, to reduce the likelihood that
    the timeout expires

Test: debuggerd_test
Change-Id: Ife0f6dae388b601e7f991605f14d7a0274013f6b

6 years agoMerge "Add explanation for clone use" am: bac72c884f
Daniel Colascione [Fri, 9 Feb 2018 22:30:14 +0000 (22:30 +0000)]
Merge "Add explanation for clone use" am: bac72c884f
am: c9d48b25fc

Change-Id: If5ceab48cb09a3d0f12bbfceb55dce061685d6ed

6 years agoMerge "Expose per arch headers." am: 99888af9f1
Christopher Ferris [Fri, 9 Feb 2018 22:28:07 +0000 (22:28 +0000)]
Merge "Expose per arch headers." am: 99888af9f1
am: 8711fbb08c

Change-Id: If25ba3a408bbf579cd0d99fcc0da6a8a1087cc91

6 years agoMerge "Add explanation for clone use"
Daniel Colascione [Fri, 9 Feb 2018 22:07:47 +0000 (22:07 +0000)]
Merge "Add explanation for clone use"
am: bac72c884f

Change-Id: Ica0d295c327b0b8c20cf5feac859acec4222b48d

6 years agoMerge "Expose per arch headers."
Christopher Ferris [Fri, 9 Feb 2018 22:05:57 +0000 (22:05 +0000)]
Merge "Expose per arch headers."
am: 99888af9f1

Change-Id: Ic26c025b5edae7867795c38074e6314b75d75d89

6 years agoMerge "Add explanation for clone use"
Daniel Colascione [Fri, 9 Feb 2018 19:33:09 +0000 (19:33 +0000)]
Merge "Add explanation for clone use"

6 years agoMerge "Expose per arch headers."
Christopher Ferris [Fri, 9 Feb 2018 19:23:31 +0000 (19:23 +0000)]
Merge "Expose per arch headers."

6 years agoMerge "debuggerd: update policy for recent sigaction changes." am: 26b69296fe
Josh Gao [Fri, 9 Feb 2018 07:28:20 +0000 (07:28 +0000)]
Merge "debuggerd: update policy for recent sigaction changes." am: 26b69296fe
am: 6ab5e9c96b

Change-Id: I9825660d92f51a37003951566348b19074495713