OSDN Git Service

android-x86/system-extras.git
4 years agoMerge changes from topic "simpleperf_presubmit_check"
Yabin Cui [Tue, 28 Jan 2020 03:58:33 +0000 (19:58 -0800)]
Merge changes from topic "simpleperf_presubmit_check"
am: 4ddb2ed827

Change-Id: I2e9ae7326aec48220d275654ff344fdd80b9f942

4 years agosimpleperf: fix tests in cloud android.
Yabin Cui [Tue, 28 Jan 2020 03:58:10 +0000 (19:58 -0800)]
simpleperf: fix tests in cloud android.
am: 538fb53743

Change-Id: I473d05cdeb5bdbb6ebb28828797a372784e4aa92

4 years agoMerge changes from topic "simpleperf_presubmit_check"
Yabin Cui [Tue, 28 Jan 2020 03:51:44 +0000 (03:51 +0000)]
Merge changes from topic "simpleperf_presubmit_check"

* changes:
  simpleperf: add presumit test.
  simpleperf: fix tests in cloud android.

4 years agosimpleperf: add presumit test.
Yabin Cui [Fri, 24 Jan 2020 19:23:44 +0000 (11:23 -0800)]
simpleperf: add presumit test.

Bug: none
Test: run `atest --test-mapping system/extras/simpleperf`
Change-Id: I9d7bc51fb859238e5b83a719e09f35f248d89511

4 years agosimpleperf: fix tests in cloud android.
Yabin Cui [Mon, 27 Jan 2020 21:59:24 +0000 (13:59 -0800)]
simpleperf: fix tests in cloud android.

Cloud android uses x86 cuttlefish without hardware counters and
tracepoint events.
Fix simpleperf tests before adding them to presubmit check:
 1. In HasHardwareCounter(), mark cf_x86 platform as not having
hardware counters. So tests needing hardware counters will be
skipped on cloud android.
 2. Modify most record_cmd tests to not requiring hardware
counters, and use task-clock instead of cpu-cycles when hardware
counters are not available.
 3. Skip tests needing tracepoint events on cloud android.

Bug: none
Test: run simpleperf_unit_tests on cuttlefish.
Change-Id: Id776b86a1248d4ac80ae96e308520f3a41a54184

4 years agoMerge "Make ramdisk available."
Yifan Hong [Sat, 25 Jan 2020 06:12:56 +0000 (22:12 -0800)]
Merge "Make ramdisk available."
am: 9b8958e1af

Change-Id: I45de161a393e2d70cfd899e48a394c97f7e4e1a8

4 years agoMerge "Make ramdisk available."
Yifan Hong [Sat, 25 Jan 2020 03:02:45 +0000 (03:02 +0000)]
Merge "Make ramdisk available."

4 years agoMake ramdisk available.
Yifan Hong [Sat, 25 Jan 2020 02:53:53 +0000 (18:53 -0800)]
Make ramdisk available.

Fixes broken build.
Bug: 148311365
Test: m nothing

Change-Id: Ie576657001eb8440a9f8aa7f18fae845a9a40444

4 years agoMerge "simpleperf: avoid getting event name in EventFd::OpenEventFd."
Yabin Cui [Fri, 24 Jan 2020 19:13:34 +0000 (11:13 -0800)]
Merge "simpleperf: avoid getting event name in EventFd::OpenEventFd."
am: 0dddb15f67

Change-Id: I21ee15ac15e327a43abd9a4e95ca9a08fef7573d

4 years agoMerge "simpleperf: avoid getting event name in EventFd::OpenEventFd."
Yabin Cui [Fri, 24 Jan 2020 19:11:39 +0000 (19:11 +0000)]
Merge "simpleperf: avoid getting event name in EventFd::OpenEventFd."

4 years agoMerge changes from topic "casework" am: 26b47227d2
Automerger Merge Worker [Fri, 24 Jan 2020 02:26:54 +0000 (02:26 +0000)]
Merge changes from topic "casework" am: 26b47227d2

Change-Id: I80eec91653b27f45e490aea04d13c9e0ce53305d

4 years agoAllow casefolding and project quotas for f2fs am: f9c2a1d9c1
Automerger Merge Worker [Fri, 24 Jan 2020 02:26:51 +0000 (02:26 +0000)]
Allow casefolding and project quotas for f2fs am: f9c2a1d9c1

Change-Id: Ib72f653baa6d8f7ee41ec11e2de4e0c6c9a666fa

