Commit graph

28316 commits

Author SHA1 Message Date
Josh Gao
8370e4ae8b cutils: add adb trace tag. am: e2d9732682 am: 49d9efe777 am: 8f0e42f839
am: 69fb5721e5

Change-Id: I02b1e538ef559893c2c0a1d717702b818cd8b97e
2016-12-13 01:10:54 +00:00
Josh Gao
f64256f47f libutils: allow multiple ATRACE_NAMEs in a scope. am: 01937ee2b9 am: d28920f745 am: e152b1b418
am: e12d7beedf

Change-Id: Idf23a284f706ba0ce1f29c7d1a69902c99985595
2016-12-13 01:10:45 +00:00
Josh Gao
69fb5721e5 cutils: add adb trace tag. am: e2d9732682 am: 49d9efe777
am: 8f0e42f839

Change-Id: Id2f96e4fc8cc56f616f0d8dc1caa2ccefa4d00c6
2016-12-13 00:56:15 +00:00
Josh Gao
e12d7beedf libutils: allow multiple ATRACE_NAMEs in a scope. am: 01937ee2b9 am: d28920f745
am: e152b1b418

Change-Id: Ibc2c1f24bac30b7370a166e23d4186376d45cd83
2016-12-13 00:56:05 +00:00
Josh Gao
8f0e42f839 cutils: add adb trace tag. am: e2d9732682
am: 49d9efe777

Change-Id: I58394172c9405f67bf86026aa8dca0b270be629f
2016-12-13 00:43:13 +00:00
Josh Gao
e152b1b418 libutils: allow multiple ATRACE_NAMEs in a scope. am: 01937ee2b9
am: d28920f745

Change-Id: Ieebcb45ddb94e4a05126ae2c564cfeb2827ec9b8
2016-12-13 00:43:05 +00:00
Josh Gao
49d9efe777 cutils: add adb trace tag.
am: e2d9732682

Change-Id: Iad5fbc8713db9b1a3ac1206f6d8610ae835ff36a
2016-12-13 00:37:09 +00:00
Josh Gao
d28920f745 libutils: allow multiple ATRACE_NAMEs in a scope.
am: 01937ee2b9

Change-Id: Iebecafe4f82249f29458279461c52e6c8d08e80e
2016-12-13 00:37:01 +00:00
Josh Gao
e2d9732682 cutils: add adb trace tag.
Bug: http://b/31289465
Test: systrace
Change-Id: I8537731febc6629f055b86f6e19b16104208c4f8
2016-12-12 12:28:45 -08:00
Josh Gao
01937ee2b9 libutils: allow multiple ATRACE_NAMEs in a scope.
Bug: http://b/31289465
Test: m
Change-Id: Iabd97439fa55ea285ce0501dbb4fd9d07149ae61
2016-12-12 12:28:04 -08:00
Nick Kralevich
f4ed76f80a Merge "init/service.cpp: fix FD leak for services with consoles" am: 4173d9b57c am: 869ce5d40a am: 9bebb6f3a3
am: 90007c54c2

Change-Id: If188ed43c8a040472231fd552682118a59d3b88e
2016-12-10 22:30:12 +00:00
Nick Kralevich
90007c54c2 Merge "init/service.cpp: fix FD leak for services with consoles" am: 4173d9b57c am: 869ce5d40a
am: 9bebb6f3a3

Change-Id: Id9c363a2fc3519c2c821be8b7e5511150f85dd26
2016-12-10 22:24:07 +00:00
Nick Kralevich
9bebb6f3a3 Merge "init/service.cpp: fix FD leak for services with consoles" am: 4173d9b57c
am: 869ce5d40a

Change-Id: I10da3853a13192ed91a405894a96086262be2aa2
2016-12-10 22:18:07 +00:00
Nick Kralevich
869ce5d40a Merge "init/service.cpp: fix FD leak for services with consoles"
am: 4173d9b57c

Change-Id: Iaf8e2857ccb425cc7a41f286f5353c76333cba9d
2016-12-10 22:12:06 +00:00
Treehugger Robot
4173d9b57c Merge "init/service.cpp: fix FD leak for services with consoles" 2016-12-10 22:07:27 +00:00
Nick Kralevich
9596d2b95d init/service.cpp: fix FD leak for services with consoles
When init starts a service with a console, it tests for the presence of
a readable/writable console device. The test results in a leaked file
descriptor.

Use access() instead of open() to avoid leaking file descriptors.

Bug introduced in 70daa67062.

Test: compiles and device boots
Change-Id: I4efcfa0bb2cdb09f0455bc04a3a91e784bda7962
2016-12-10 12:20:11 -08:00
Elliott Hughes
28fb5ed34e Merge changes from topic 'fsconfig-2' am: b0aa8b2369 am: 1e62d3e0b8 am: 273ff8c303
am: 693ff6a763

