diff options
| author | Kalesh Singh <kaleshsingh@google.com> | 2021-07-08 23:39:43 +0000 |
|---|---|---|
| committer | Kalesh Singh <kaleshsingh@google.com> | 2021-07-14 21:15:32 +0000 |
| commit | 327300fb15529efb257061e6122acee9a17ead93 (patch) | |
| tree | 79dbc9c04947170f5be6e88ff03d9f43119c884e | |
| parent | 87b63e5cbcb57eca72b79929ff067cdacb0b37c4 (diff) | |
| download | platform_system_memory_libmeminfo-android12-dev.tar.gz platform_system_memory_libmeminfo-android12-dev.tar.bz2 platform_system_memory_libmeminfo-android12-dev.zip | |
libmeminfo_test: Update DmabufHeapStats testsandroid12-dev
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
| -rw-r--r-- | libmeminfo_test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libmeminfo_test.cpp b/libmeminfo_test.cpp index 2ae9dc0..c41e4ff 100644 --- a/libmeminfo_test.cpp +++ b/libmeminfo_test.cpp @@ -1009,10 +1009,8 @@ TEST_F(DmabufHeapStats, TestDmabufHeapTotalExportedKb) { ASSERT_TRUE(android::base::WriteStringToFile("test", system_heap_path)); for (unsigned int inode_number = 74831; inode_number < 74841; inode_number++) { - auto attach_dir_path = StringPrintf("buffers/%u/attachments", inode_number); - ASSERT_TRUE(fs::create_directories(attach_dir_path)); - auto buffer_path = buffer_stats_path / StringPrintf("%u", inode_number); + ASSERT_TRUE(fs::create_directories(buffer_path)); auto buffer_size_path = buffer_path / "size"; const std::string buffer_size = "4096"; |
