OSDN Git Service

android-x86/system-extras.git
6 years agoMerge "simpleperf: support "--app" option in record/stat command." am: 9aa1dc2f30
Yabin Cui [Fri, 14 Jul 2017 23:42:35 +0000 (23:42 +0000)]
Merge "simpleperf: support "--app" option in record/stat command." am: 9aa1dc2f30
am: 44139af1f4

Change-Id: I4f152fe72dc5ffea7995dddd85f115d21f72acb1

6 years agoMerge "simpleperf: support "--app" option in record/stat command."
Yabin Cui [Fri, 14 Jul 2017 23:38:33 +0000 (23:38 +0000)]
Merge "simpleperf: support "--app" option in record/stat command."
am: 9aa1dc2f30

Change-Id: I4ca9cac0a3400f59d8e66fdeb1b68af2a62e7f98

6 years agoMerge "simpleperf: support "--app" option in record/stat command."
Treehugger Robot [Fri, 14 Jul 2017 23:32:35 +0000 (23:32 +0000)]
Merge "simpleperf: support "--app" option in record/stat command."

6 years agoMerge changes from topic 'ext4_encryption_flag' am: 7ce805c97e
Tom Cherry [Fri, 14 Jul 2017 23:14:15 +0000 (23:14 +0000)]
Merge changes from topic 'ext4_encryption_flag' am: 7ce805c97e
am: 4e02dcd7d0

Change-Id: I562edcdf7fb0c8b84edfaf400702ce17d528c817

6 years agoext4.h: add EXT4_FEATURE_INCOMPAT_ENCRYPT am: 1468fbabdd
Eric Biggers [Fri, 14 Jul 2017 23:14:11 +0000 (23:14 +0000)]
ext4.h: add EXT4_FEATURE_INCOMPAT_ENCRYPT am: 1468fbabdd
am: de07b52713

Change-Id: I963381be3204e283381d41a79f608561f7195d44

6 years agoMerge changes from topic 'ext4_encryption_flag'
Tom Cherry [Fri, 14 Jul 2017 23:12:05 +0000 (23:12 +0000)]
Merge changes from topic 'ext4_encryption_flag'
am: 7ce805c97e

Change-Id: I11917818efdc536b35832116b4bafc7ecbaa29c7

6 years agoext4.h: add EXT4_FEATURE_INCOMPAT_ENCRYPT
Eric Biggers [Fri, 14 Jul 2017 23:11:55 +0000 (23:11 +0000)]
ext4.h: add EXT4_FEATURE_INCOMPAT_ENCRYPT
am: 1468fbabdd

Change-Id: I898cae635e00f2a01893b3d23b7c77f14fff684e

6 years agoMerge changes from topic 'ext4_encryption_flag'
Tom Cherry [Fri, 14 Jul 2017 23:06:30 +0000 (23:06 +0000)]
Merge changes from topic 'ext4_encryption_flag'

* changes:
  ext4_sb.h: make feature flags in fs_info 32-bit
  ext4.h: add EXT4_FEATURE_INCOMPAT_ENCRYPT

6 years agosimpleperf: support "--app" option in record/stat command.
Yabin Cui [Wed, 12 Jul 2017 22:50:20 +0000 (15:50 -0700)]
simpleperf: support "--app" option in record/stat command.

By using --app [package_name] option, users don't need to
manually run run-as or look for the app's process.
It is also good for profiling app startup time.

For simpleperf, it now can start in the shell's context,
and be able to get tracing events information, which can
support profiling tracepoint events for apps. This is
useful for monitoring thread sleep time.

This CL is tested manually, but I will change the
way of running simpleperf cts test to test this.

Bug: http://b/34108866
Test: test manually.

Change-Id: I8db0390af8e49c56dc4860374153f753bbcf9b11

6 years agoMerge "Inferno: A framegrapher based on simpleperf" am: af30023228
Fabien Sanglard [Thu, 13 Jul 2017 16:52:33 +0000 (16:52 +0000)]
Merge "Inferno: A framegrapher based on simpleperf" am: af30023228
am: d8f0a1eb93

Change-Id: I595ef7ed445cd973d413ac8f712d4ff8b67fff14

6 years agoMerge "Inferno: A framegrapher based on simpleperf"
Fabien Sanglard [Thu, 13 Jul 2017 16:49:33 +0000 (16:49 +0000)]
Merge "Inferno: A framegrapher based on simpleperf"
am: af30023228

Change-Id: I9b8ca44ac7ffa79870fa40c7c52bfd60d1259413

6 years agoMerge "Inferno: A framegrapher based on simpleperf"
Fabien Sanglard [Thu, 13 Jul 2017 16:46:21 +0000 (16:46 +0000)]
Merge "Inferno: A framegrapher based on simpleperf"

