summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Update OWNERS for VTS module vts_core_meminfo_testHEADmasterYiming Pan2021-10-151-0/+1
| | | | | | Test: Tree Hugger Bug: 143903671 Change-Id: I380bc302521bf173b4b8886fb3061348a38af50b
* Replace test_min_api_level with test_options.min_shipping_api_level am: ↵Justin Yun2021-10-051-1/+3
|\ | | | | | | | | | | | | | | 0b660ec845 Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1838537 Change-Id: I8e8177f0eb227eb397d8f33349555f34a84cc2f2
| * Replace test_min_api_level with test_options.min_shipping_api_levelJustin Yun2021-09-281-1/+3
| | | | | | | | | | | | | | | | | | Test options for the api levels are moved to test_options. test_min_api_level property will be removed with this change. Bug: 187258404 Test: build Change-Id: I0769a85802ca8db5e43c5d0c1c1d38ffb3f01941
* | [automerger skipped] libmeminfo_test: Update DmabufHeapStats tests am: ↵Kalesh Singh2021-07-160-0/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | c07624b7b1 am: 1deb2e2209 -s ours am skip reason: Merged-In I91a738379bac45edc563ead3cc5d85d01e2dc3e6 with SHA-1 327300fb15 is already in history Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761693 Change-Id: I7c93b7f6cd47128d2d120fc800faaa6d7bbb2509
| * | libmeminfo_test: Update DmabufHeapStats tests am: c07624b7b1Kalesh Singh2021-07-161-3/+1
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761693 Change-Id: Ib80dede613947f294f8b6a220acda7dbb574834e
| | * libmeminfo_test: Update DmabufHeapStats testsandroid-s-beta-5android-s-beta-5Kalesh Singh2021-07-141-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats Remove dependency on attachment stat for dmabuf heap tests. Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: libmeminfo_test#DmabufHeapStats Change-Id: I91a738379bac45edc563ead3cc5d85d01e2dc3e6 Merged-In: I91a738379bac45edc563ead3cc5d85d01e2dc3e6
* | | [automerger skipped] dmabuf_dump: Remove per-device and attachment stats am: ↵Kalesh Singh2021-07-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | fdaa96b0e7 am: 57b688bac1 -s ours am skip reason: Merged-In If3a67c07e8c013d76fe158f4a0260f1ec4153391 with SHA-1 87b63e5cbc is already in history Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761692 Change-Id: Iec6e4ce9e221562d9e39d48f700e134a74dc94f2
| * | dmabuf_dump: Remove per-device and attachment stats am: fdaa96b0e7Kalesh Singh2021-07-161-25/+0
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761692 Change-Id: I7159495c807f7ffa53e95f1e4ac5a864801e3cf3
| | * dmabuf_dump: Remove per-device and attachment statsKalesh Singh2021-07-141-25/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats Remove the per-device and attachment stats from dmabuf_dump Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: dmabuf_dump -b Change-Id: If3a67c07e8c013d76fe158f4a0260f1ec4153391 Merged-In: If3a67c07e8c013d76fe158f4a0260f1ec4153391
* | | [automerger skipped] dmabufinfo_test: Remove attachment stats tests am: ↵Kalesh Singh2021-07-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | f36d4cefb3 am: d6584ae333 -s ours am skip reason: Merged-In I3b46705fc0627343d16bc2033204f33cc2291259 with SHA-1 99fdf80131 is already in history Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761691 Change-Id: I32b422df35631ffde4710b34cf7cfcc6d54a8c94
| * | dmabufinfo_test: Remove attachment stats tests am: f36d4cefb3Kalesh Singh2021-07-161-28/+1
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761691 Change-Id: Iec6b2d39fd54ae18a32af0e15f54dd42ccd22b1d
| | * dmabufinfo_test: Remove attachment stats testsKalesh Singh2021-07-141-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats Remove the dmabuf attachment stats tests. Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: dmabufinfo_test#DmaBufSysfsStatsParser Change-Id: I3b46705fc0627343d16bc2033204f33cc2291259 Merged-In: I3b46705fc0627343d16bc2033204f33cc2291259
* | | [automerger skipped] libdmabufinfo: Remove GetDmabufAttachmentStats am: ↵Kalesh Singh2021-07-160-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 849e2defdd am: 78467df0fa -s ours am skip reason: Merged-In I074a8cef79b80685cf802a2776a9ae3faa26a9cd with SHA-1 c38fff4473 is already in history Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761690 Change-Id: Ice1be9027e2e75e9fcd4f2a3bb03d1f9f70e8ec3
| * | libdmabufinfo: Remove GetDmabufAttachmentStats am: 849e2defddKalesh Singh2021-07-162-70/+3
| |\| | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1761690 Change-Id: Ic41690b8dd123d7f0d4e0950e1bf2aa821c342b6
| | * libdmabufinfo: Remove GetDmabufAttachmentStatsKalesh Singh2021-07-142-70/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats. Update dmabufinfo sysfs parser to handle this new format. Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: m libdmabufinfo Change-Id: I074a8cef79b80685cf802a2776a9ae3faa26a9cd Merged-In: I074a8cef79b80685cf802a2776a9ae3faa26a9cd
* | | libmeminfo_test: Update DmabufHeapStats tests am: 327300fb15Kalesh Singh2021-07-151-3/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/15263764 Change-Id: I7b9f3aa42fec35b278ae3262d123ce7c66de978f
| * | | libmeminfo_test: Update DmabufHeapStats testsandroid12-devKalesh Singh2021-07-141-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats Remove dependency on attachment stat for dmabuf heap tests. Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: libmeminfo_test#DmabufHeapStats Change-Id: I91a738379bac45edc563ead3cc5d85d01e2dc3e6
* | | | dmabuf_dump: Remove per-device and attachment stats am: 87b63e5cbcKalesh Singh2021-07-151-25/+0
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/15263763 Change-Id: Ie32fc34f244b63356155fd751990947eaa376cbd
| * | | dmabuf_dump: Remove per-device and attachment statsKalesh Singh2021-07-141-25/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats Remove the per-device and attachment stats from dmabuf_dump Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: dmabuf_dump -b Change-Id: If3a67c07e8c013d76fe158f4a0260f1ec4153391
* | | | dmabufinfo_test: Remove attachment stats tests am: 99fdf80131Kalesh Singh2021-07-151-28/+1
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/15263762 Change-Id: I3c33a70150384466a0359850716369f6d9b518d5
| * | | dmabufinfo_test: Remove attachment stats testsKalesh Singh2021-07-141-28/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats Remove the dmabuf attachment stats tests. Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: dmabufinfo_test#DmaBufSysfsStatsParser Change-Id: I3b46705fc0627343d16bc2033204f33cc2291259
* | | | libdmabufinfo: Remove GetDmabufAttachmentStats am: c38fff4473Kalesh Singh2021-07-152-70/+3
|\| | | | | | | | | | | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/15263761 Change-Id: I73996a432b897395351b23cb3c35d49fdcc0939e
| * | | libdmabufinfo: Remove GetDmabufAttachmentStatsKalesh Singh2021-07-142-70/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Creating a separate sysfs directory for each dmabuf attachment adds overhead that is quite significant in some fast paths. Attachment stats are being removed from dmabuf sysfs stats. Update dmabufinfo sysfs parser to handle this new format. Bug: 193226716 Bug: 193465681 Bug: 192621117 Test: m libdmabufinfo Change-Id: I074a8cef79b80685cf802a2776a9ae3faa26a9cd
* | | | Merge "libmeminfo: Add APIs for per-process GPU memory" am: 96482f21b5 am: ↵Kalesh Singh2021-07-022-5/+70
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | 98964f3435 Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1751760 Change-Id: Id35da4276abeb93cb7ed93d6da0fde3ae6319646
| * | | Merge "libmeminfo: Add APIs for per-process GPU memory" am: 96482f21b5Kalesh Singh2021-07-022-5/+70
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1751760 Change-Id: I56e68b9f4537d1bd2ffc8db06c26bedff890d48c
| | * | Merge "libmeminfo: Add APIs for per-process GPU memory"android-s-beta-4android-s-beta-3android-s-beta-4Kalesh Singh2021-07-022-5/+70
| | |\ \
| | | * | libmeminfo: Add APIs for per-process GPU memoryKalesh Singh2021-06-302-5/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add apis for reading the per-process GPU memory as reported by the gpu_mem_total tracepoint. Bug: 192373030 Test: Manual Change-Id: I0f04d6bc39f56cfc4463b8a4a3175bcc13819f98
* | | | | [automerger skipped] Merge "libdmabufinfo: Remove ReadDmaBufPss" am: ↵Kalesh Singh2021-06-300-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 225d931d7f am: 8804178191 -s ours am skip reason: Merged-In I881933f36f97015ea5a26059eb5310ea445adc92 with SHA-1 9eb1a13e73 is already in history Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1752880 Change-Id: Ie7819eeacd5ca298449eb326d5452a40a69b0d21
| * | | | Merge "libdmabufinfo: Remove ReadDmaBufPss" am: 225d931d7fKalesh Singh2021-06-303-59/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1752880 Change-Id: I26d121b5d7249635af8b8ebf9d39108444a0a96e
| | * | | Merge "libdmabufinfo: Remove ReadDmaBufPss"Kalesh Singh2021-06-303-59/+0
| |/| | |
| | * | | libdmabufinfo: Remove ReadDmaBufPssKalesh Singh2021-06-303-59/+0
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ReadDmaBufPss was introduced to aid accounting DMA buffers in memtrack hal implemetations. It is no longer reccommended for memtrack hal use, since it only accounts CPU-mapped buffers will miss the set of GPU only mapped buffers. The underlying dma-buf mmap_count that this depends on to be fast, also introduced bugs due to changing the vm_ops to do the accounting. Remove now unused ReadDmaBufPss. Bug: 192459295 Test: dmabufinfo_test Change-Id: I881933f36f97015ea5a26059eb5310ea445adc92 Merged-In: I881933f36f97015ea5a26059eb5310ea445adc92
* | | | libdmabufinfo: Remove ReadDmaBufPss am: 9eb1a13e73Kalesh Singh2021-06-303-59/+0
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | Original change: https://googleplex-android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/15159197 Change-Id: I30068e18ab56c8bbfb61989c2b84b2ab2fb433ef
| * | | libdmabufinfo: Remove ReadDmaBufPssKalesh Singh2021-06-303-59/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ReadDmaBufPss was introduced to aid accounting DMA buffers in memtrack hal implemetations. It is no longer reccommended for memtrack hal use, since it only accounts CPU-mapped buffers will miss the set of GPU only mapped buffers. The underlying dma-buf mmap_count that this depends on to be fast, also introduced bugs due to changing the vm_ops to do the accounting. Remove now unused ReadDmaBufPss. Bug: 192459295 Test: dmabufinfo_test Change-Id: I881933f36f97015ea5a26059eb5310ea445adc92
* | | | libmeminfo: Handle tabs in smaps parser am: 1fdb3c8d2a am: 4e718f845aSuren Baghdasaryan2021-06-081-3/+6
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1729731 Change-Id: I7f3b46c5b8ca3606e2d52fca117ab7654f0a6699
| * | | libmeminfo: Handle tabs in smaps parser am: 1fdb3c8d2aSuren Baghdasaryan2021-06-081-3/+6
| |\ \ \ | | | |/ | | |/| | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1729731 Change-Id: I07da57adb3292513422165fd7dda245b09b98a76
| | * | libmeminfo: Handle tabs in smaps parserSuren Baghdasaryan2021-06-071-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In kernel versions containing patch https://lore.kernel.org/patchwork/patch/1088579 and before patch https://lore.kernel.org/patchwork/patch/1280790 fixed this, smaps could use tabs in the separators of some fields. This confuses our smaps parser. Fix this by adding tabs handling. Fixes: c5ff2415f87a ("libmeminfo: Replace sscanf with a simple parser for smaps parsing") Bug: 190332010 Test: libmeminfo_test Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I3874295ec7e33719e5a9dd6ec9fed4878029672c
* | | | libmeminfo: Replace sscanf with a simple parser for smaps parsing am: ↵Suren Baghdasaryan2021-05-241-19/+19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c5ff2415f8 am: 580c027415 Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1716369 Change-Id: I090127e2c277abf4a9f0567dbd6ab5ca740815b1
| * | | libmeminfo: Replace sscanf with a simple parser for smaps parsing am: c5ff2415f8Suren Baghdasaryan2021-05-241-19/+19
| |\| | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1716369 Change-Id: I38e400d5bdabc31ca96df6bbfed75f6ebf243319
| | * | libmeminfo: Replace sscanf with a simple parser for smaps parsingSuren Baghdasaryan2021-05-221-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Profiling "dumpsys meminfo -a" command revealed that ~20% of the time is spent executing sscanf() from ForEachVmaFromFile() function. The format is simple enough that it can be replaced with a simple parser which eliminates this overhead. Bug: 183524466 Test: dumpsys meminfo -a Signed-off-by: Suren Baghdasaryan <surenb@google.com> Change-Id: I280c3d97f7d10519cf674d870717c9d1e6ef5668
* | | | OWNERS: Remove myself from owners am: 99b2f832cd am: 81e01d68f6 am: ↵Sandeep Patil2021-04-301-1/+0
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | bfef591fa9 am: 59cee7a971 Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1691547 Change-Id: I880fa7899a270f3b13f23da2a10b983051e9b7b3
| * | | OWNERS: Remove myself from owners am: 99b2f832cd am: 81e01d68f6 am: bfef591fa9Sandeep Patil2021-04-301-1/+0
|/| | | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1691547 Change-Id: I137de660adc12bd55f48f03b772b8dac735717cd
| * | | OWNERS: Remove myself from owners am: 99b2f832cd am: 81e01d68f6Sandeep Patil2021-04-301-1/+0
| |\| | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1691547 Change-Id: Ied15d4190a8f4c5e37d8362b96bc3a8df6b43f87
| | * | OWNERS: Remove myself from owners am: 99b2f832cdSandeep Patil2021-04-301-1/+0
| | |\| | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1691547 Change-Id: If71caaad316dfe2f6dab0a2ae5ac173e6a7d00d0
| | | * OWNERS: Remove myself from ownersandroid-s-beta-2android-s-beta-1Sandeep Patil2021-04-291-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I haven't contributed to the library, CRs for over a year now. So, I should appear in the auto-add owners button anymore. Test: N/A Bug: N/A Signed-off-by: Sandeep Patil <sspatil@google.com> Change-Id: Ic89828dc6aeaa1a49fcd080ee9eb561ebc1a335a
* | | | libmeminfo: Add THP field to procmem output am: f6ad0be442 am: 98549ee03c ↵Kalesh Singh2021-04-204-17/+29
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 75e0c797cb Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1677671 Change-Id: I4fe506255bca14eb9884df4df942424fd1d11207
| * | | libmeminfo: Add THP field to procmem output am: f6ad0be442 am: 98549ee03cKalesh Singh2021-04-204-17/+29
| |\| | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1677671 Change-Id: I17a6012357f3601b704728f2040a73c0779331ba
| | * | libmeminfo: Add THP field to procmem output am: f6ad0be442Kalesh Singh2021-04-204-17/+29
| | |\| | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1677671 Change-Id: Idb187922d3f47394e17b023b223eddf808450f5f
| | | * libmeminfo: Add THP field to procmem outputKalesh Singh2021-04-204-17/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In preparation for THP support, add the size of the VMA that is backed by THPs to procmem output. Bug: 165836290 Test: procmem $pid Change-Id: Ic4908eeca7f4111c99c53c796be9a48d62daca8a
* | | | libmeminfo: Add THP stats to showmap am: d66e204405 am: 5d5115412b am: ↵Kalesh Singh2021-04-203-6/+48
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 86fb9d70d9 Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1677670 Change-Id: I15d34113dcb2e1814b0bd25eab09b43afb57464f
| * | | libmeminfo: Add THP stats to showmap am: d66e204405 am: 5d5115412bKalesh Singh2021-04-203-6/+48
| |\| | | | | | | | | | | | | | | | | | | | | | Original change: https://android-review.googlesource.com/c/platform/system/memory/libmeminfo/+/1677670 Change-Id: I78174c22e85a547a4d421c6b9a38673ecc171596