4 years agoMerge changes from topic "casework"
Daniel Rosenberg [Fri, 24 Jan 2020 02:09:55 +0000 (02:09 +0000)]
Merge changes from topic "casework"

* changes:
  ext4.h: add EXT4_FEATURE_INCOMPAT_CASEFOLD
  Allow casefolding and project quotas for f2fs

4 years agosimpleperf: avoid getting event name in EventFd::OpenEventFd.
Yabin Cui [Thu, 23 Jan 2020 23:33:35 +0000 (15:33 -0800)]
simpleperf: avoid getting event name in EventFd::OpenEventFd.

GetEventNameByAttr() uses linear search and is slow. Using it
in EventFd::OpenEventFd() has visible effects in cmds like
`stat --per-thread -a`. So don't use it in EventFd::OpenEventFd().
Instead, pass event_name as a parameter.

Bug: 146220391
Test: run simpleperf_unit_test.
Change-Id: Ie7fde5add3c8f20d110916cc280a9c5d4077417f

4 years agoMerge "simpleperf: fix according to unwindstack change." am: 51c7cad7e8
Automerger Merge Worker [Thu, 23 Jan 2020 23:06:03 +0000 (23:06 +0000)]
Merge "simpleperf: fix according to unwindstack change." am: 51c7cad7e8

Change-Id: I912bbfca8befdbe5f9c69bb4ce13c9b6b6df9f79

4 years agoMerge "simpleperf: fix according to unwindstack change."
Yabin Cui [Thu, 23 Jan 2020 22:45:17 +0000 (22:45 +0000)]
Merge "simpleperf: fix according to unwindstack change."

4 years agosimpleperf: fix according to unwindstack change.
Yabin Cui [Thu, 23 Jan 2020 20:32:26 +0000 (12:32 -0800)]
simpleperf: fix according to unwindstack change.

unwindstack::Maps uses prev_real_map instead of prev_map, which
breaks simpleperf code building up prev_map links. So switch to
use unwindstack::Maps::Sort() to build up prev_real_map links.

Also add more tests.

Bug: 148075852
Test: run simpleperf_unit_test.
Change-Id: Ica0551e2d5a84aa8a0671489821fed1d263324f4

4 years agoMerge "simpleperf: add --per-thread option to stat cmd."
Yabin Cui [Thu, 23 Jan 2020 18:24:21 +0000 (10:24 -0800)]
Merge "simpleperf: add --per-thread option to stat cmd."
am: 60b525c7ee

Change-Id: Ic070e8219b7134e04a6dd14e719731fe8b0ec5c0

4 years agoMerge "simpleperf: add --per-thread option to stat cmd."
Yabin Cui [Thu, 23 Jan 2020 18:16:25 +0000 (18:16 +0000)]
Merge "simpleperf: add --per-thread option to stat cmd."

4 years agoMerge "Update for chnaged MapInfo constructor."
Christopher Ferris [Thu, 23 Jan 2020 18:05:54 +0000 (10:05 -0800)]
Merge "Update for chnaged MapInfo constructor."
am: a4aa6985f7

Change-Id: I528e6232d20ad89745f7dd0674a0ccbe28d738b4

4 years agoMerge "Update for chnaged MapInfo constructor."
Christopher Ferris [Thu, 23 Jan 2020 17:45:26 +0000 (17:45 +0000)]
Merge "Update for chnaged MapInfo constructor."

4 years agoUpdate for chnaged MapInfo constructor.
Christopher Ferris [Thu, 23 Jan 2020 01:22:49 +0000 (17:22 -0800)]
Update for chnaged MapInfo constructor.

Bug: 148075852

Test: Ran unit tests.
Change-Id: Ia5032ce0777437f36643a1defc82c5187ad2fa25

4 years agoMerge "Add cross-process coverage flushing for the LLVM toolchain."
Oliver Nguyen [Wed, 22 Jan 2020 22:42:14 +0000 (14:42 -0800)]
Merge "Add cross-process coverage flushing for the LLVM toolchain."
am: d8ef1421c2

Change-Id: I7e58c5f365ff8238a06aa049394abaa673477b24

4 years agoMerge "Add cross-process coverage flushing for the LLVM toolchain."
Oliver Nguyen [Wed, 22 Jan 2020 22:34:36 +0000 (22:34 +0000)]
Merge "Add cross-process coverage flushing for the LLVM toolchain."

4 years agosimpleperf: add --per-thread option to stat cmd.
Yabin Cui [Fri, 10 Jan 2020 23:33:11 +0000 (15:33 -0800)]
simpleperf: add --per-thread option to stat cmd.

It shows event count for each thread.