6 years agoMerge "os-release.d: set the default version to four numbers." am: 80e0678406
Sen Jiang [Thu, 13 Jul 2017 05:52:53 +0000 (05:52 +0000)]
Merge "os-release.d: set the default version to four numbers." am: 80e0678406
am: 65f9088af1

Change-Id: I44152b354f0b872ef5b0c54bf4ac13496742cfbc

6 years agoMerge "os-release.d: set the default version to four numbers."
Sen Jiang [Thu, 13 Jul 2017 05:50:57 +0000 (05:50 +0000)]
Merge "os-release.d: set the default version to four numbers."
am: 80e0678406

Change-Id: Id75fbf587b59623b8c4ced6f108f880724362210

6 years agoMerge "os-release.d: set the default version to four numbers."
Treehugger Robot [Thu, 13 Jul 2017 05:46:38 +0000 (05:46 +0000)]
Merge "os-release.d: set the default version to four numbers."

6 years agoMerge "simpleperf: add test for recording cpu-clock." am: 9dc8dd6de2
Yabin Cui [Thu, 13 Jul 2017 01:35:10 +0000 (01:35 +0000)]
Merge "simpleperf: add test for recording cpu-clock." am: 9dc8dd6de2
am: 4f5d2f4357

Change-Id: Ifffef0768bfce6ae932f23d40c6d2c2bdb58d6c6

6 years agoMerge "simpleperf: add test for recording cpu-clock."
Yabin Cui [Thu, 13 Jul 2017 01:33:11 +0000 (01:33 +0000)]
Merge "simpleperf: add test for recording cpu-clock."
am: 9dc8dd6de2

Change-Id: I94a66720ceeeb0b95eca5eadb8fd529f5744d931

6 years agoMerge "simpleperf: add test for recording cpu-clock."
Treehugger Robot [Thu, 13 Jul 2017 01:30:30 +0000 (01:30 +0000)]
Merge "simpleperf: add test for recording cpu-clock."

6 years agoos-release.d: set the default version to four numbers.
Sen Jiang [Tue, 4 Apr 2017 20:24:56 +0000 (13:24 -0700)]
os-release.d: set the default version to four numbers.

We will report system_version and product_version separately to Omaha,
so revert back to using four numbers for version.

Test: cat $OUT/system/etc/os-release.d/system_version
Change-Id: Ife69a7a17d1a06cc9127540cb39f27ce4fd0c944
(cherry picked from commit d454042d764713ead2b87b78f4d2292d2d422d45)

6 years agoInferno: A framegrapher based on simpleperf
Fabien Sanglard [Wed, 28 Jun 2017 20:18:52 +0000 (13:18 -0700)]
Inferno: A framegrapher based on simpleperf

Inferno generates flamegraph for an entire process in one click.
The HTML report is automatically opened in the machine browser.

To run it on surfaceflinger, start UIBench to generate load and:
 - ./inferno.sh (Linux/MacOS)
 - ./inferno.bat (Windows)

See report.html for a sample report.

Change-Id: I35a20fcfe4b385dbf45832bef0ff69b80a44e1d6

6 years agoMerge "simpleperf: enforce support of dwarf based callgraph." am: 1564048fd3
Yabin Cui [Thu, 13 Jul 2017 00:46:37 +0000 (00:46 +0000)]
Merge "simpleperf: enforce support of dwarf based callgraph." am: 1564048fd3
am: 63d9e48597

Change-Id: I281bc4465071c642bad981196ab993c5b61bbf4c

6 years agoMerge "simpleperf: enforce support of dwarf based callgraph."
Yabin Cui [Thu, 13 Jul 2017 00:44:42 +0000 (00:44 +0000)]
Merge "simpleperf: enforce support of dwarf based callgraph."
am: 1564048fd3

Change-Id: I8fea0476d4e95ba9fa807760f2cf7e61b82a4c40

6 years agoMerge "simpleperf: enforce support of dwarf based callgraph."
Yabin Cui [Thu, 13 Jul 2017 00:42:36 +0000 (00:42 +0000)]
Merge "simpleperf: enforce support of dwarf based callgraph."

6 years agosimpleperf: enforce support of dwarf based callgraph.
Yabin Cui [Wed, 12 Jul 2017 21:50:07 +0000 (14:50 -0700)]
simpleperf: enforce support of dwarf based callgraph.

If it is not supported by the kernel, it may be because
a kernel patch "perf: Fix arch_perf_out_copy_user default",
or a configuration HAVE_PERF_USER_STACK_DUMP is missing.

Bug: http://b/63634097
Test: run simpleperf_unit_tests.
Change-Id: I4d3b2de72925c3566bcb0ebe41872919b7312687

