Commit graph

37903 commits

Author SHA1 Message Date
Yao Chen
8bbdb98d16 Merge "Allow stats buffer to be empty in liblog CTS." am: 41a9b3c81d am: 5b5ffbda22
am: f61b8e2dc6

Change-Id: I77bd32805cb353e258e42018b95526578744399b
2017-10-25 23:19:34 +00:00
Yao Chen
f61b8e2dc6 Merge "Allow stats buffer to be empty in liblog CTS." am: 41a9b3c81d
am: 5b5ffbda22

Change-Id: Id569cda2294fb12f6ff9bd36b6be9bf027ffd5c6
2017-10-25 23:18:00 +00:00
Yao Chen
5b5ffbda22 Merge "Allow stats buffer to be empty in liblog CTS."
am: 41a9b3c81d

Change-Id: I05e9dc0ae0ad1eea67f0739403aa8160f472f848
2017-10-25 23:15:24 +00:00
Treehugger Robot
41a9b3c81d Merge "Allow stats buffer to be empty in liblog CTS." 2017-10-25 23:09:32 +00:00
Yao Chen
07320dc0a3 Allow stats buffer to be empty in liblog CTS.
Bug: 68205209
Test: CtsLiblogTestCases
Change-Id: I846c7cf72c54b02c2bc67c9c9e37b5cf4ae3da2b
2017-10-25 13:46:42 -07:00
Elliott Hughes
446ab4a378 Merge "Remove Foreground Boost CPUSet" am: 77451492bc am: 17c8a89a08
am: 4921f97fe3

Change-Id: I8f5d7f438c41969a623d0468bb96150824feded7
2017-10-25 20:05:58 +00:00
Elliott Hughes
4921f97fe3 Merge "Remove Foreground Boost CPUSet" am: 77451492bc
am: 17c8a89a08

Change-Id: I08f25d4a799fdb7f3c5b415675dd3c50fa65fe93
2017-10-25 20:02:19 +00:00
Elliott Hughes
17c8a89a08 Merge "Remove Foreground Boost CPUSet"
am: 77451492bc

Change-Id: Ifc5f8a8313a95e5a42a9f4440dd643acfaf9ca53
2017-10-25 19:59:42 +00:00
Elliott Hughes
77451492bc Merge "Remove Foreground Boost CPUSet" 2017-10-25 19:55:50 +00:00
Christopher Ferris
c728e2492d Merge "Add an interface for stopping in certain maps." am: 3adedf9895 am: 4e9a5eec5d
am: b247b6f939

Change-Id: I3ba56d8f35f81a70b320de1efdefe17aeb296f34
2017-10-25 19:33:52 +00:00
Christopher Ferris
b247b6f939 Merge "Add an interface for stopping in certain maps." am: 3adedf9895
am: 4e9a5eec5d

Change-Id: If597b7572324c590a2ab977be455efea91831e32
2017-10-25 19:30:41 +00:00
Christopher Ferris
4e9a5eec5d Merge "Add an interface for stopping in certain maps."
am: 3adedf9895

Change-Id: I4e7a08cb71592441f0b3ace4ced1d7cb17985695
2017-10-25 19:25:44 +00:00
Christopher Ferris
3adedf9895 Merge "Add an interface for stopping in certain maps." 2017-10-25 19:18:21 +00:00
Christopher Ferris
49434ab1b1 Merge "Remove PauseTiming/ResumeTiming calls." am: 1ab86ad3bc am: 71a738b8ab
am: 8975011866

Change-Id: I85236d49431358eeda8d1b5ad2cb3d27f80fe785
2017-10-24 23:26:36 +00:00
Christopher Ferris
8975011866 Merge "Remove PauseTiming/ResumeTiming calls." am: 1ab86ad3bc
am: 71a738b8ab

Change-Id: I96e22136db783e51ae4aa6c197911f0a40dd50eb
2017-10-24 23:24:03 +00:00
Christopher Ferris
71a738b8ab Merge "Remove PauseTiming/ResumeTiming calls."
am: 1ab86ad3bc

Change-Id: I1c1e3a58b668726e674cc2fb2ded3481052e3059
2017-10-24 23:22:01 +00:00
Christopher Ferris
1ab86ad3bc Merge "Remove PauseTiming/ResumeTiming calls." 2017-10-24 23:14:49 +00:00
Christopher Ferris
1cb84cea2f Add an interface for stopping in certain maps.
Also, change the std::set parameters to std::vector. As jmgao points out,
a small std::set is not really the best choice for performance reasons.

