OSDN Git Service

android-x86/system-extras.git
6 years agoMerge "boot_control_copy: switching to C++" am: 512f4b15b2
Bowgo Tsai [Fri, 29 Sep 2017 09:39:03 +0000 (09:39 +0000)]
Merge "boot_control_copy: switching to C++" am: 512f4b15b2
am: 37a744bcfc

Change-Id: If40002b1af6de5fbb34c9518f4c694ed8edf82e7

6 years agoMerge "boot_control_copy: switching to C++"
Bowgo Tsai [Fri, 29 Sep 2017 08:37:08 +0000 (08:37 +0000)]
Merge "boot_control_copy: switching to C++"
am: 512f4b15b2

Change-Id: I9108edc16309282d6d57e709241389245663565d

6 years agoMerge "boot_control_copy: switching to C++"
Treehugger Robot [Fri, 29 Sep 2017 06:47:27 +0000 (06:47 +0000)]
Merge "boot_control_copy: switching to C++"

6 years agoMerge "Rename libz-host -> libz" am: 52e2821359
Dan Willemsen [Fri, 29 Sep 2017 04:20:44 +0000 (04:20 +0000)]
Merge "Rename libz-host -> libz" am: 52e2821359
am: 4c1cccb5c4

Change-Id: I5256d828fb036ed6f4a2db3fddc5fb5bd8c0aea0

6 years agoMerge "Rename libz-host -> libz"
Dan Willemsen [Thu, 28 Sep 2017 22:57:49 +0000 (22:57 +0000)]
Merge "Rename libz-host -> libz"
am: 52e2821359

Change-Id: I1d462077904d8303b763dae78b69f77b5eff6efa

6 years agoMerge "Rename libz-host -> libz"
Dan Willemsen [Thu, 28 Sep 2017 20:57:43 +0000 (20:57 +0000)]
Merge "Rename libz-host -> libz"

6 years agoboot_control_copy: switching to C++
Bowgo Tsai [Thu, 28 Sep 2017 07:18:37 +0000 (15:18 +0800)]
boot_control_copy: switching to C++

fs_mgr_get_entry_for_mount_point() is switching to a C++ only API (using
std::string). Do a minimum conversion here to adopt that change.

Bug: 67024518
Test: make and boot sailfish
Change-Id: I191fd0043815d75a799eb4001437abb107af6e79

6 years agoRename libz-host -> libz
Dan Willemsen [Wed, 27 Sep 2017 23:26:36 +0000 (16:26 -0700)]
Rename libz-host -> libz

Test: m host
Change-Id: I26c41cd885f9a48bb1c02bbd269c3f61f3c4dbdb