6 years agosimpleperf: add test for recording cpu-clock.
Yabin Cui [Wed, 12 Jul 2017 21:25:46 +0000 (14:25 -0700)]
simpleperf: add test for recording cpu-clock.

Bug: http://b/63135835
Test: run the test on marlin.
Change-Id: I5b51eaafb596dc7df886b59b5ea208ae9c2c739a

6 years agoext4.h: add EXT4_FEATURE_INCOMPAT_ENCRYPT
Eric Biggers [Mon, 15 May 2017 21:19:24 +0000 (14:19 -0700)]
ext4.h: add EXT4_FEATURE_INCOMPAT_ENCRYPT

fs_mgr needs to know the value of the encrypt feature flag (added to
ext4 in upstream kernel v4.1) so it can enable it.

Bug: 36231741
Change-Id: I7475ea8424fa5a2c4712634eada3095e938e97e3

6 years agoext4_sb.h: make feature flags in fs_info 32-bit
Eric Biggers [Thu, 6 Jul 2017 19:44:40 +0000 (12:44 -0700)]
ext4_sb.h: make feature flags in fs_info 32-bit

The feature flag fields in the ext4 superblock are 32-bit, so they
should be 32-bit in fs_info too.

Bug: 36231741
Change-Id: I719953ac389d1c7f503db0b669c2815c44807f9f

6 years agoMerge "kernel.config: check console-ramoops-0" am: 3cd4b5a765
Mark Salyzyn [Wed, 28 Jun 2017 14:26:04 +0000 (14:26 +0000)]
Merge "kernel.config: check console-ramoops-0" am: 3cd4b5a765
am: 66a4b1bd79

Change-Id: I817d00383d64cf5f4a4562f66f330f0a95fe8e28

6 years agoMerge "kernel.config: check console-ramoops-0"
Mark Salyzyn [Wed, 28 Jun 2017 14:22:34 +0000 (14:22 +0000)]
Merge "kernel.config: check console-ramoops-0"
am: 3cd4b5a765

Change-Id: I6972df5357f71ffcda97cdcbacaba8aa4eb726e1

6 years agoMerge "kernel.config: check console-ramoops-0"
Treehugger Robot [Wed, 28 Jun 2017 14:19:03 +0000 (14:19 +0000)]
Merge "kernel.config: check console-ramoops-0"

6 years agoMerge "simpleperf: add demo for kotlin." am: d39db9b0f5
Yabin Cui [Tue, 27 Jun 2017 21:32:00 +0000 (21:32 +0000)]
Merge "simpleperf: add demo for kotlin." am: d39db9b0f5
am: 1e391c4bad

Change-Id: I8d7df6cc72bd42078a44b9c823cf1de3ec5a38cf

6 years agoMerge "simpleperf: add demo for kotlin."
Yabin Cui [Tue, 27 Jun 2017 21:28:31 +0000 (21:28 +0000)]
Merge "simpleperf: add demo for kotlin."
am: d39db9b0f5

Change-Id: Ie469016cf1d336ac2c88a0522c7913aee8d26ec1

6 years agokernel.config: check console-ramoops-0
Mark Salyzyn [Tue, 27 Jun 2017 16:36:52 +0000 (09:36 -0700)]
kernel.config: check console-ramoops-0

On later kernels /sys/fs/pstore/console-ramoops becomes
/sys/fs/pstore/console-ramoops-0. One or the other is
present, but not both.

Test: none
Bug: 63058217
Change-Id: I4b54cfdd9f347735ccd2debd08a1baa167c9a24f

6 years agoMerge "simpleperf: add demo for kotlin."
Yabin Cui [Tue, 27 Jun 2017 21:20:39 +0000 (21:20 +0000)]
Merge "simpleperf: add demo for kotlin."

6 years agosimpleperf: add demo for kotlin.
Yabin Cui [Tue, 27 Jun 2017 01:40:36 +0000 (18:40 -0700)]
simpleperf: add demo for kotlin.

And fix annotate.py to include kotlin source code.

Bug: http://b/32834638
Test: profile the app on bullhead and marlin using scripts manually.
Change-Id: Ic812cd2f8db7d047ceac58e3f5ae6a3f19e1879f

6 years agoMerge "use f2fs upstream host to generate image" am: 6a9444152f
Jin Qian [Mon, 26 Jun 2017 19:29:24 +0000 (19:29 +0000)]
Merge "use f2fs upstream host to generate image" am: 6a9444152f
am: 7c17f07be9

Change-Id: I85a4c546c1091be681a3222ac50cfb98f314d0cb

6 years agoMerge "use f2fs upstream host to generate image"
Jin Qian [Mon, 26 Jun 2017 19:23:47 +0000 (19:23 +0000)]
Merge "use f2fs upstream host to generate image"
am: 6a9444152f