Test: All unit tests pass, enabled the new unwinder and did a kill -3 on
Test: an android process.
Change-Id: I81227d7b79a9b7cf1d54fb0e3331d3cf4d4d3c4f
2017-10-24 15:45:59 -07:00
Christopher Ferris
702b03868a Merge "If the pc is set to zero, the unwind is done." am: 09123383cb am: 95d2c890c3
am: ae5a8233d7

Change-Id: I5c6a28271f21e46a622657e7b7d4fb3ed6393b19
2017-10-24 21:09:06 +00:00
Christopher Ferris
ae5a8233d7 Merge "If the pc is set to zero, the unwind is done." am: 09123383cb
am: 95d2c890c3

Change-Id: Ia12107ec50cf5dfd41cf9500a97aaaf5845dc4e6
2017-10-24 20:59:23 +00:00
Christopher Ferris
95d2c890c3 Merge "If the pc is set to zero, the unwind is done."
am: 09123383cb

Change-Id: I0583cd83dfba1429e74a1be5e8e4a8fefb815171
2017-10-24 20:56:53 +00:00
Branislav Rankov
af2f073f7a Merge "libutils: Fix bug in strstr16." am: b128c78aef am: 0c41d457b9
am: f50a1ccce6

Change-Id: I6c1854f994bd94631aae8e040dd62dd332a81689
2017-10-24 20:53:43 +00:00
Nick Kralevich
c42f59711e Merge "Don't use TEMP_FAILURE_RETRY on close()" am: 0f2097c0f0 am: 72d7cbe78f
am: 4163af47dc

Change-Id: Icf9d3238780d3b808ab37644a8c6599f893e642f
2017-10-24 20:52:43 +00:00
Christopher Ferris
09123383cb Merge "If the pc is set to zero, the unwind is done." 2017-10-24 20:50:30 +00:00
Branislav Rankov
f50a1ccce6 Merge "libutils: Fix bug in strstr16." am: b128c78aef
am: 0c41d457b9

Change-Id: I5c6dbc8825bfef6e8c79a62416c1d44c33364805
2017-10-24 20:43:43 +00:00
Nick Kralevich
4163af47dc Merge "Don't use TEMP_FAILURE_RETRY on close()" am: 0f2097c0f0
am: 72d7cbe78f

Change-Id: I889fb09b36b07567154c4ba5c2c7c85bd3b302f9
2017-10-24 20:43:03 +00:00
Branislav Rankov
0c41d457b9 Merge "libutils: Fix bug in strstr16."
am: b128c78aef

Change-Id: I14b9e7fe63266a88001262fdfeae78efd10060ae
2017-10-24 20:35:30 +00:00
Nick Kralevich
72d7cbe78f Merge "Don't use TEMP_FAILURE_RETRY on close()"
am: 0f2097c0f0

Change-Id: Icee9f6f109c24229a8fa81da0b2492c89cd2c31b
2017-10-24 20:34:46 +00:00
Treehugger Robot
b128c78aef Merge "libutils: Fix bug in strstr16." 2017-10-24 20:20:00 +00:00
Treehugger Robot
0f2097c0f0 Merge "Don't use TEMP_FAILURE_RETRY on close()" 2017-10-24 19:47:20 +00:00
Christopher Ferris
5169c167c5 Remove PauseTiming/ResumeTiming calls.
These calls can only be used after the call to state.KeepRunning(),
which handles the start/stop itself.

Bug: 68170209

Test: Ran the benchmark and got reasonable results.
Change-Id: Ie12eb3a983f6fe60c85d6dfc90957eedc16b5526
2017-10-24 12:39:10 -07:00
Nick Kralevich
3d118e72dd Don't use TEMP_FAILURE_RETRY on close()
See https://lkml.org/lkml/2005/9/10/129 for details.

Bug: 20501816
Test: code compiles and boots with no obvious problems.
Change-Id: I5a9c470156d498852cfd81fbd59ddcf267309e73
2017-10-24 10:46:34 -07:00
Branislav Rankov
bf3fff1a9e libutils: Fix bug in strstr16.
In the original code when target is an empty string
strlen16() would start reading the memory until a
"terminating null" (that is, zero) character is found.
This may happen because "*target++", at line 300,
would increment the pointer beyond the actual string.

Signed-off-by: Branislav Rankov <branislav.rankov@arm.com>
Signed-off-by: Tamas Petz <tamas.petz@arm.com>
Test: libutils_tests --gtest_filter=UnicodeTest.strstr16*
Change-Id: I213ffe061057c7fa8f34b68881e106a709557dcd
2017-10-24 10:36:00 -07:00
Josh Gao
2f5ddde734 Merge changes I8f33830f,Icd2b891b,I8736ff5c,Iae6e342a am: 1c65e77e6d am: cada8d74d0
am: 7445e8dc84