Change-Id: I0d304316e2edeb92ca06bac26623713b47867353
2016-12-10 00:50:30 +00:00
William Roberts
46355e65f2 fs_config: add comment to header am: acdf527c52 am: d677b76496 am: eb935ab12f
am: 188351e040

Change-Id: If216861333e95a454968a33f88ef600902a8b3d4
2016-12-10 00:46:44 +00:00
William Roberts
a0cbe589ed android_ids: move to bionic am: bc56847e84 am: d0abdb75a1 am: 22f13c4b11
am: 3682a6311f

Change-Id: I5ddba953ea38efcf04aad63f23b78f762f749a89
2016-12-10 00:46:37 +00:00
Elliott Hughes
693ff6a763 Merge changes from topic 'fsconfig-2' am: b0aa8b2369 am: 1e62d3e0b8
am: 273ff8c303

Change-Id: I64c687c900766f5729eb6f593e7a1758c7076d1c
2016-12-10 00:39:19 +00:00
William Roberts
188351e040 fs_config: add comment to header am: acdf527c52 am: d677b76496
am: eb935ab12f

Change-Id: I09a9e9a1bdf2e75541c7ee9451a2aaec7d73dc7f
2016-12-10 00:36:58 +00:00
William Roberts
3682a6311f android_ids: move to bionic am: bc56847e84 am: d0abdb75a1
am: 22f13c4b11

Change-Id: I5d6e71177ea4092b435442dd1d93f38b3ec39221
2016-12-10 00:36:54 +00:00
Elliott Hughes
273ff8c303 Merge changes from topic 'fsconfig-2' am: b0aa8b2369
am: 1e62d3e0b8

Change-Id: Ibd32587a7a9a4378b6549cb3e7bfeb4024943235
2016-12-10 00:28:54 +00:00
William Roberts
eb935ab12f fs_config: add comment to header am: acdf527c52
am: d677b76496

Change-Id: I316ec2007287fa9bfc78d7f57c869b4b42f05245
2016-12-10 00:27:10 +00:00
William Roberts
22f13c4b11 android_ids: move to bionic am: bc56847e84
am: d0abdb75a1

Change-Id: Icee28bc9e7a8a768fe9046ced8ef7eacd177c71a
2016-12-10 00:25:28 +00:00
Elliott Hughes
1e62d3e0b8 Merge changes from topic 'fsconfig-2'
am: b0aa8b2369

Change-Id: I74940187c6aa296af360a93718015d6aaf3bce38
2016-12-10 00:24:28 +00:00
William Roberts
d677b76496 fs_config: add comment to header
am: acdf527c52

Change-Id: Ie861f2f18060f56b6cc21ec4b8c2df291ea5d435
2016-12-10 00:21:43 +00:00
William Roberts
d0abdb75a1 android_ids: move to bionic
am: bc56847e84

Change-Id: I45393361b58370755f88793e84e2ef59b53a16ea
2016-12-10 00:21:39 +00:00
Elliott Hughes
b0aa8b2369 Merge changes from topic 'fsconfig-2'
* changes:
  fs_config: add comment to header
  android_ids: move to bionic
2016-12-10 00:13:05 +00:00
Mark Salyzyn
9b66d51a1f Merge "utils: Add FastStrcmp.h" am: 0f8890d985 am: dcd44168d3 am: 54890a929c
am: 41c99f83d9

Change-Id: Ic0d10a2a6536a75c5d99345475135418fc943380
2016-12-10 00:00:27 +00:00
Mark Salyzyn
41c99f83d9 Merge "utils: Add FastStrcmp.h" am: 0f8890d985 am: dcd44168d3
am: 54890a929c

Change-Id: I77c13337d773d93a002c1b7c8cf6b7d14e39abbc
2016-12-09 23:54:23 +00:00
Mark Salyzyn
54890a929c Merge "utils: Add FastStrcmp.h" am: 0f8890d985
am: dcd44168d3

Change-Id: Ieb447b205b04bb1ccfc5d61ad24c3d52b89ec232
2016-12-09 23:48:53 +00:00
Mark Salyzyn
dcd44168d3 Merge "utils: Add FastStrcmp.h"
am: 0f8890d985

Change-Id: Iaffc6c6cf76c3a018f44f7ea5a8f865598d7db74
2016-12-09 23:44:23 +00:00
Mark Salyzyn
0f8890d985 Merge "utils: Add FastStrcmp.h" 2016-12-09 23:37:15 +00:00
Mark Salyzyn
0eeb06b932 utils: Add FastStrcmp.h
Move existing fast<str*cmp> templates for general use, pulled from
the implementation used in logd that dealt with speed through cache
locality and subroutine call mitigation.  Rename to fastcmp.

Test: logd-benchmarks and based on manual profiling from the past
Bug: 31456426
Change-Id: Ic62f4a437fc3e06ffdeaae73a6f34e197957a6b0
2016-12-09 12:40:17 -08:00
William Roberts
acdf527c52 fs_config: add comment to header
Add a comment to android_filesystem_config.h
about AID and OEM Range "scraping" done by
build/tools/fs_config.