Change-Id: I74846499dfc5e9c7058571353b442e90fd0ac998

6 years agoMerge "use f2fs upstream host to generate image"
Jin Qian [Mon, 26 Jun 2017 19:07:49 +0000 (19:07 +0000)]
Merge "use f2fs upstream host to generate image"

6 years agouse f2fs upstream host to generate image
Yang Jin [Thu, 22 Jun 2017 18:20:51 +0000 (11:20 -0700)]
use f2fs upstream host to generate image

calls make_f2fs -S <size> <filename>

Test: ./mkf2fsuserimg.sh ~/android/userdata.img 2000000000
Bug: 62493641
Change-Id: I4d3631a631fbdfbfc680eeba5f2a1dde204cba25
Merged-In: I4d3631a631fbdfbfc680eeba5f2a1dde204cba25

6 years agoMerge "simpleperf: fix the way to pull perf.data on windows." am: 7c8b89acad
Yabin Cui [Fri, 23 Jun 2017 21:48:16 +0000 (21:48 +0000)]
Merge "simpleperf: fix the way to pull perf.data on windows." am: 7c8b89acad
am: cac9fc0914

Change-Id: I2fe3a27759180ee49de41fe24d00b7645e007790

6 years agoMerge "simpleperf: fix the way to pull perf.data on windows."
Yabin Cui [Fri, 23 Jun 2017 21:43:14 +0000 (21:43 +0000)]
Merge "simpleperf: fix the way to pull perf.data on windows."
am: 7c8b89acad

Change-Id: I0978ba64f16c964a8b3a54f892eefb11ce6d80ad

6 years agoMerge "simpleperf: fix the way to pull perf.data on windows."
Yabin Cui [Fri, 23 Jun 2017 21:38:34 +0000 (21:38 +0000)]
Merge "simpleperf: fix the way to pull perf.data on windows."

6 years agosimpleperf: fix the way to pull perf.data on windows.
Yabin Cui [Wed, 21 Jun 2017 22:57:31 +0000 (15:57 -0700)]
simpleperf: fix the way to pull perf.data on windows.

Bug: http://b/32834638
Test: run app_profiler.py on linux/darwin/windows.
Change-Id: Id932ad7d0a21598eae7d844e6c33c6e64df22c5a

6 years agoMerge "simpleperf: fix x86 register dump on x86_64." am: 5abacf3bcf
Yabin Cui [Thu, 22 Jun 2017 22:06:57 +0000 (22:06 +0000)]
Merge "simpleperf: fix x86 register dump on x86_64." am: 5abacf3bcf
am: 1815f49dee

Change-Id: Ic4eac31d6bde6001e6beb5664b28de25bce3c96c

6 years agoMerge "simpleperf: fix x86 register dump on x86_64."
Yabin Cui [Thu, 22 Jun 2017 22:02:57 +0000 (22:02 +0000)]
Merge "simpleperf: fix x86 register dump on x86_64."
am: 5abacf3bcf

Change-Id: I988fca28fd873575d6bfb2b542d91b5eecb29f7b

6 years agoMerge "simpleperf: fix x86 register dump on x86_64."
Yabin Cui [Thu, 22 Jun 2017 21:58:47 +0000 (21:58 +0000)]
Merge "simpleperf: fix x86 register dump on x86_64."

6 years agosimpleperf: fix x86 register dump on x86_64.
Yabin Cui [Thu, 22 Jun 2017 20:02:29 +0000 (13:02 -0700)]
simpleperf: fix x86 register dump on x86_64.

x86_64 linux kernel doesn't support dumping registers like DS.
If simpleperf32 requests dumping these registers, it will fail.
So don't request them to avoid failure.

Bug: None.
Test: run simpleperf32 manually on x86_64.
Change-Id: I220ce5378bad8f0c3c9deb2ef32128fd3262b96d

6 years agoMerge "simpleperf: Support Ctrl-C in app_profiler.py." am: 7941d1917b
Yabin Cui [Thu, 22 Jun 2017 19:14:52 +0000 (19:14 +0000)]
Merge "simpleperf: Support Ctrl-C in app_profiler.py." am: 7941d1917b
am: c1a5f290f6

Change-Id: I2328a2844cccfe1db5db44a824374b44122d888f

6 years agoMerge "simpleperf: Support Ctrl-C in app_profiler.py."
Yabin Cui [Thu, 22 Jun 2017 19:10:29 +0000 (19:10 +0000)]
Merge "simpleperf: Support Ctrl-C in app_profiler.py."
am: 7941d1917b

Change-Id: If56fea0daa9fd9e3022dd19ad08b41e96c3e8b51