6 years agoMerge "simpleperf: minor fix in report_sample.proto field" am: 4f613859c8
Amaury Medeiros [Wed, 27 Sep 2017 17:12:03 +0000 (17:12 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field" am: 4f613859c8
am: c103d16a21

Change-Id: I319e8b42a59ba4a29dd3dedf1d896d5b09244737

6 years agoMerge "simpleperf: minor fix in report_sample.proto field"
Amaury Medeiros [Wed, 27 Sep 2017 17:10:31 +0000 (17:10 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field"
am: 4f613859c8

Change-Id: Id0e72bb379f68bc41d75b3f9d77fcab76ad03471

6 years agoMerge "simpleperf: minor fix in report_sample.proto field"
Amaury Medeiros [Wed, 27 Sep 2017 17:06:33 +0000 (17:06 +0000)]
Merge "simpleperf: minor fix in report_sample.proto field"

6 years agosimpleperf: minor fix in report_sample.proto field
Amaury Medeiros [Wed, 27 Sep 2017 12:28:53 +0000 (13:28 +0100)]
simpleperf: minor fix in report_sample.proto field

Test: run simpleperf_unit_test.
Change-Id: Ia42ce4c267ddae3640666f73f4a002c88429cb8e

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250." am: 6b369241f1
Yabin Cui [Tue, 26 Sep 2017 22:37:17 +0000 (22:37 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250." am: 6b369241f1
am: 5db24b19df

Change-Id: Ia61a7dcc7b3bb9b03cbaa15220c9f1f1488ed0d1

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250."
Yabin Cui [Tue, 26 Sep 2017 22:35:30 +0000 (22:35 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250."
am: 6b369241f1

Change-Id: Id03e307c652c63daacea22a999e6911c858542cc

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4360250."
Yabin Cui [Tue, 26 Sep 2017 22:28:56 +0000 (22:28 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4360250."

6 years agoMerge "inferno: support building embedded flamegraph." am: 9cc31b876f
Yabin Cui [Tue, 26 Sep 2017 17:26:58 +0000 (17:26 +0000)]
Merge "inferno: support building embedded flamegraph." am: 9cc31b876f
am: 52f0911911

Change-Id: I164ec32948d65c97391ede40adf74442d1c2a58a

6 years agosimpleperf: update simpleperf prebuilts to build 4360250.
Yabin Cui [Tue, 26 Sep 2017 17:23:26 +0000 (10:23 -0700)]
simpleperf: update simpleperf prebuilts to build 4360250.

Taken from branch aosp-master.

Bug: http://b/66914187
Test: none.

Change-Id: I31779df7d25c5f7210a2aaa85b4d4200d4972a89

6 years agoMerge "inferno: support building embedded flamegraph."
Yabin Cui [Tue, 26 Sep 2017 17:24:31 +0000 (17:24 +0000)]
Merge "inferno: support building embedded flamegraph."
am: 9cc31b876f

Change-Id: I4f6dec36cdfa11d0db51ef94d632790e06f25687

6 years agoMerge "inferno: support building embedded flamegraph."
Yabin Cui [Tue, 26 Sep 2017 17:17:03 +0000 (17:17 +0000)]
Merge "inferno: support building embedded flamegraph."

6 years agoMerge "simpleperf: Keep record time and android version in perf.data." am: c34215a771
Yabin Cui [Tue, 26 Sep 2017 00:24:25 +0000 (00:24 +0000)]
Merge "simpleperf: Keep record time and android version in perf.data." am: c34215a771
am: 7c08170f86

Change-Id: Ibd9430cf3fcff44eae0ff49426903659289d0d28

6 years agoMerge "simpleperf: Keep record time and android version in perf.data."
Yabin Cui [Tue, 26 Sep 2017 00:22:27 +0000 (00:22 +0000)]
Merge "simpleperf: Keep record time and android version in perf.data."
am: c34215a771

Change-Id: I0bcc5388e410cbdbf2df3b905e97b98a79ad0ebc

6 years agoMerge "simpleperf: Keep record time and android version in perf.data."
Treehugger Robot [Tue, 26 Sep 2017 00:13:57 +0000 (00:13 +0000)]
Merge "simpleperf: Keep record time and android version in perf.data."

6 years agosimpleperf: Keep record time and android version in perf.data.
Yabin Cui [Mon, 25 Sep 2017 22:15:15 +0000 (15:15 -0700)]
simpleperf: Keep record time and android version in perf.data.

The record time and android version will be shown in html report.
Record time is useful to distinguish reports.
Android version is useful when checking reason for recording results.

Bug: http://b/66914187
Test: run simpleperf_unit_test.
Change-Id: I61ad5df380f8b51a3a6bc1f4dfa4bc9f350a4792

6 years agoinferno: support building embedded flamegraph.
Yabin Cui [Mon, 25 Sep 2017 22:54:45 +0000 (15:54 -0700)]
inferno: support building embedded flamegraph.

This is to show embedded flamegraph with other view in a report html.

Bug: http://b/66914187
Test: run inferno.sh manually.

Change-Id: Ib68b7dcbd41d85d1fb47f1637407e50bd7e93d87

6 years agoMerge "verity: Fix the broken 'build_verity_tree -A'." am: 97d9efc6ab
Tao Bao [Mon, 25 Sep 2017 16:03:50 +0000 (16:03 +0000)]
Merge "verity: Fix the broken 'build_verity_tree -A'." am: 97d9efc6ab
am: ab15d60079

Change-Id: I01b1c9aad77015eab7bc462f6a9d574a5dbf04f9

6 years agoMerge "verity: Fix the broken 'build_verity_tree -A'."
Tao Bao [Mon, 25 Sep 2017 16:02:29 +0000 (16:02 +0000)]
Merge "verity: Fix the broken 'build_verity_tree -A'."
am: 97d9efc6ab

Change-Id: Ibbfa251eb6cf53ead264cc2c60c4bb0a030163f8

6 years agoMerge "verity: Fix the broken 'build_verity_tree -A'."
Tao Bao [Mon, 25 Sep 2017 15:49:12 +0000 (15:49 +0000)]
Merge "verity: Fix the broken 'build_verity_tree -A'."

6 years agoverity: Fix the broken 'build_verity_tree -A'.
Tao Bao [Sat, 23 Sep 2017 05:09:32 +0000 (22:09 -0700)]
verity: Fix the broken 'build_verity_tree -A'.

Commit 6eb049322c26431961fb69168a113bfd27016ab3 introduced a bug in
checking if there's any passed-in salt string (via '-A <salt>' or '-a
<salt>'). "salt.data()" should be "salt.empty()", which otherwise may
or may not be nullptr even if salt is empty. This CL fixes the issue.

This CL also removes the duplicate variable 'salt_size', which can be
fully covered by salt.size().

Test: m build_verity_tree;
Test: `build_verity_tree system.img verity.img` gives random root hash
      and salt string across runs.
Test: `build_verity_tree -A <hex string> system.img verity.img` gives
      identical results across runs.
Test: `build_verity_tree -a <string> system.img verity.img` gives
      identical results across runs.
Change-Id: I377e42fc48c0f703dc33d813466f6ef60514bbe5

6 years agoMerge "ext4_utils: Fix a looping bug and memory leak" am: 1db7fa615d
Ting-Yuan Huang [Thu, 21 Sep 2017 19:23:02 +0000 (19:23 +0000)]
Merge "ext4_utils: Fix a looping bug and memory leak" am: 1db7fa615d
am: ae908cfb27

Change-Id: Ided398b0b112e87c3b0dc13561941d0cb0e4ad9b

6 years agoMerge "Fix reduce_allocation()." am: 7d845bafe5
Ting-Yuan Huang [Thu, 21 Sep 2017 19:22:47 +0000 (19:22 +0000)]
Merge "Fix reduce_allocation()." am: 7d845bafe5
am: c32774f81e

Change-Id: I58b9a58d1e6b71da1f0c620afa2371f0cfcf2896

6 years agoMerge "ext4_utils: Fix a looping bug and memory leak"
Ting-Yuan Huang [Thu, 21 Sep 2017 19:20:49 +0000 (19:20 +0000)]
Merge "ext4_utils: Fix a looping bug and memory leak"
am: 1db7fa615d

Change-Id: I9f7c608b981a286d25cb5ca2d9587e333808eddc

6 years agoMerge "Fix reduce_allocation()."
Ting-Yuan Huang [Thu, 21 Sep 2017 19:20:29 +0000 (19:20 +0000)]
Merge "Fix reduce_allocation()."
am: 7d845bafe5

Change-Id: I59e51d916e3a4dc6aefab2d41a0ad06a473fef1d

6 years agoMerge "ext4_utils: Fix a looping bug and memory leak"
Treehugger Robot [Thu, 21 Sep 2017 19:17:34 +0000 (19:17 +0000)]
Merge "ext4_utils: Fix a looping bug and memory leak"

6 years agoMerge "Fix reduce_allocation()."
Treehugger Robot [Thu, 21 Sep 2017 19:16:38 +0000 (19:16 +0000)]
Merge "Fix reduce_allocation()."

6 years agoMerge "simpleperf: allow inferno to run from any dir." am: a9e5b352f6
Yabin Cui [Thu, 21 Sep 2017 01:20:11 +0000 (01:20 +0000)]
Merge "simpleperf: allow inferno to run from any dir." am: a9e5b352f6
am: e274d27f2a

Change-Id: I532819f154dfccfdc5eb8383c866155e045a3ef1

6 years agoMerge "simpleperf: allow inferno to run from any dir."
Yabin Cui [Thu, 21 Sep 2017 01:18:12 +0000 (01:18 +0000)]
Merge "simpleperf: allow inferno to run from any dir."
am: a9e5b352f6

Change-Id: I33034f54cb0919e1ce5d6152d5a1fbe896ca79b4

6 years agoMerge "simpleperf: allow inferno to run from any dir."
Treehugger Robot [Thu, 21 Sep 2017 01:14:34 +0000 (01:14 +0000)]
Merge "simpleperf: allow inferno to run from any dir."

6 years agosimpleperf: allow inferno to run from any dir.
Yabin Cui [Wed, 20 Sep 2017 23:20:04 +0000 (16:20 -0700)]
simpleperf: allow inferno to run from any dir.

Previously inferno.sh/.bat can only run from scripts/, this CL
removes the restriction.

Also add -o option to select report path.

Bug: http://b/32834638
Test: run test.py.
Change-Id: Ib1651dcd1beedac5be00249150e0b74fea906924

6 years agoMerge "Fix clang static analyzer warnings" am: 797da605d0
Manoj Gupta [Wed, 20 Sep 2017 00:33:51 +0000 (00:33 +0000)]
Merge "Fix clang static analyzer warnings" am: 797da605d0
am: b11b9ab538

Change-Id: Ie38a626cc48f5df867bcbaf489c4b2942fb829c7

6 years agoMerge "Fix clang static analyzer warnings"
Manoj Gupta [Wed, 20 Sep 2017 00:30:11 +0000 (00:30 +0000)]
Merge "Fix clang static analyzer warnings"
am: 797da605d0

Change-Id: I5224ae1341e6442f28c044524c3d8b790873cdc8

6 years agoMerge "Fix clang static analyzer warnings"
Treehugger Robot [Wed, 20 Sep 2017 00:23:44 +0000 (00:23 +0000)]
Merge "Fix clang static analyzer warnings"

6 years agoext4_utils: Fix a looping bug and memory leak
Ting-Yuan Huang [Tue, 29 Aug 2017 23:27:59 +0000 (16:27 -0700)]
ext4_utils: Fix a looping bug and memory leak

Test: built without seeing the compiler warnings.
Change-Id: Ia277667b62323852f493a24b53ba3a34222c4f0e

6 years agoMerge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE am: 57df090...
Bill Yi [Fri, 15 Sep 2017 21:21:41 +0000 (21:21 +0000)]
Merge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE am: 57df090195  -s ours
am: 0b083d58be  -s ours

Change-Id: I77bfeeb76d21179afc7eeb972a8a77109bcea010

6 years agoMerge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE
Bill Yi [Fri, 15 Sep 2017 21:14:45 +0000 (21:14 +0000)]
Merge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE
am: 57df090195  -s ours

Change-Id: Ib04ab6d30f4a371d2d73cc7ed39d34775912829e

6 years agoMerge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE
Bill Yi [Fri, 15 Sep 2017 20:48:14 +0000 (13:48 -0700)]
Merge remote-tracking branch 'aosp/oreo-cts-dev' into HEAD - DO NOT MERGE

Change-Id: I126b325ab5686ab9a99735d47cad2a20e53022ca

6 years agoMerge "simpleperf: fix report_sample_test." into oreo-cts-dev
Treehugger Robot [Thu, 14 Sep 2017 17:30:43 +0000 (17:30 +0000)]
Merge "simpleperf: fix report_sample_test." into oreo-cts-dev

6 years agoMerge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 6f9b64076a
Justin Yun [Thu, 14 Sep 2017 05:49:15 +0000 (05:49 +0000)]
Merge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 6f9b64076a
am: ed1878c15b

Change-Id: I313ddcb7532f66e787f8c517f75849ca1542259d

6 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."...
Yabin Cui [Thu, 14 Sep 2017 05:48:56 +0000 (05:48 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools." am: 1486c2cb07
am: ce64ec96a3

Change-Id: I223c88679614c8e65ece5cf9bd61882c2c1b9e89

6 years agoMerge "Mark the module as VNDK or VNDK-SP in Android.bp"
Justin Yun [Thu, 14 Sep 2017 05:22:25 +0000 (05:22 +0000)]
Merge "Mark the module as VNDK or VNDK-SP in Android.bp"
am: 6f9b64076a

Change-Id: Idc3ff00540eac3f6755ebbda162db57160753c75

6 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."
Yabin Cui [Thu, 14 Sep 2017 05:22:08 +0000 (05:22 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."
am: 1486c2cb07

Change-Id: I55efc3b160b62345742ab17874ae9d9dfca4bb1b

6 years agoMerge "Mark the module as VNDK or VNDK-SP in Android.bp"
Treehugger Robot [Thu, 14 Sep 2017 01:59:30 +0000 (01:59 +0000)]
Merge "Mark the module as VNDK or VNDK-SP in Android.bp"

6 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."
Treehugger Robot [Thu, 14 Sep 2017 01:45:39 +0000 (01:45 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on arm translation tools."

6 years agosimpleperf: fix report_sample_test.
Yabin Cui [Mon, 15 May 2017 20:39:36 +0000 (13:39 -0700)]
simpleperf: fix report_sample_test.

When running cmd_report_sample.* tests, it may call
ReportSampleCmd()->Run() more than once. If we shutdown
protobuf library in one call, using protobuf in the
following calls will encounter failures.

Bug: http://b/37996565
Test: run CtsSimpleperfTestCases.
Change-Id: I5ca217406e786645d45fda518055c4a63ab3db3c
(cherry picked from commit b3675a5db81d02b07b92f8f13d37187a9cb4890c)

6 years agosimpleperf: Omit dwarf-callgraph tests running on arm translation tools.
Yabin Cui [Wed, 13 Sep 2017 20:21:32 +0000 (13:21 -0700)]
simpleperf: Omit dwarf-callgraph tests running on arm translation tools.

Bug: http://b/64946809
Test: run arm CtsSimpleperfTestCases32 on fugu.
Change-Id: I76ee44b8fd2a6022cbef32392ee0336fe4d14ade

6 years agoFix reduce_allocation().
Ting-Yuan Huang [Tue, 29 Aug 2017 23:05:31 +0000 (16:05 -0700)]
Fix reduce_allocation().

alloc->list.last was repeatedly freed.

Test: built without seeing warnings.
Change-Id: Ia8b2f9d4b8ba9fbe13fae5d7a0a4d526ddc863d6

6 years agoMerge "<stdbool.h> not necessary in C++." am: 390c1a849e
Elliott Hughes [Fri, 8 Sep 2017 17:36:58 +0000 (17:36 +0000)]
Merge "<stdbool.h> not necessary in C++." am: 390c1a849e
am: f2cfcb12ca

Change-Id: I4e1cfb2241a05a3bc894252fda5a341e4bd91270

6 years agoMerge "<stdbool.h> not necessary in C++."
Elliott Hughes [Fri, 8 Sep 2017 17:35:28 +0000 (17:35 +0000)]
Merge "<stdbool.h> not necessary in C++."
am: 390c1a849e

Change-Id: I6650c34ff30aeec00dd28396f7fbe5ed3eb9c5c9

6 years agoMerge "<stdbool.h> not necessary in C++."
Elliott Hughes [Fri, 8 Sep 2017 17:31:58 +0000 (17:31 +0000)]
Merge "<stdbool.h> not necessary in C++."

6 years ago<stdbool.h> not necessary in C++.
Elliott Hughes [Thu, 7 Sep 2017 20:34:03 +0000 (13:34 -0700)]
<stdbool.h> not necessary in C++.

Bug: N/A
Test: builds
Change-Id: I02c2619bd5ddcabf19b0fea6845e2ffbe9c9edf6

6 years agoMark the module as VNDK or VNDK-SP in Android.bp
Justin Yun [Mon, 24 Jul 2017 06:19:45 +0000 (15:19 +0900)]
Mark the module as VNDK or VNDK-SP in Android.bp

As a VNDK/VNDK-SP module, Android.bp must have 'vndk' tag as well
as 'vendor_available: true'.

For a VNDK module, the 'vndk' tag has 'enabled: true'.
It will be installed system/lib(64)/vndk as a vendor variant.

For a VNDK-SP module, the 'vndk' tag has
'support_system_process: true' as well as 'enabled: true'.
It will be installed system/lib(64)/vndk-sp as a vendor variant.

Bug: 63866913
Test: build and boot with BOARD_VNDK_VERSION=current
Merged-In: I7a2eaf4894188d4d300fcc78380a2b05517c54f4
Change-Id: I7a2eaf4894188d4d300fcc78380a2b05517c54f4
(cherry picked from commit 953341705abd2a840b464928d9ce56e0c1f37b25)

6 years agoFix clang static analyzer warnings
Manoj Gupta [Tue, 5 Sep 2017 23:35:17 +0000 (16:35 -0700)]
Fix clang static analyzer warnings

Fix the following warnings:

system/extras/librank/librank.c:422:12: warning: Potential leak of
memory pointed to by 'pi' [clang-analyzer-unix.Malloc]
system/extras/librank/librank.c:137:29: warning: Call to 'realloc' has
an allocation size of 0 bytes [clang-analyzer-unix.API]
system/extras/librank/librank.c:95:21: warning: Call to 'realloc' has an
allocation size of 0 bytes [clang-analyzer-unix.API]

The memory leak is real but we don't care about memory leaks when exiting
main. So just replace return by exit to silence the analyzer.

Bug: b/27101951
Test:Warnings are gone.
Change-Id: I9af4ec4a4b740f5edcf9390b30a16b95d76e6a20

6 years agoMerge "simpleperf: support --clockid option in record cmd." am: 41e392642f
Yabin Cui [Tue, 5 Sep 2017 22:27:05 +0000 (22:27 +0000)]
Merge "simpleperf: support --clockid option in record cmd." am: 41e392642f
am: 1cad85ba22

Change-Id: Iec74a85c408fff23105212260a4fc0d439f41d2f

6 years agoMerge "simpleperf: support --clockid option in record cmd."
Yabin Cui [Tue, 5 Sep 2017 22:24:04 +0000 (22:24 +0000)]
Merge "simpleperf: support --clockid option in record cmd."
am: 41e392642f

Change-Id: Ibaad342c2b420eef59601a69fcfbeca51c3d1ac5

6 years agoMerge "simpleperf: support --clockid option in record cmd."
Yabin Cui [Tue, 5 Sep 2017 22:17:56 +0000 (22:17 +0000)]
Merge "simpleperf: support --clockid option in record cmd."

6 years agosimpleperf: support --clockid option in record cmd.
Yabin Cui [Fri, 1 Sep 2017 22:40:41 +0000 (15:40 -0700)]
simpleperf: support --clockid option in record cmd.

Setting clockid is supported in kernel 4.x.
Whether it is supported by the kernel can be checked
via `simpleperf list --show-features`.

Bug: http://b/65214671
Test: run simpleperf_unit_test.
Change-Id: I6f312cc62893af0fa5092ed91434b6df46435d7f

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4312148." am: c01804d628
Yabin Cui [Fri, 1 Sep 2017 22:03:18 +0000 (22:03 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4312148." am: c01804d628
am: fd80a8e536

Change-Id: Id1465ec327d6219ca9bb78264cd6a4fd9830c732

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4312148."
Yabin Cui [Fri, 1 Sep 2017 21:49:42 +0000 (21:49 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4312148."
am: c01804d628

Change-Id: Icef7d41a072ea8e16c934f81b223badb58e9bf30

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4312148."
Yabin Cui [Fri, 1 Sep 2017 21:28:10 +0000 (21:28 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4312148."

6 years agosimpleperf: update simpleperf prebuilts to build 4312148.
Yabin Cui [Fri, 1 Sep 2017 18:30:40 +0000 (11:30 -0700)]
simpleperf: update simpleperf prebuilts to build 4312148.

Taken from branch aosp-master.
Bug: http://b/65025325
Test: run test.py.

Change-Id: Ifa1b8620c47d3448a8924447371bf74461f97fb0

6 years agoMerge "simpleperf: fix --app option for multiprocess apps." am: 5324d11761
Yabin Cui [Thu, 31 Aug 2017 17:19:35 +0000 (17:19 +0000)]
Merge "simpleperf: fix --app option for multiprocess apps." am: 5324d11761
am: 25ae641a7d

Change-Id: Idd747b7f4f8cb77f43892e484ca2e8516493dc88

6 years agoMerge "simpleperf: fix --app option for multiprocess apps."
Yabin Cui [Thu, 31 Aug 2017 17:03:34 +0000 (17:03 +0000)]
Merge "simpleperf: fix --app option for multiprocess apps."
am: 5324d11761

Change-Id: I47fb7b496b91d7b17fe6450c6795485de965e1db

6 years agoMerge "simpleperf: fix --app option for multiprocess apps."
Yabin Cui [Thu, 31 Aug 2017 16:52:39 +0000 (16:52 +0000)]
Merge "simpleperf: fix --app option for multiprocess apps."

6 years agoMerge "fix memory leak in unittest." am: d9ea298022
Yunlian Jiang [Wed, 30 Aug 2017 19:06:35 +0000 (19:06 +0000)]
Merge "fix memory leak in unittest." am: d9ea298022
am: 607a669016

Change-Id: I4dbfad16a2626c39f349a3be406ea75d2e845b9e

6 years agoMerge "fix memory leak in unittest."
Yunlian Jiang [Wed, 30 Aug 2017 19:01:05 +0000 (19:01 +0000)]
Merge "fix memory leak in unittest."
am: d9ea298022

Change-Id: Ice30391dfa5352ca12eff79ca888febe87aa63ae

6 years agoMerge "fix memory leak in unittest."
Treehugger Robot [Wed, 30 Aug 2017 18:51:33 +0000 (18:51 +0000)]
Merge "fix memory leak in unittest."

6 years agofix memory leak in unittest.
Yunlian Jiang [Wed, 30 Aug 2017 16:50:05 +0000 (09:50 -0700)]
fix memory leak in unittest.

This fixes the warning
warning: Potential leak of memory pointed to by 'salt' [clang-analyzer-cplusplus.NewDeleteLeaks]

Bug: None
Test: The warning is gone.
Change-Id: I1a31188775c2a099949bf8b8e2613b71af5081cd

6 years agoMerge "Memory pressure" am: c7d0028ac2
Sherry Yang [Wed, 30 Aug 2017 03:55:11 +0000 (03:55 +0000)]
Merge "Memory pressure" am: c7d0028ac2
am: a4e7af5980

Change-Id: Ic35727f6c6fcc5e9c7c1c6b9646e77a6a9bfee56

6 years agoMerge "Memory pressure"
Sherry Yang [Wed, 30 Aug 2017 03:48:40 +0000 (03:48 +0000)]
Merge "Memory pressure"
am: c7d0028ac2

Change-Id: I9d32b1c5233158411f55542402353c5802077402

6 years agoMerge "Memory pressure"
Treehugger Robot [Wed, 30 Aug 2017 03:32:35 +0000 (03:32 +0000)]
Merge "Memory pressure"

6 years agosimpleperf: fix --app option for multiprocess apps.
Yabin Cui [Mon, 28 Aug 2017 21:49:04 +0000 (14:49 -0700)]
simpleperf: fix --app option for multiprocess apps.

1. Search all processes in an app when using --app option in record command.
2. Fix searching one app process when using -p option in app_profiler.py.
3. Add unittest for profiling multiprocess apps.

Bug: http://b/65025325
Test: run test.py

Change-Id: Iba2e97c2174815d0236636e3cf15b1fc17a5d838

6 years agoMerge "simpleperf: fix finding app's process." am: 5c4dcdb68d
Yabin Cui [Tue, 29 Aug 2017 16:36:56 +0000 (16:36 +0000)]
Merge "simpleperf: fix finding app's process." am: 5c4dcdb68d
am: 3919e31d85

Change-Id: I5d6988b6ca53afb7a386c15c93c4def724d4a6cd

6 years agoMerge "simpleperf: fix finding app's process."
Yabin Cui [Tue, 29 Aug 2017 16:30:26 +0000 (16:30 +0000)]
Merge "simpleperf: fix finding app's process."
am: 5c4dcdb68d

Change-Id: If04548d4040db0f37f6851465d96ee97a4e0264a

6 years agoMerge "simpleperf: fix finding app's process."
Yabin Cui [Tue, 29 Aug 2017 16:22:28 +0000 (16:22 +0000)]
Merge "simpleperf: fix finding app's process."

6 years agosimpleperf: fix finding app's process.
Yabin Cui [Mon, 28 Aug 2017 22:49:33 +0000 (15:49 -0700)]
simpleperf: fix finding app's process.

Also check the return value of recording, fix some tiny errors in tests.

Bug: None.
Test: run test.py.
Change-Id: I42b33c796a302b71ca1c87888b4a2e9ad53306af

6 years agoMemory pressure
Sherry Yang [Sat, 26 Aug 2017 02:05:50 +0000 (19:05 -0700)]
Memory pressure

Create continuous memory pressure by adjusting
a child process's oom score and allocate in
the child. When a child is killed by
the low-memory-killer, fork another process and
continues until the program is killed or certain
number of iterations has reached.

Bug: 63926541
Test: run mem-pressure on target
Change-Id: Ic8ee60da7519c750de4bd690f26e31fa80c5cd49

6 years agoMerge "simpleperf: fix check of opening perf event files." am: 14f2ee3581
Yabin Cui [Fri, 25 Aug 2017 21:39:12 +0000 (21:39 +0000)]
Merge "simpleperf: fix check of opening perf event files." am: 14f2ee3581
am: 2ab054b3ad

Change-Id: I89d73b3569ce0b5d9a08afab3d30c976ecc79dc0

6 years agoMerge "simpleperf: fix check of opening perf event files."
Yabin Cui [Fri, 25 Aug 2017 21:35:15 +0000 (21:35 +0000)]
Merge "simpleperf: fix check of opening perf event files."
am: 14f2ee3581

Change-Id: Ie331a523437a77dfb8068f8ddf9cf622a10fcc3c

6 years agoMerge "simpleperf: fix check of opening perf event files."
Yabin Cui [Fri, 25 Aug 2017 21:20:18 +0000 (21:20 +0000)]
Merge "simpleperf: fix check of opening perf event files."

6 years agosimpleperf: fix check of opening perf event files.
Yabin Cui [Fri, 25 Aug 2017 18:17:45 +0000 (11:17 -0700)]
simpleperf: fix check of opening perf event files.

When asked to monitor a process, record/stat cmd checks if we can
open perf event files for all threads successfully. However, it
fails when the monitored process has an exiting thread. This makes
record_cmd.duration_option test flakey, when there are exiting
threads in other tests, like record_cmd.handle_SIGHUP.

To fix this, only check if we can open perf event files for at
least one thread for each monitored process.

Bug: http://b/65047463
Test: run CtsSimpleperfTestCases.
Change-Id: Ia02ed498f49c9c6c452023ad31abb01a58071152

6 years agoMerge "Add missing libdl dependencies" am: c7d0f96ab4
Pavlin Radoslavov [Wed, 23 Aug 2017 23:44:20 +0000 (23:44 +0000)]
Merge "Add missing libdl dependencies" am: c7d0f96ab4
am: 9971517f9c

Change-Id: I36643e0e991e10ca0dbedb7fd7d700013454ea2b

6 years agoMerge "Add missing libdl dependencies"
Pavlin Radoslavov [Wed, 23 Aug 2017 23:40:07 +0000 (23:40 +0000)]
Merge "Add missing libdl dependencies"
am: c7d0f96ab4

Change-Id: Ifacb48d2da671bbde09b2a2a4ab38e246fb89a3e

6 years agoMerge "Add missing libdl dependencies"
Pavlin Radoslavov [Wed, 23 Aug 2017 23:31:35 +0000 (23:31 +0000)]
Merge "Add missing libdl dependencies"

6 years agoAdd missing libdl dependencies
Pavlin Radoslavov [Wed, 23 Aug 2017 22:04:39 +0000 (15:04 -0700)]
Add missing libdl dependencies

Bug: 62815515
Test: lunch full-eng; make checkbuild
Change-Id: Iad3cf98d7c9e659ee517caf352613334215ea397

6 years agoMerge "Make cppreopts cleanup if it fails" am: 9711713241
Alex Light [Wed, 23 Aug 2017 19:49:49 +0000 (19:49 +0000)]
Merge "Make cppreopts cleanup if it fails" am: 9711713241
am: ac9b39c5ed

Change-Id: Iaff3d835bc30e5434d0f075293fdb48060edb3e2

6 years agoMerge "Make cppreopts cleanup if it fails"
Alex Light [Wed, 23 Aug 2017 19:46:56 +0000 (19:46 +0000)]
Merge "Make cppreopts cleanup if it fails"
am: 9711713241

Change-Id: Icd8077bdead31ca50ba41b4c426142d438d0239c

6 years agoMerge "Make cppreopts cleanup if it fails"
Treehugger Robot [Wed, 23 Aug 2017 19:39:41 +0000 (19:39 +0000)]
Merge "Make cppreopts cleanup if it fails"

6 years agoMake cppreopts cleanup if it fails
Alex Light [Tue, 25 Jul 2017 18:17:05 +0000 (11:17 -0700)]
Make cppreopts cleanup if it fails

Previously we would simply leave temporary files lying around if we
failed to rename them for some reason. This change makes us attempt to
clean the temporary files up.

Test: Phone boots.
Bug: 63995897
Change-Id: Ib876a626904bec090fe4f3bd228335feadb6a7c7

6 years agoMerge "simpleperf: improve test.py." am: 12bc7ee848 am: 005fc035cb
Yabin Cui [Tue, 22 Aug 2017 01:34:28 +0000 (01:34 +0000)]
Merge "simpleperf: improve test.py." am: 12bc7ee848 am: 005fc035cb
am: 3f5f725466

Change-Id: Ie2068adc6d8e06ab0bb1c99d2b3bbb9ac42bc11a

6 years agoMerge "simpleperf: improve test.py." am: 12bc7ee848
Yabin Cui [Tue, 22 Aug 2017 01:28:29 +0000 (01:28 +0000)]
Merge "simpleperf: improve test.py." am: 12bc7ee848
am: 005fc035cb

Change-Id: I1dfb939e095e1eb176984306262018cabe4915b3

6 years agoMerge "simpleperf: improve test.py."
Yabin Cui [Tue, 22 Aug 2017 01:21:01 +0000 (01:21 +0000)]
Merge "simpleperf: improve test.py."
am: 12bc7ee848

Change-Id: I9bab0ca51e3272b0aed5a5b305d2474e8f1e86e3