Bug: 146220391
Test: run simpleperf_unit_test.

Change-Id: I6346b787eb630c49631e477d0e83bf1901a9f2b3

4 years agoMerge "Add warning for slow file write"
Wei Wang [Fri, 17 Jan 2020 21:29:22 +0000 (13:29 -0800)]
Merge "Add warning for slow file write"
am: 47bdf26065

Change-Id: I24ed4ac9d311bc0482a30c500fd11ae2c1f2db48

4 years agoMerge "Add warning for slow file write"
Treehugger Robot [Fri, 17 Jan 2020 19:31:10 +0000 (19:31 +0000)]
Merge "Add warning for slow file write"

4 years agoAdd warning for slow file write
Wei Wang [Fri, 17 Jan 2020 02:26:12 +0000 (18:26 -0800)]
Add warning for slow file write

Bug: 147833210
Test: Build
Change-Id: I07a7220016c29ba290b491fbc86603f06c4b2179

4 years agoMerge "DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp-without-vendor (6129114)...
TreeHugger Robot [Thu, 16 Jan 2020 01:43:37 +0000 (01:43 +0000)]
Merge "DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master" into stage-aosp-master

4 years agoMerge "simpleperf: add doc to show annotated source code and disassembly."
Yabin Cui [Thu, 16 Jan 2020 01:15:23 +0000 (17:15 -0800)]
Merge "simpleperf: add doc to show annotated source code and disassembly."
am: 4f94e91035

Change-Id: Ib716d71b1ac67ed82f4fab4764d8b3f95f1086c8

4 years agoMerge "simpleperf: remove code handling cpu hotplug."
Yabin Cui [Thu, 16 Jan 2020 01:14:45 +0000 (17:14 -0800)]
Merge "simpleperf: remove code handling cpu hotplug."
am: 695939dd24

Change-Id: I61684b51b73a357744d6cdd8487c77dc1351bfbe

4 years agoMerge "simpleperf: add doc to show annotated source code and disassembly."
Yabin Cui [Thu, 16 Jan 2020 01:00:16 +0000 (01:00 +0000)]
Merge "simpleperf: add doc to show annotated source code and disassembly."

4 years agoMerge "simpleperf: remove code handling cpu hotplug."
Yabin Cui [Thu, 16 Jan 2020 00:59:55 +0000 (00:59 +0000)]
Merge "simpleperf: remove code handling cpu hotplug."

4 years agoDO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage...
Xin Li [Wed, 15 Jan 2020 23:59:16 +0000 (15:59 -0800)]
DO NOT MERGE - Empty merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master

Bug: 146167222
Change-Id: I4439c7d422cbed859600ed9da4592a18b7a6ab41

4 years agoMerge "CtsKernelConfigTestCases secondary_user"
jovanak [Wed, 15 Jan 2020 19:46:29 +0000 (11:46 -0800)]
Merge "CtsKernelConfigTestCases secondary_user"
am: b8d12d31f1

Change-Id: I5546a80c7ebcf088ae7546534da825048f824171

4 years agoMerge "CtsKernelConfigTestCases secondary_user"
Treehugger Robot [Wed, 15 Jan 2020 19:39:21 +0000 (19:39 +0000)]
Merge "CtsKernelConfigTestCases secondary_user"

4 years agoMerge "simpleperf: prepare for selinux change."
Yabin Cui [Wed, 15 Jan 2020 18:40:42 +0000 (10:40 -0800)]
Merge "simpleperf: prepare for selinux change."
am: f80bf86b1c

Change-Id: I06bc98c09f49e746eb062d95c2a71671cce8b4b8

4 years agoMerge "simpleperf: prepare for selinux change."
Yabin Cui [Wed, 15 Jan 2020 18:39:12 +0000 (18:39 +0000)]
Merge "simpleperf: prepare for selinux change."

4 years agoMerge "Fix help string for f2fs"
Daniel Rosenberg [Wed, 15 Jan 2020 15:26:15 +0000 (07:26 -0800)]
Merge "Fix help string for f2fs"
am: a23d09ced2

Change-Id: If16d0265ae31a72868857033eb3bd578be435021

4 years agoMerge "Fix help string for f2fs"
Treehugger Robot [Wed, 15 Jan 2020 15:24:14 +0000 (15:24 +0000)]
Merge "Fix help string for f2fs"

4 years agoMerge "fec: Add liblog as a dependency where libbase is used"
Tom Cherry [Wed, 15 Jan 2020 08:11:44 +0000 (00:11 -0800)]
Merge "fec: Add liblog as a dependency where libbase is used"
am: 18ed23f3a4