6 years agoMerge "simpleperf: Support Ctrl-C in app_profiler.py."
Yabin Cui [Thu, 22 Jun 2017 19:05:06 +0000 (19:05 +0000)]
Merge "simpleperf: Support Ctrl-C in app_profiler.py."

6 years agoMerge "simpleperf: fix importing tkinter in report.py." am: 1ad1e76f95
Yabin Cui [Thu, 22 Jun 2017 02:53:33 +0000 (02:53 +0000)]
Merge "simpleperf: fix importing tkinter in report.py." am: 1ad1e76f95
am: bd48c993ab

Change-Id: I74ae4869b536c0b7c2829639ccbbeef323cef726

6 years agoMerge "simpleperf: fix importing tkinter in report.py."
Yabin Cui [Thu, 22 Jun 2017 02:49:59 +0000 (02:49 +0000)]
Merge "simpleperf: fix importing tkinter in report.py."
am: 1ad1e76f95

Change-Id: Ib85e9a59f94870e736511068975acb4bc9f704a9

6 years agoMerge "simpleperf: fix importing tkinter in report.py."
Yabin Cui [Thu, 22 Jun 2017 02:46:46 +0000 (02:46 +0000)]
Merge "simpleperf: fix importing tkinter in report.py."

6 years agosimpleperf: Support Ctrl-C in app_profiler.py.
Yabin Cui [Wed, 21 Jun 2017 19:19:36 +0000 (12:19 -0700)]
simpleperf: Support Ctrl-C in app_profiler.py.

Bug: http://b/32834638
Test: kill app_profiler.py with Ctrl-C manually.

Change-Id: I03b8813080b45e324c66ce3de27e5dd1f8849446

6 years agosimpleperf: fix importing tkinter in report.py.
Yabin Cui [Wed, 21 Jun 2017 23:50:09 +0000 (16:50 -0700)]
simpleperf: fix importing tkinter in report.py.

On darwin/windows, python2.7 doesn't have tkinter.
So we need to try both tkinter and Tkinter.

Also make the font size larger. Because the old size
is too small on darwin.