Change-Id: I4a750ea1f16320c130888d0c092940317ef8f983
2017-10-24 04:12:59 +00:00
Josh Gao
7445e8dc84 Merge changes I8f33830f,Icd2b891b,I8736ff5c,Iae6e342a am: 1c65e77e6d
am: cada8d74d0

Change-Id: I547cd2c462d8636d3bb375292863ec5f8d5b81e6
2017-10-24 04:10:26 +00:00
Josh Gao
cada8d74d0 Merge changes I8f33830f,Icd2b891b,I8736ff5c,Iae6e342a
am: 1c65e77e6d

Change-Id: I886dcc26c8dbc51c67011452ee615a95456385c7
2017-10-24 04:08:01 +00:00
Treehugger Robot
1c65e77e6d Merge changes I8f33830f,Icd2b891b,I8736ff5c,Iae6e342a
* changes:
  libunwindstack: add method to iterate across registers.
  libbacktrace: expose BacktraceMap's unwindstack::Memory.
  libunwindstack: expose UnwindStackMap::GetFunctionName.
  libbacktrace: expose libunwindstack Unwind routine.
2017-10-24 04:03:18 +00:00
Wei Wang
771a304a54 Merge "init: call umount unconditionally" am: b409e5e00b am: 121ff413ef
am: 31665189cf

Change-Id: I6f1f8dcf107b0a241ddfb668243d452b0e9b021c
2017-10-24 02:18:51 +00:00
Wei Wang
31665189cf Merge "init: call umount unconditionally" am: b409e5e00b
am: 121ff413ef

Change-Id: I9a1da7d6ffa4af9968d7b07adf44494ef61df312
2017-10-24 02:16:15 +00:00
Wei Wang
121ff413ef Merge "init: call umount unconditionally"
am: b409e5e00b

Change-Id: I9eb45b728145301418b9d7775067ce298551f063
2017-10-24 02:13:43 +00:00
Treehugger Robot
b409e5e00b Merge "init: call umount unconditionally" 2017-10-24 02:07:48 +00:00
Jake Weinstein
60bc597183 Remove Foreground Boost CPUSet
This functionality was removed at
https://android.googlesource.com/platform/frameworks/base/+/a712d4058f6f85268838
2017-10-23 20:07:22 -04:00
Wei Wang
25dc30f3be init: call umount unconditionally
std::all_of is using std::find_if, which means, if any element the given
predicate returns false, it stops further iteration and just returns false.
std::all_of used in Reboot.cpp will cause umount not to be called on all
block devices if some block device returns false in the middle.

Bug: 68158923
Test: reboot
Change-Id: I43ba6bd0c18018c1ed5fe2b63996552bc51cc67c
2017-10-23 16:25:31 -07:00
Christopher Ferris
2502a60ea1 If the pc is set to zero, the unwind is done.
Bug: 68047085

Test: Ran new unit tests, verified new unwinder does not show an
Test: extra pc zero frame for arm 32 bit processes.
Change-Id: Ic6532e56fbb786a8b7d41638abae777c2d0f1d59
2017-10-23 14:55:16 -07:00
Josh Gao
092dabff8a Merge "adb: fix erase-remove_if idiom." am: c2a2ecb7a5 am: 1f3763ef4a
am: dbc4b45c90

Change-Id: Iadcd032c968c5db68651e184f6a4c558c33aab22
2017-10-23 21:40:58 +00:00
Josh Gao
dbc4b45c90 Merge "adb: fix erase-remove_if idiom." am: c2a2ecb7a5
am: 1f3763ef4a

Change-Id: I8edeb4df0f168e08e895b4bad8dc9c85bd21c179
2017-10-23 21:38:57 +00:00
Josh Gao
1f3763ef4a Merge "adb: fix erase-remove_if idiom."
am: c2a2ecb7a5

Change-Id: I98bc2547b3785d8ca14565a6a9b7fac84a7c673e
2017-10-23 21:36:22 +00:00
Treehugger Robot
c2a2ecb7a5 Merge "adb: fix erase-remove_if idiom." 2017-10-23 21:28:32 +00:00
Dan Albert
ec92d28131 Merge "Add missing includes." am: 74e7c2f4bd am: f281046ed4
am: 0bbdbe3f35

Change-Id: I2a16c6c7ab29a2c900e302f6d9ce97bb7dde8a65
2017-10-23 21:16:33 +00:00
Mark Salyzyn
a3343574db Merge changes I3e6e5a22,I6eb3f066 am: 75836d5e7f am: 5966ae2c6b
am: 7cefb50abd

Change-Id: I57615d78807d3314eb9f248a2d66cf1e3e202981
2017-10-23 21:15:48 +00:00