Change-Id: If82f0cc303a415243cd0a2c9c6dd4fd70f7f7330

4 years agoMerge "fec: Add liblog as a dependency where libbase is used"
Treehugger Robot [Wed, 15 Jan 2020 08:10:41 +0000 (08:10 +0000)]
Merge "fec: Add liblog as a dependency where libbase is used"

4 years agosimpleperf: remove code handling cpu hotplug.
Yabin Cui [Wed, 15 Jan 2020 00:43:43 +0000 (16:43 -0800)]
simpleperf: remove code handling cpu hotplug.

cpu hotplug code was disabled in record cmd long time ago, and
becomes obsolete as pixel devices seem no long use cpu hotplug
for thermal control.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: I75fc522792e33afd16dd805ee0c9946ad4a6c67a

4 years agosimpleperf: prepare for selinux change.
Yabin Cui [Mon, 13 Jan 2020 22:48:01 +0000 (14:48 -0800)]
simpleperf: prepare for selinux change.

To work with controlling perf_events via selinux:

1. Check security.perf_harden property at the entry of simpleperf.
2. Record tracepoint raw data only when running as root.

Bug: 139860059
Test: run simpleperf_unit_test.
Change-Id: I40082de0010949e54fb707f385220157a71f266b

4 years agofec: Add liblog as a dependency where libbase is used
Tom Cherry [Tue, 14 Jan 2020 22:05:42 +0000 (14:05 -0800)]
fec: Add liblog as a dependency where libbase is used

Bug: 119867234
Test: build

Change-Id: I49d2110a5469c4c58bf2587f8d7e4a5b8981caac

4 years agoMerge "Add cache for --binary filter in inject cmd."
Yi Kong [Tue, 14 Jan 2020 10:10:32 +0000 (02:10 -0800)]
Merge "Add cache for --binary filter in inject cmd."
am: 88b0c7f825

Change-Id: Ibdfe77b6e0695bfc1115a2fce63e77f4a1de5e56

4 years agoMerge "Add cache for --binary filter in inject cmd."
Yi Kong [Tue, 14 Jan 2020 10:08:39 +0000 (10:08 +0000)]
Merge "Add cache for --binary filter in inject cmd."

4 years agoMerge "simpleperf: remove inplace-sampler."
Yabin Cui [Tue, 14 Jan 2020 01:10:38 +0000 (17:10 -0800)]
Merge "simpleperf: remove inplace-sampler."
am: 2fbf13af70

Change-Id: I7ec156e6a7180d1cdfb86a35441b49c8af4fe595

4 years agoMerge "simpleperf: remove inplace-sampler."
Yabin Cui [Tue, 14 Jan 2020 01:09:03 +0000 (01:09 +0000)]
Merge "simpleperf: remove inplace-sampler."

4 years agosimpleperf: add doc to show annotated source code and disassembly.
Yabin Cui [Tue, 14 Jan 2020 00:56:51 +0000 (16:56 -0800)]
simpleperf: add doc to show annotated source code and disassembly.

Bug: 132371337
Test: none
Change-Id: I09b8855af7d8609e7c16c8120cacda46ce83de31

4 years agoCtsKernelConfigTestCases secondary_user
jovanak [Tue, 14 Jan 2020 00:32:28 +0000 (16:32 -0800)]
CtsKernelConfigTestCases secondary_user

Marks this CTS test module as NOT supporting secondary_user, meaning that
the tests are not eligible to be run from a regular Android user other
than the system user (i.e. other than user 0).

The reason for lack of elligibility is that the module restarts before running
the tests - the device ends up in user 0 by default upon reboot.

Tradefed infrastructure does not support restarting into different users at
the moment.

Bug: 141773058
Test: module passed with secondary_user params
 (--enable-optional-parameterization --module-parameter secondary_user)

Change-Id: I39fca13fe40b497cf7cb7a014d11f96e8174c953

4 years agoAdd cache for --binary filter in inject cmd.
Yi Kong [Mon, 13 Jan 2020 23:43:01 +0000 (15:43 -0800)]
Add cache for --binary filter in inject cmd.

Regex matching is slow. Cache the DSO to vastly improve performance when
the --binary filter is used.

Test: simpleperf_unit_test
Bug: 79161490
Change-Id: Idc7a8a588c8291ce59fab89ab0278aa0b3fe07f0

4 years agosimpleperf: remove inplace-sampler.
Yabin Cui [Mon, 13 Jan 2020 23:25:16 +0000 (15:25 -0800)]
simpleperf: remove inplace-sampler.

