summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-04-07Remove vts10 tests from vts suiteDan Shi
The tests are only needed in vts10 suite, as they are part of CTS package and no longer needed in vts 11. Bug: 151896491 Test: local build Exempt-From-Owner-Approval: This CL removes vts10 tests from vts suite. It won't change test logic or behavior. Change-Id: Idadd1f99ba3620c36a7aca4f648a013da40bd3a0 Merged-In: Idadd1f99ba3620c36a7aca4f648a013da40bd3a0
2020-04-07simpleperf: fix CanRecordRawData. am: bcf045413b am: 80cd87a602 am: d72731a4f2Yabin Cui
Change-Id: I220570fed60f4bd67e11db891208da2bd3a556ee
2020-04-07simpleperf: fix CanRecordRawData. am: bcf045413b am: 80cd87a602Yabin Cui
Change-Id: I4a3957100dfb9e0e1ed8cc17170a2dfa92783163
2020-04-07simpleperf: fix CanRecordRawData. am: bcf045413bYabin Cui
Change-Id: I728bfe8faf614637f1024b459eb78bfefdd0394e
2020-04-06simpleperf: fix CanRecordRawData.Yabin Cui
sys.init.perf_lsm_hooks isn't accessible in app context, thus checking it in CanRecordRawData() breaks recording app with --trace-offcpu option. Fix it by not recording raw data in non-root users. Bug: 153381808 Test: run simpleperf_unit_test. Test: run test.py *TraceOffCpu*. Change-Id: Id87c73d25b19b265c022c4fa6ebb8e7d3a84152b (cherry picked from commit c98cb1193d73c1fa616d0d366a221751fde38f67)
2020-04-02Use realpath to grab underlying path for userdataDaniel Rosenberg
We may grab the by-name path for /data's block device. Use realpath to ensure we grab the correct name to access the sysfs entries. Bug: 153049163 Test: Run /vendor/bin/checkpoint_gc Change-Id: I297c7b60105d1966eb1304222a9727794035d3fc
2020-04-02Snap for 6357740 from 3743a88eef43b0d75b5db3e2df211ee23eed6d21 to ↵android-build-team Robot
mainline-release Change-Id: I6d226ff0c71001b9161e0185950aee1c2f2637a4
2020-04-01simpleperf: fix comment for per-thread and per-core report. am: c118258b5f ↵Yabin Cui
am: 30d0020380 am: 51160c72c4 Change-Id: I511f1ba56483a46edf090562381d766f905b52ce
2020-04-01simpleperf: move CounterSummaries definition to header file. am: 9611c79027 ↵Yabin Cui
am: c026f90a7b am: b9405481b8 Change-Id: Ibd6fc5cddf7eebc84b8b6031807b3af442c6d244
2020-04-01simpleperf: fix comment for per-thread and per-core report. am: c118258b5f ↵Yabin Cui
am: 30d0020380 Change-Id: I4481f9d9bbc40cf59161ca21f5c0db29ca9a7a02
2020-04-01simpleperf: move CounterSummaries definition to header file. am: 9611c79027 ↵Yabin Cui
am: c026f90a7b Change-Id: Ib21fe871b18b3c9f4b0d1e8602771932d64bbeb2
2020-04-01simpleperf: fix comment for per-thread and per-core report. am: c118258b5fYabin Cui
Change-Id: I1c27a6b4bac6cfbc2780f163145734398fe57fe2
2020-04-01simpleperf: move CounterSummaries definition to header file. am: 9611c79027Yabin Cui
Change-Id: I5fa5fa68185b7d1ee226b441761a4f9d32b4af7d
2020-04-01simpleperf: fix comment for per-thread and per-core report.Yabin Cui
For task-clock, it uses software counter, so multiplexing will not happen. And it isn't proper to scale comment value in per-core report. For rate computation involving runtime, the current way to find runtime is via FindRunningTimeForSummary() function. But that function doesn't take care of thread and core match. And it seems more proper to use the sum of runtime given by perf counters. So switch to it. Also add some tests for comment string. Also adjust comment title in report. Bug: 152911261 Test: run simpleperf_unit_test. Change-Id: I475fae32952ed2680888c6a76b43cfb10bc9b06e (cherry picked from commit 6922c076ce73fd4bca357aeea0d20797e3321749)
2020-04-01simpleperf: move CounterSummaries definition to header file.Yabin Cui
This is to test it in later CLs. Bug: 152911261 Test: run simpleperf_unit_test. Change-Id: I0cdad299654eb36db4a64363335bfa03e54ee7b1 (cherry picked from commit 5271aa719b7cae4cddc9f67803648f17f9b24018)
2020-03-29Snap for 6344429 from 823e112d370965f224b96a46be994d488431c1d1 to ↵android-build-team Robot
mainline-release Change-Id: Ib5ca69a82274092740a31d587561e57cc9e239ca
2020-03-28simpleperf: fix percentage comment in stat cmd. am: bf06df7d2d am: ↵Yabin Cui
4ac66fec2e am: 8f333cbb94 Change-Id: Icf528b5f174a7e110dbf564f031c932dec626f29
2020-03-28simpleperf: update doc for stat --per-core option. am: 8c1fb92b54 am: ↵Yabin Cui
1bee217619 am: 03b966d5b1 Change-Id: Iac0c0fbd9781bb6c6d40d0f6004b69ebafed9cfb
2020-03-28simpleperf: fix percentage comment in stat cmd. am: bf06df7d2d am: 4ac66fec2eYabin Cui
Change-Id: I06e4b00f9c4eae7feeed467648a766356f856817
2020-03-28simpleperf: update doc for stat --per-core option. am: 8c1fb92b54 am: 1bee217619Yabin Cui
Change-Id: Idd5073166b66893dd9ec074f7b12c678a5796cf0
2020-03-28simpleperf: fix percentage comment in stat cmd. am: bf06df7d2dYabin Cui
Change-Id: I80619690dda6934bc61d2e2879a57e8d44ad97e6
2020-03-28simpleperf: update doc for stat --per-core option. am: 8c1fb92b54Yabin Cui
Change-Id: I31123383f61ae782c3998123c73554114dc4954a
2020-03-27Merge changes from topic "fec_avb" into rvc-dev am: f76271cb2d am: ↵Tianjie Xu
9b57bd4846 am: 6cbb5c4808 Change-Id: I5eae0614d145ace108b44671bb0a2705b19cf91e
2020-03-27Suport parsing hashtree and ecc data from avb am: 82c71ecdde am: a6acf0320f ↵Tianjie Xu
am: 25d06ee10e Change-Id: I82b363ed72b48fec1b7c8ed62ebe94f474bd6054
2020-03-27simpleperf: fix percentage comment in stat cmd.Yabin Cui
Fix a bug of aggregating time_enabled,time_running introduced in https://android-review.googlesource.com/c/platform/system/extras/+/1220206/1/simpleperf/cmd_stat.cpp#1012. Move some code to cmd_stat_impl.h to add tests. Bug: 152518722 Test: run simpleperf_unit_test. Change-Id: I50dcaf9aa83de838cc00554420d232f1a8d54601 (cherry picked from commit b3ed39b2ce227407cd828c458233e9dc222641e8)
2020-03-27simpleperf: update doc for stat --per-core option.Yabin Cui
Improve document reported by issue https://github.com/android/ndk/issues/1214. Also clean up stat ouptut: 1. Skip output for threads and cpus not running. 2. Tiny fix in column width adjustment. Bug: 152518722 Test: run simpleperf_unit_test. Change-Id: Ic032a12daa50bfb4c1552c94d8e7e7822c2f4ad8 (cherry picked from commit 3ef0328b7613f97a516163438869d435515a496a)
2020-03-27Merge changes from topic "fec_avb" into rvc-dev am: f76271cb2d am: 9b57bd4846Tianjie Xu
Change-Id: I61ee77e27140a619d5a7b77c58665b0f8998a944
2020-03-27Suport parsing hashtree and ecc data from avb am: 82c71ecdde am: a6acf0320fTianjie Xu
Change-Id: I29e763a19d702967a22f30bf1b9a9322f1095079
2020-03-27Merge changes from topic "fec_avb" into rvc-dev am: f76271cb2dTianjie Xu
Change-Id: I13bad4934140832db0ec7f6a7e3065c34e73176e
2020-03-27Suport parsing hashtree and ecc data from avb am: 82c71ecddeTianjie Xu
Change-Id: I1437fdd49d2871b8bd84c6c5270998ddaacf58eb
2020-03-27Merge changes from topic "fec_avb" into rvc-devTianjie Xu
* changes: Allow building libfec without libavb Suport parsing hashtree and ecc data from avb
2020-03-27Snap for 6338932 from 075feca253daee3173f891d42294704b22f2c2db to ↵android-build-team Robot
mainline-release Change-Id: I0ec69d27f735834e9b39ad6b317b5c66eb189caa
2020-03-27Merge "Move libperfmgr into hardware/google/pixel" into rvc-dev am: ↵Wei Wang
cebc313870 am: c9322cf5e4 am: 9057dc8a3c Change-Id: I4c1ca6a4f6d4ca537fe039ecdda828a0eb712cd2
2020-03-27Merge "Move libperfmgr into hardware/google/pixel" into rvc-dev am: ↵Wei Wang
cebc313870 am: c9322cf5e4 Change-Id: Iaa37b2dfe457ca930b5d4fe60f6e00d89bc5f454
2020-03-27Merge "Move libperfmgr into hardware/google/pixel" into rvc-dev am: cebc313870Wei Wang
Change-Id: I134ce32be5b2152a40381301a8a818f1af08f94e
2020-03-27Merge "Move libperfmgr into hardware/google/pixel" into rvc-devWei Wang
2020-03-26Allow building libfec without libavbTianjie Xu
Add stub implementation for avb related functions to allow building libfec without libavb support. This is useful to build the fec binary when libavb isn't available on mac. Bug: 144388532 Test: build, unittests pass Change-Id: I26f8de390c3c2c37bf48418fb31038ddd9863866 (cherry picked from commit 87d230b72992e6fa170180a919721315de7c597b)
2020-03-26Move libperfmgr into hardware/google/pixelWei Wang
Bug: 137581945 Test: Build Change-Id: I6fff2b514f265b032ac3223d1548656e644f073f
2020-03-26Suport parsing hashtree and ecc data from avbTianjie Xu
Add support to parse the AvbHashtreeFooter in the avb image. We are in particular looking for the ecc and hashtree data so that they can laster be used for error correction. Bug: 144388532 Test: unittests pass Change-Id: I3e53e3e84a58b00346274f9946cafc135702ac82 Merged-In: I3e53e3e84a58b00346274f9946cafc135702ac82 (cherry picked from commit 398e8c30ccb062ced809c11e9335b87352af5582)
2020-03-26Snap for 6334680 from 06245ce111a4304fa79fcab77252d231a33ef2dc to ↵android-build-team Robot
mainline-release Change-Id: Ia1cfd85f2cd4dbd17c9b7b52e352fbe6d5261e68
2020-03-25Merge "Use libdexfile_support_static only for the simpleperf NDK binary." ↵TreeHugger Robot
into rvc-dev am: b50af6e4d8 am: 5d7d3ab36f am: 03b4742719 Change-Id: I02b00ecf46e13efeeac85dca968ef0e5eadfe8c4
2020-03-25Merge "Use libdexfile_support_static only for the simpleperf NDK binary." ↵TreeHugger Robot
into rvc-dev am: b50af6e4d8 am: 5d7d3ab36f Change-Id: I751f7fa63346d79ec689359267dc79221ec44db2
2020-03-25Merge "Use libdexfile_support_static only for the simpleperf NDK binary." ↵TreeHugger Robot
into rvc-dev am: b50af6e4d8 Change-Id: Ie8a5f16744b792ed5db3bb34b330b67e595f7fdd
2020-03-25Merge "Use libdexfile_support_static only for the simpleperf NDK binary." ↵TreeHugger Robot
into rvc-dev
2020-03-25Snap for 6330721 from ee19268e1dbb1bc2455076f120657d5294e704dd to ↵android-build-team Robot
mainline-release Change-Id: I898558d85982a521c4ecf85feff234ed294788d4
2020-03-25Merge "simpleperf: fix flaky record_native_app test." into rvc-dev am: ↵Yabin Cui
63854bfa25 am: ebf1f162fa am: 1051c27b69 Change-Id: I7f6cfcd36f91cfcd4d49c3aad69c1477ea305b06
2020-03-25Merge "simpleperf: fix flaky record_native_app test." into rvc-dev am: ↵Yabin Cui
63854bfa25 am: ebf1f162fa Change-Id: Id6ea475613ee6665c1f278b5b47a8e2fc984f856
2020-03-25Merge "simpleperf: fix flaky record_native_app test." into rvc-dev am: ↵Yabin Cui
63854bfa25 Change-Id: Icdd20e372ae10f30dbd0de31d545798e012c68cd
2020-03-25Merge "simpleperf: fix flaky record_native_app test." into rvc-devYabin Cui
2020-03-24simpleperf: fix flaky record_native_app test.Yabin Cui
Make the test pass with a lock screen. Bug: 151110118 Test: run CtsSimpleperfTestCases with a lock screen. Change-Id: I682daadc1a79474496594ef697917f0b8abca5c1 (cherry picked from commit 6c03e04df7ed218ea4d227ac847587827f19594e)