Test: Build and boot.

Change-Id: I2d4845d91546ae967a1ee5166b73d119938faccc
Signed-off-by: William Roberts <william.c.roberts@intel.com>
2016-12-08 16:57:17 -08:00
William Roberts
bc56847e84 android_ids: move to bionic
Prevent others from using android_ids and force them
to use grp.h and pwd.h family of functions.

Test: Build and boot, verify services are running properly.
Bug: 27999086

Change-Id: Idcd75cf7e91a49ef07a0ed3bdb514ad61aa82e69
Signed-off-by: William Roberts <william.c.roberts@intel.com>
2016-12-08 16:57:17 -08:00
Yabin Cui
a2fc416d6d Merge "libbacktrace_offline: support .ARM.exidx." am: aece425166 am: 76977937e2 am: 63abbbcbf3
am: 50a4b90604

Change-Id: I3e3a1b881c704e04e8a6f246328cb3610e2bd20d
2016-12-07 20:52:50 +00:00
Yabin Cui
50a4b90604 Merge "libbacktrace_offline: support .ARM.exidx." am: aece425166 am: 76977937e2
am: 63abbbcbf3

Change-Id: I8397f7495447272e36bba23ba92b1e62c77b3d41
2016-12-07 20:48:51 +00:00
Yabin Cui
63abbbcbf3 Merge "libbacktrace_offline: support .ARM.exidx." am: aece425166
am: 76977937e2

Change-Id: Id40e98b5cb0d821114744d6aa83b36c1fd995b2b
2016-12-07 20:44:52 +00:00
Yabin Cui
76977937e2 Merge "libbacktrace_offline: support .ARM.exidx."
am: aece425166

Change-Id: I7b3821a215ed07753e3f8e71509807cf7639af3f
2016-12-07 20:41:21 +00:00
Yabin Cui
aece425166 Merge "libbacktrace_offline: support .ARM.exidx." 2016-12-07 20:34:32 +00:00
Yabin Cui
5d991bc351 libbacktrace_offline: support .ARM.exidx.
1. Read .ARM.exidx and .ARM.extab, provides these data to libunwind
through AccessMem.
2. In FindProcInfo, search .ARM.exidx for the idx entry of function
containing ip.
3. Add structures to store .ARM.exidx info in DebugFrameInfo, and
clean up the structure.
4. Add tests to test each unwind information (.eh_frame, .debug_frame,
.gnu_debugdata, .ARM.exidx) separately.

Bug: http://b/30974693
Test: run backtrace_test.
Test: run simpleperf runtest.py.
Change-Id: I9377a54379158bd35860efcf0e011423be7350d4
2016-12-07 10:25:33 -08:00
Nick Kralevich
6b7765c7a0 resolve merge conflicts of 48d4fe1 to nyc-mr1-dev-plus-aosp am: ee9c24d6e0
am: 269d37eac1

Change-Id: I77fbe3bdb24955b07ace6344430f693574ff95c6
2016-12-07 13:40:58 +00:00
Nick Kralevich
269d37eac1 resolve merge conflicts of 48d4fe1 to nyc-mr1-dev-plus-aosp
am: ee9c24d6e0

Change-Id: Iac0dd8e4335b81d43b8939f0a70474913ccc2584
2016-12-07 13:36:58 +00:00
Nick Kralevich
44b5336cca resolve merge conflicts of a71003d to nyc-mr2-dev-plus-aosp
am: bd7bd1be80

Change-Id: I237eb410733996700b098c73ba625290648647dc
2016-12-07 13:32:58 +00:00
Nick Kralevich
bd7bd1be80 resolve merge conflicts of a71003d to nyc-mr2-dev-plus-aosp
Test: Android compiles.
Change-Id: Ifa47225939dc6f59890b5c5fd1584547c09605a6
2016-12-07 05:25:04 -08:00
Nick Kralevich
ee9c24d6e0 resolve merge conflicts of 48d4fe1 to nyc-mr1-dev-plus-aosp
Test: Android compiles.
Change-Id: Ibee3f2dae93e9d1bc7171588c1aa41b53e177687
2016-12-07 05:20:25 -08:00
Nick Kralevich
a71003da66 change /data/bugreports to /bugreports am: 04bbd5c6dd am: 8be42a8040 am: c740d0b56c
am: 48d4fe138e

Change-Id: I7d447d2b87937608a1cb8949b8065466a4b02e07
2016-12-07 13:17:27 +00:00
Nick Kralevich
48d4fe138e change /data/bugreports to /bugreports am: 04bbd5c6dd am: 8be42a8040
am: c740d0b56c

Change-Id: I5a6bb69289ce44ea8b1e92a66a655d2e9d1e967e
2016-12-07 13:13:57 +00:00