Remove obsolete code for inplace-sampler, which is never fully implemented.

Bug: none
Test: run simpleperf_unit_test.
Change-Id: I458c23e2d2331ec96c3c9d8462309eef544564b9

4 years agoAdd cross-process coverage flushing for the LLVM toolchain.
Oliver Nguyen [Tue, 10 Dec 2019 00:36:08 +0000 (16:36 -0800)]
Add cross-process coverage flushing for the LLVM toolchain.

Bug: 143977934
Test: Build with native coverage
Test: kill -37 <pid> and check for coverage in /data/misc/trace
Change-Id: Iadf93e62d92dc35cdaa35162ca4a75d26190db85

4 years agoMerge "simpleperf: dump all process maps for etm system wide recording." am: 10e605e0...
Automerger Merge Worker [Sat, 11 Jan 2020 02:12:52 +0000 (02:12 +0000)]
Merge "simpleperf: dump all process maps for etm system wide recording." am: 10e605e0aa am: df1ba217c6

Change-Id: I623b5d3811c687604a9aa5069efeba8cdf1e6609

4 years agoMerge "simpleperf: dump all process maps for etm system wide recording."
Yabin Cui [Sat, 11 Jan 2020 02:02:16 +0000 (18:02 -0800)]
Merge "simpleperf: dump all process maps for etm system wide recording."
am: 10e605e0aa

Change-Id: Iefe78076e2ad2704d4fdce47dc7f39f9cc3940c4

4 years agoMerge "simpleperf: dump all process maps for etm system wide recording."
Treehugger Robot [Sat, 11 Jan 2020 01:26:05 +0000 (01:26 +0000)]
Merge "simpleperf: dump all process maps for etm system wide recording."

4 years agoMerge "Dump coverage for all objects (a.out + dlopen()'d .so's)" am: df12a83287 am...
Automerger Merge Worker [Sat, 11 Jan 2020 00:23:34 +0000 (00:23 +0000)]
Merge "Dump coverage for all objects (a.out + dlopen()'d .so's)" am: df12a83287 am: 6f48e347c9

Change-Id: Icd8fe876edb8b2f5b464fd292ba785a711e908ef

4 years agoMerge "Dump coverage for all objects (a.out + dlopen()'d .so's)"
Ray Essick [Sat, 11 Jan 2020 00:08:38 +0000 (16:08 -0800)]
Merge "Dump coverage for all objects (a.out + dlopen()'d .so's)"
am: df12a83287

Change-Id: I3703e5913c296ef372bfcdf1493c94cfcdf32d47

4 years agoMerge "Dump coverage for all objects (a.out + dlopen()'d .so's)"
Treehugger Robot [Sat, 11 Jan 2020 00:05:36 +0000 (00:05 +0000)]
Merge "Dump coverage for all objects (a.out + dlopen()'d .so's)"

4 years agosimpleperf: dump all process maps for etm system wide recording.
Yabin Cui [Sat, 11 Jan 2020 00:00:11 +0000 (16:00 -0800)]
simpleperf: dump all process maps for etm system wide recording.

If don't dump all process maps, we may miss mapping info needed
to decode etm data.

Bug: 79161490
Test: run simpleperf manually.
Test: run simpleperf_unit_test.
Change-Id: Ic98d1b461b2c11a51147c67e8f269d5be10e962b

4 years agoDump coverage for all objects (a.out + dlopen()'d .so's)
Ray Essick [Thu, 9 Jan 2020 19:51:27 +0000 (11:51 -0800)]
Dump coverage for all objects (a.out + dlopen()'d .so's)

with code coverage enabled, the main object as well as each dlopen()ed
shared library include their own copies of the hooks for dumping gcov
data upon receiving signal GCOV_FLUSH_SIGNAL.  Only the last one to
register was actually dumped.
Here, we chain the signal handlers together so that each one will call
the previously registered handler to ensure that each object's coverage
data is dumped.

Bug: 139313557
Test: dump gcov data via kill -37 on module with dlopen()
Change-Id: I376df2df6b65acff95ad5d135a7ba2bf0eac3695

4 years agoMerge "Add liblog as a dependency where libbase is used" am: 6b9eafeaeb am: fa267cf479
Automerger Merge Worker [Fri, 10 Jan 2020 17:28:42 +0000 (17:28 +0000)]
Merge "Add liblog as a dependency where libbase is used" am: 6b9eafeaeb am: fa267cf479

Change-Id: I849c24a5219084f872d4c8b8efc0e5309b04c61d