Bug: http://b/32834638
Test: run report.py on linux/darwin/windows.
Change-Id: I8bb0b51fcdd99f70b01d4ca2ee2e9e9a6447870a

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4120823." am: 2c60e40066
Yabin Cui [Wed, 21 Jun 2017 19:32:31 +0000 (19:32 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4120823." am: 2c60e40066
am: 174c68b693

Change-Id: If3fc2ebc260abb852d9882ba15ed2edc5987279a

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4120823."
Yabin Cui [Wed, 21 Jun 2017 19:28:41 +0000 (19:28 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4120823."
am: 2c60e40066

Change-Id: Icb06488922f97cafa5255574affbe8751b11e916

6 years agoMerge "simpleperf: update simpleperf prebuilts to build 4120823."
Yabin Cui [Wed, 21 Jun 2017 19:13:38 +0000 (19:13 +0000)]
Merge "simpleperf: update simpleperf prebuilts to build 4120823."

6 years agosimpleperf: update simpleperf prebuilts to build 4120823.
Yabin Cui [Wed, 21 Jun 2017 18:43:53 +0000 (11:43 -0700)]
simpleperf: update simpleperf prebuilts to build 4120823.

Taken from branch aosp-master.

Bug: None
Test: None

Change-Id: Ifa518c6af1f1f9201e324092f82e8b97407aa85e

6 years agoMerge "simpleperf: create libsimpleperf_record library." am: ebf4293198
Yabin Cui [Tue, 20 Jun 2017 04:57:08 +0000 (04:57 +0000)]
Merge "simpleperf: create libsimpleperf_record library." am: ebf4293198
am: 3f0b11a14b

Change-Id: I77d1f458f30842d7325ec1d5aea4a99ce6947b8a

6 years agoMerge "simpleperf: create libsimpleperf_record library."
Yabin Cui [Tue, 20 Jun 2017 02:19:41 +0000 (02:19 +0000)]
Merge "simpleperf: create libsimpleperf_record library."
am: ebf4293198

Change-Id: I53503175b391d94522bcc84cf4bce7a29f0d4394

6 years agoMerge "simpleperf: create libsimpleperf_record library."
Treehugger Robot [Tue, 20 Jun 2017 02:14:56 +0000 (02:14 +0000)]
Merge "simpleperf: create libsimpleperf_record library."

6 years agoFix macOS build
Romain Guy [Thu, 8 Jun 2017 19:12:08 +0000 (19:12 +0000)]
Fix macOS build
am: c3ccab73be

Change-Id: I0bf642ea554fd0af408538feb09c2fd7fb58875f

6 years agoMerge "Fix macOS build" am: b9b7f3f061
Colin Cross [Thu, 8 Jun 2017 16:04:30 +0000 (16:04 +0000)]
Merge "Fix macOS build" am: b9b7f3f061
am: 710e8f4da4

Change-Id: Ib109ceca0597a8a04dde6b44f865a7704605583b

6 years agoMerge "Fix macOS build"
Colin Cross [Thu, 8 Jun 2017 15:48:53 +0000 (15:48 +0000)]
Merge "Fix macOS build"
am: b9b7f3f061

Change-Id: I6f6d24801ea090c3725378ff6572381cb09836c9

6 years agoFix macOS build
Romain Guy [Thu, 8 Jun 2017 00:05:03 +0000 (17:05 -0700)]
Fix macOS build

Bug: 34719251
Test: compile
Change-Id: I97e93313f9b6ab7e8a753d4035b7805b21fdfa2d
(cherry picked from commit b86fd88966aa15c2b9cce1bf0f7907fcdd11134e)

6 years agoMerge "Fix macOS build"
Colin Cross [Thu, 8 Jun 2017 15:43:24 +0000 (15:43 +0000)]
Merge "Fix macOS build"

6 years agoFix macOS build
Romain Guy [Thu, 8 Jun 2017 00:05:03 +0000 (17:05 -0700)]
Fix macOS build

Test: compile
Change-Id: I97e93313f9b6ab7e8a753d4035b7805b21fdfa2d
Merged-In: I97e93313f9b6ab7e8a753d4035b7805b21fdfa2d
(cherry picked from commit b86fd88966aa15c2b9cce1bf0f7907fcdd11134e)

6 years agoadd component metadata tag to CTS kernel config test cases
Guang Zhu [Tue, 6 Jun 2017 19:29:19 +0000 (19:29 +0000)]
add component metadata tag to CTS kernel config test cases
am: 4313a5d7e6

Change-Id: I1b8f3fc91d8f563c267261098fb7653e4d37b393

6 years agosimpleperf: create libsimpleperf_record library.
Yabin Cui [Fri, 2 Jun 2017 22:21:50 +0000 (15:21 -0700)]
simpleperf: create libsimpleperf_record library.

Add interface to control perf counters.

Bug: http://b/35725972
Test: run simpleperf_record_test.
Change-Id: I2a9979f807253c60a9db6304454934034161c854

6 years agoresolve merge conflicts of 4bc9219d to oc-dev-plus-aosp
Mark Salyzyn [Tue, 6 Jun 2017 17:09:33 +0000 (10:09 -0700)]
resolve merge conflicts of 4bc9219d to oc-dev-plus-aosp

Test: I solemnly swear I tested this conflict resolution.
Bug: 37753761
Change-Id: I4898abc8dd63fdfb4c4ca8a6e69a6198c4882cb3

6 years agoMerge "kernel.config: add CONFIG_NFS* testing" am: 160671d409
Mark Salyzyn [Tue, 6 Jun 2017 16:51:57 +0000 (16:51 +0000)]
Merge "kernel.config: add CONFIG_NFS* testing" am: 160671d409
am: 9e7b953199

Change-Id: I1417b71ff604cb2868934659839b486616666c3d

6 years agoMerge "kernel.config: add CONFIG_NFS* testing"
Mark Salyzyn [Tue, 6 Jun 2017 16:46:57 +0000 (16:46 +0000)]
Merge "kernel.config: add CONFIG_NFS* testing"
am: 160671d409

Change-Id: I7785489bc04968f99a86cb1d6fe485f79ec00c56

6 years agoMerge "kernel.config: add CONFIG_NFS* testing"
Treehugger Robot [Tue, 6 Jun 2017 16:40:21 +0000 (16:40 +0000)]
Merge "kernel.config: add CONFIG_NFS* testing"

6 years agoMerge "simpleperf: fix app_profiler.py." am: d98c857902 am: 5ea663c3ab
Yabin Cui [Tue, 6 Jun 2017 01:43:29 +0000 (01:43 +0000)]
Merge "simpleperf: fix app_profiler.py." am: d98c857902 am: 5ea663c3ab
am: 545ee30d39

Change-Id: I1d1523e06c56959e89cffa0ba877188a2333975a

6 years agoMerge "simpleperf: fix app_profiler.py." am: d98c857902
Yabin Cui [Tue, 6 Jun 2017 01:37:58 +0000 (01:37 +0000)]
Merge "simpleperf: fix app_profiler.py." am: d98c857902
am: 5ea663c3ab

Change-Id: Ie6a8909be81a63ba032b0616fb8c2aa156c96d22

6 years agoMerge "simpleperf: fix app_profiler.py."
Yabin Cui [Tue, 6 Jun 2017 01:32:55 +0000 (01:32 +0000)]
Merge "simpleperf: fix app_profiler.py."
am: d98c857902

Change-Id: I24b7656d7670c89ea2ff8de434d3ac69f92e70e2

6 years agoMerge "simpleperf: fix app_profiler.py."
Yabin Cui [Tue, 6 Jun 2017 01:24:10 +0000 (01:24 +0000)]
Merge "simpleperf: fix app_profiler.py."

6 years agosimpleperf: fix app_profiler.py.
Yabin Cui [Tue, 6 Jun 2017 01:08:23 +0000 (18:08 -0700)]
simpleperf: fix app_profiler.py.

Previous change makes app_profiler.py not work on rooted devices
because of using '>xxx' as a flag to store stdout files. Change
this to a more obvious way.

Bug: http://b/62028152
Test: run app_profiler.py on both rooted and non-rooted devices.
Change-Id: Ice2399d007a64a7d0000560b2368a392620b1053

6 years agoadd component metadata tag to CTS kernel config test cases
Guang Zhu [Mon, 5 Jun 2017 21:40:21 +0000 (14:40 -0700)]
add component metadata tag to CTS kernel config test cases

Bug: 36140955
Bug: 35360169
Test: new unit test to ensure that all modules have this field
Change-Id: I1478559f4aeb8d16e7ef0a1bc65fec6644fe3c65
Merged-In: I60cdfb77e7c20615fde43612cc77b0b6846612fa

6 years agokernel.config: add CONFIG_NFS* testing
Mark Salyzyn [Mon, 5 Jun 2017 16:07:34 +0000 (09:07 -0700)]
kernel.config: add CONFIG_NFS* testing

The following configs are not supported on Android:

CONFIG_NFSD
CONFIG_NFS_FS

Test: run CTS and kernel-config-unit-tests
Bug: 37753761
Change-Id: I13a9a2d5265079a1f99512c48b5bbcfd4bba68dd

6 years agoMerge "simpleperf: add thread name in report_sample.proto." am: b33edada95 am: f13c66de88
Yabin Cui [Fri, 2 Jun 2017 23:42:06 +0000 (23:42 +0000)]
Merge "simpleperf: add thread name in report_sample.proto." am: b33edada95 am: f13c66de88
am: 6b75d33fa7

Change-Id: I312fe7738ea5f03fe2c007018186f7320d99b40a

6 years agoMerge "simpleperf: add thread name in report_sample.proto." am: b33edada95
Yabin Cui [Fri, 2 Jun 2017 23:38:18 +0000 (23:38 +0000)]
Merge "simpleperf: add thread name in report_sample.proto." am: b33edada95
am: f13c66de88

Change-Id: Ied50dc7eb9a3d663f624fb4aec3ca42d1e1ed6d5

6 years agoMerge "simpleperf: add thread name in report_sample.proto."
Yabin Cui [Fri, 2 Jun 2017 23:34:18 +0000 (23:34 +0000)]
Merge "simpleperf: add thread name in report_sample.proto."
am: b33edada95

Change-Id: I1d2852d3c3497e692b1f03596a999b8556b05b93

6 years agoMerge "simpleperf: add thread name in report_sample.proto."
Yabin Cui [Fri, 2 Jun 2017 23:27:37 +0000 (23:27 +0000)]
Merge "simpleperf: add thread name in report_sample.proto."

6 years agosimpleperf: add thread name in report_sample.proto.
Yabin Cui [Fri, 2 Jun 2017 21:47:33 +0000 (14:47 -0700)]
simpleperf: add thread name in report_sample.proto.

Bug: http://b/62189080
Test: run simpleperf_unit_test.
Change-Id: I3c96f6474e56b2f51a00f85082973e5d1c1aec72

6 years agoMerge "simpleperf: write -1 to perf_event_paranoid when running as root." am: 668878b...
Yabin Cui [Thu, 1 Jun 2017 23:46:25 +0000 (23:46 +0000)]
Merge "simpleperf: write -1 to perf_event_paranoid when running as root." am: 668878b3b7 am: df104e1ed8
am: 6ec981b750

Change-Id: I5ed1c31bb336bb060d228e1866d8b0c8cd5d9816

6 years agoMerge "simpleperf: write -1 to perf_event_paranoid when running as root." am: 668878b3b7
Yabin Cui [Thu, 1 Jun 2017 23:37:49 +0000 (23:37 +0000)]
Merge "simpleperf: write -1 to perf_event_paranoid when running as root." am: 668878b3b7
am: df104e1ed8

Change-Id: I56f126547cac5741c93513b9a2581be551da6034

6 years agoMerge "simpleperf: write -1 to perf_event_paranoid when running as root."
Yabin Cui [Thu, 1 Jun 2017 23:36:09 +0000 (23:36 +0000)]
Merge "simpleperf: write -1 to perf_event_paranoid when running as root."
am: 668878b3b7

Change-Id: I46bbb7af11b38538384243ba91d30204def53a13

6 years agoMerge "simpleperf: write -1 to perf_event_paranoid when running as root."
Treehugger Robot [Thu, 1 Jun 2017 23:29:12 +0000 (23:29 +0000)]
Merge "simpleperf: write -1 to perf_event_paranoid when running as root."

6 years agoMerge "simpleperf: fix app_profiler.py." am: f4f68176b3 am: 7ac7c486df
Yabin Cui [Thu, 1 Jun 2017 21:32:01 +0000 (21:32 +0000)]
Merge "simpleperf: fix app_profiler.py." am: f4f68176b3 am: 7ac7c486df
am: b396fbccef

Change-Id: I9b6db3b74fb389dec6556d3630d6fc80d289eb62

6 years agoMerge "simpleperf: fix app_profiler.py." am: f4f68176b3
Yabin Cui [Thu, 1 Jun 2017 21:29:29 +0000 (21:29 +0000)]
Merge "simpleperf: fix app_profiler.py." am: f4f68176b3
am: 7ac7c486df

Change-Id: Ib44a00e2089fb67274af449b38c09b676a84b559

6 years agoMerge "simpleperf: fix app_profiler.py."
Yabin Cui [Thu, 1 Jun 2017 21:26:58 +0000 (21:26 +0000)]
Merge "simpleperf: fix app_profiler.py."
am: f4f68176b3

Change-Id: If1e79e2ef0e6e92cf3c4eb92ef9daf3cb722117b

6 years agoMerge "simpleperf: fix app_profiler.py."
Yabin Cui [Thu, 1 Jun 2017 21:22:43 +0000 (21:22 +0000)]
Merge "simpleperf: fix app_profiler.py."

6 years agosimpleperf: write -1 to perf_event_paranoid when running as root.
Yabin Cui [Thu, 1 Jun 2017 20:23:29 +0000 (13:23 -0700)]
simpleperf: write -1 to perf_event_paranoid when running as root.

The monitored threads may create child processes not running as root.
This patch is to make sure they have permission to create inherited
tracepoint events.

Bug: http://b/62230699
Test: run simpleperf manually on device.
Change-Id: I02798c834f8a0500057e4e1c70291cfb05c3f92d

6 years agoMark libpagemap vendor_available.
Jayant Chowdhary [Wed, 31 May 2017 04:07:15 +0000 (04:07 +0000)]
Mark libpagemap vendor_available.
am: 775665d0fe  -s ours

Change-Id: If2fd9319761c8b6e7c63559ccb89ffe75ed3df38

6 years agoMark libpagemap vendor_available.
Jayant Chowdhary [Wed, 17 May 2017 18:32:25 +0000 (11:32 -0700)]
Mark libpagemap vendor_available.

libpagemap is a library which belongs to vndk-cap. Mark it vendor_available to
enable vndk abi stability checks on it.

Details: https://android-review.googlesource.com/368372

Test: mm -j64

Bug: 38244611

Merged-In: I5c0f31840eef558b2aa7b65cb24370a696306105
Change-Id: I310d0a4d8dd9e87615c276bd66639170b2a70648
(cherry picked from commit 37212881797146ff95b49d252ed0e576d14a7fdb)

6 years agosimpleperf: fix app_profiler.py.
Yabin Cui [Fri, 26 May 2017 18:16:13 +0000 (11:16 -0700)]
simpleperf: fix app_profiler.py.

The old way doesn't work on non-rooted devices.

Bug: http://b/62028152
Test: run app_profiler.py non non-rooted devices.
Change-Id: I2b528a8ec64675cf62323ef3e58f6cdeb2547240

6 years agoMerge "Mark libpagemap vendor_available." am: 0a0e79662c am: 12ea59deb3
Jayant Chowdhary [Thu, 25 May 2017 17:30:01 +0000 (17:30 +0000)]
Merge "Mark libpagemap vendor_available." am: 0a0e79662c am: 12ea59deb3
am: b6d65b3dd7

Change-Id: Ic3349cb90fbcd84b39d26c840d405a28e13ce9c7

6 years agoMerge "Mark libpagemap vendor_available." am: 0a0e79662c
Jayant Chowdhary [Thu, 25 May 2017 17:24:29 +0000 (17:24 +0000)]
Merge "Mark libpagemap vendor_available." am: 0a0e79662c
am: 12ea59deb3

Change-Id: Ia86d428c246d5771c65e7486633bef9bb9a5d39b