4 years agoMerge "Add liblog as a dependency where libbase is used"
Tom Cherry [Fri, 10 Jan 2020 17:18:19 +0000 (09:18 -0800)]
Merge "Add liblog as a dependency where libbase is used"
am: 6b9eafeaeb

Change-Id: Iff60859217e380c362395dcde6097b5269134802

4 years agoMerge "Add liblog as a dependency where libbase is used"
Tom Cherry [Fri, 10 Jan 2020 16:56:33 +0000 (16:56 +0000)]
Merge "Add liblog as a dependency where libbase is used"

4 years agoMerge "Allow fec to be compiled with BUILD_HOST_static." am: 85da6a6813 am: 2e434cab14
Automerger Merge Worker [Fri, 10 Jan 2020 07:32:44 +0000 (07:32 +0000)]
Merge "Allow fec to be compiled with BUILD_HOST_static." am: 85da6a6813 am: 2e434cab14

Change-Id: Ib23c947689561500d32731360c00fc4315d502cb

4 years agoMerge "Allow fec to be compiled with BUILD_HOST_static."
Dario Freni [Fri, 10 Jan 2020 07:21:27 +0000 (23:21 -0800)]
Merge "Allow fec to be compiled with BUILD_HOST_static."
am: 85da6a6813

Change-Id: Id91c4bfb5bfe2a3370985192787afe683a081224

4 years agoMerge "Allow fec to be compiled with BUILD_HOST_static."
Treehugger Robot [Fri, 10 Jan 2020 07:19:46 +0000 (07:19 +0000)]
Merge "Allow fec to be compiled with BUILD_HOST_static."

4 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on ARM binary translation"...
Automerger Merge Worker [Fri, 10 Jan 2020 04:10:56 +0000 (04:10 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on ARM binary translation" am: 37275a4344 am: 6731d94b90

Change-Id: Iab6446206bdc5189f712152cb6eb9776a3c9ebab

4 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on ARM binary translation"
Dmytro Chystiakov [Fri, 10 Jan 2020 04:02:07 +0000 (20:02 -0800)]
Merge "simpleperf: Omit dwarf-callgraph tests running on ARM binary translation"
am: 37275a4344

Change-Id: Id06b1d1f1e299b5fdda9efab1c6ec1ca6b8299cd

4 years agoMerge "simpleperf: Omit dwarf-callgraph tests running on ARM binary translation"
Treehugger Robot [Fri, 10 Jan 2020 03:45:39 +0000 (03:45 +0000)]
Merge "simpleperf: Omit dwarf-callgraph tests running on ARM binary translation"

4 years agoAdd liblog as a dependency where libbase is used
Tom Cherry [Thu, 9 Jan 2020 20:27:44 +0000 (12:27 -0800)]
Add liblog as a dependency where libbase is used

Bug: 119867234
Test: build
Change-Id: I2728559bbd3cd4f867b30baf53a62124b8abd0b6

4 years agoAllow fec to be compiled with BUILD_HOST_static.
Dario Freni [Thu, 9 Jan 2020 19:47:34 +0000 (19:47 +0000)]
Allow fec to be compiled with BUILD_HOST_static.

Bug: 144477678
Test: m fec; BUILD_HOST_static=1 m fec
Change-Id: Ic9d9fb65604e56e89a4c6ce75eb583beb34efe63

4 years agoext4.h: add EXT4_FEATURE_INCOMPAT_CASEFOLD
Daniel Rosenberg [Thu, 9 Jan 2020 00:10:15 +0000 (16:10 -0800)]
ext4.h: add EXT4_FEATURE_INCOMPAT_CASEFOLD

fs_mgr needs to know the value of the casefold feature flag
so it can enable it.

Bug: 138322712
Test: Compiles
Change-Id: I6acca568622174a4b15a6bfa101fcc676c12dca7

4 years agoAllow casefolding and project quotas for f2fs
Daniel Rosenberg [Tue, 17 Dec 2019 22:46:25 +0000 (14:46 -0800)]
Allow casefolding and project quotas for f2fs

Bug: 138321217
Bug: 138322712
Test: Enable on device. Test the /data has options enabled via
      tune2fs/f2fs.fsck
Change-Id: I02abdf97984c73d95632b17e866de5755f38b304

4 years agoFix help string for f2fs
Daniel Rosenberg [Wed, 18 Dec 2019 02:35:51 +0000 (18:35 -0800)]
Fix help string for f2fs

Help showed the operands in the wrong order. The script does not appear
to allow for there to be in different order, so fixing the help message

Test: None (could confirm necessary by invoking with flags in other
      order and seeing that it doesn't see the flags)

Change-Id: Ia0a5a41f4743caf03e39df7be53f717a2642b764

4 years agoMerge "Add utility to calculate digest from the root of verity tree" am: c8890b8d63...
Automerger Merge Worker [Wed, 8 Jan 2020 20:32:02 +0000 (20:32 +0000)]
Merge "Add utility to calculate digest from the root of verity tree" am: c8890b8d63 am: 45ab24cb3d

Change-Id: Idf440fd4a3adf6b7a5cda0e5d3870e5c4da32894

4 years agoMerge "Add utility to calculate digest from the root of verity tree"
Nikita Ioffe [Wed, 8 Jan 2020 20:17:34 +0000 (12:17 -0800)]
Merge "Add utility to calculate digest from the root of verity tree"
am: c8890b8d63

Change-Id: I64e0575ceade04959a2fe9ae6f96c7b0a8b5dd3f

4 years agoMerge "Add utility to calculate digest from the root of verity tree"
Nikita Ioffe [Wed, 8 Jan 2020 19:25:41 +0000 (19:25 +0000)]
Merge "Add utility to calculate digest from the root of verity tree"

4 years agosimpleperf: Omit dwarf-callgraph tests running on ARM binary
Dmytro Chystiakov [Tue, 7 Jan 2020 22:52:44 +0000 (14:52 -0800)]
simpleperf: Omit dwarf-callgraph tests running on ARM binary
translation

Bug: b/144472912
Test: Run ARM CtsSimpleperfTestCases module

Change-Id: Ia8eef58d6408532943baf5d848a77644a0adcf04
Signed-off-by: Dmytro Chystiakov <dmytro.chystiakov@intel.com>
4 years agoMerge "simpleperf: Accept --binary option as regex in inject cmd" am: 65ff02b927...
Automerger Merge Worker [Tue, 7 Jan 2020 02:07:38 +0000 (02:07 +0000)]
Merge "simpleperf: Accept --binary option as regex in inject cmd" am: 65ff02b927 am: c9dd6629d5

Change-Id: I94796dd78c303dd49700099ace2829d5f02a6661

4 years agoMerge "simpleperf: Accept --binary option as regex in inject cmd"
Yi Kong [Tue, 7 Jan 2020 01:55:50 +0000 (17:55 -0800)]
Merge "simpleperf: Accept --binary option as regex in inject cmd"
am: 65ff02b927

Change-Id: I64b38f53320599064b5fb31a408c4644cb3a5ebf

4 years agoMerge "simpleperf: Accept --binary option as regex in inject cmd"
Yi Kong [Tue, 7 Jan 2020 01:50:38 +0000 (01:50 +0000)]
Merge "simpleperf: Accept --binary option as regex in inject cmd"

4 years agosimpleperf: Accept --binary option as regex in inject cmd
Yi Kong [Mon, 6 Jan 2020 23:22:55 +0000 (15:22 -0800)]
simpleperf: Accept --binary option as regex in inject cmd

This would allow us to more efficiently generate AudoFDO profiles for
multiple binaries.

Test: simpleperf_unit_test
Bug: 79161490
Change-Id: I45b444b8cffd8eb72e4079dcf66a176da0da5b6d

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 6087948." am: 143140761f...
Automerger Merge Worker [Mon, 6 Jan 2020 23:23:40 +0000 (23:23 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 6087948." am: 143140761f am: 74cfc4d18b

Change-Id: Ief2b50ee290b7305637a0de5d50369ba6c52a571

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 6087948."
Yabin Cui [Mon, 6 Jan 2020 23:02:26 +0000 (15:02 -0800)]
Merge "simpleperf: update simpleperf prebuilts to build 6087948."
am: 143140761f

Change-Id: I089b6454a3ab2ccec08f749d3d403c3dfb7c6462

4 years agoMerge "simpleperf: update simpleperf prebuilts to build 6087948."
Yabin Cui [Mon, 6 Jan 2020 22:57:42 +0000 (22:57 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 6087948."

4 years agosimpleperf: update simpleperf prebuilts to build 6087948.
Yabin Cui [Sat, 21 Dec 2019 00:20:03 +0000 (16:20 -0800)]
simpleperf: update simpleperf prebuilts to build 6087948.

Taken from branch aosp-simpleperf-release.

Bug: none
Test: run test.py.

Change-Id: I5d23c151790bb71c12d8e5a81e3038af1109522b

4 years agoAdd utility to calculate digest from the root of verity tree
Nikita Ioffe [Sun, 5 Jan 2020 04:25:47 +0000 (04:25 +0000)]
Add utility to calculate digest from the root of verity tree

This function will help verifying that external hashtree wasn't
tampered. See another change in this topic for more context.

Test: atest build_verity_tree_test
Bug: 145670581
Change-Id: I10a8141a60eec142c77cde0048f0abf44b3406bb

4 years agoMerge "Extend bootctl with IBootControl1.1 API" am: 9fff8e3a7e am: 5e69c8b35d
Automerger Merge Worker [Thu, 2 Jan 2020 19:18:22 +0000 (19:18 +0000)]
Merge "Extend bootctl with IBootControl1.1 API" am: 9fff8e3a7e am: 5e69c8b35d

Change-Id: I23fb3f54ea146b35e158e05a982ca0dfc2547edf

4 years agoMerge "Extend bootctl with IBootControl1.1 API"
Alessio Balsini [Thu, 2 Jan 2020 19:01:13 +0000 (11:01 -0800)]
Merge "Extend bootctl with IBootControl1.1 API"
am: 9fff8e3a7e

Change-Id: Ib8a3413bfa931e7f149750540836fc0d1b9ae9a0

4 years agoMerge "Extend bootctl with IBootControl1.1 API"
Treehugger Robot [Thu, 2 Jan 2020 18:33:43 +0000 (18:33 +0000)]
Merge "Extend bootctl with IBootControl1.1 API"

4 years agoExtend bootctl with IBootControl1.1 API
Alessio Balsini [Thu, 19 Dec 2019 13:43:36 +0000 (13:43 +0000)]
Extend bootctl with IBootControl1.1 API

Extend bootctl to use the new API methods introduced in IBootControl1.1:
setSnapshotMergeStatus() and getSnapshotMergeStatus().

Test: adb shell
Bug: b/144783382
Change-Id: Id7acc927561aa17b37be65fa54faa55702d73958
Signed-off-by: Alessio Balsini <balsini@google.com>
4 years agoMerge "lpdump: Add support for the DISABLED flag." am: 8c441c44bf am: 3b9013ac84
Automerger Merge Worker [Fri, 27 Dec 2019 21:26:53 +0000 (21:26 +0000)]
Merge "lpdump: Add support for the DISABLED flag." am: 8c441c44bf am: 3b9013ac84

Change-Id: Iba8a6c87ab33000abb697899ee31abe3b438fcc9

4 years agoMerge "lpdump: Add support for the DISABLED flag."
David Anderson [Fri, 27 Dec 2019 21:01:26 +0000 (13:01 -0800)]
Merge "lpdump: Add support for the DISABLED flag."
am: 8c441c44bf

Change-Id: Iabcbba78a6b10a019e96ef7ffc2b848f80e50843

4 years agoMerge "lpdump: Add support for the DISABLED flag."
David Anderson [Fri, 27 Dec 2019 20:28:48 +0000 (20:28 +0000)]
Merge "lpdump: Add support for the DISABLED flag."

4 years agoMerge "simpleperf: clean up cmd_list.cpp." am: a7e3e6e03c am: 9596b66555
Automerger Merge Worker [Sat, 21 Dec 2019 01:58:01 +0000 (01:58 +0000)]
Merge "simpleperf: clean up cmd_list.cpp." am: a7e3e6e03c am: 9596b66555

Change-Id: I01f512880ffb4ca32b1dc8c9cde09979f46f461f

4 years agoMerge "simpleperf: clean up cmd_list.cpp."
Yabin Cui [Sat, 21 Dec 2019 01:43:00 +0000 (17:43 -0800)]
Merge "simpleperf: clean up cmd_list.cpp."
am: a7e3e6e03c

Change-Id: Ibf059bcf86d2004715d49f409b004a2c77851b69

4 years agoMerge "simpleperf: clean up cmd_list.cpp."
Treehugger Robot [Sat, 21 Dec 2019 01:39:34 +0000 (01:39 +0000)]
Merge "simpleperf: clean up cmd_list.cpp."

4 years agosimpleperf: clean up cmd_list.cpp.
Yabin Cui [Fri, 20 Dec 2019 20:33:09 +0000 (12:33 -0800)]
simpleperf: clean up cmd_list.cpp.

1. Change return type of IsEventTypeSupported.
2. Use callback function to check if an event belongs to a type.

Bug: none
Test: run simpleperf_unit_test.

Change-Id: I2267d21c2e9501cb534a6520abb20d563de7e545