Home
last modified time | relevance | path

Searched refs:meminfo (Results 1 – 25 of 69) sorted by relevance

123

/external/libchrome/base/process/
Dprocess_metrics_unittest.cc94 SystemMemoryInfoKB meminfo; in TEST_F() local
107 EXPECT_FALSE(ParseProcMeminfo(invalid_input1, &meminfo)); in TEST_F()
108 EXPECT_FALSE(ParseProcMeminfo(invalid_input2, &meminfo)); in TEST_F()
109 EXPECT_FALSE(ParseProcMeminfo(invalid_input3, &meminfo)); in TEST_F()
177 EXPECT_TRUE(ParseProcMeminfo(valid_input1, &meminfo)); in TEST_F()
178 EXPECT_EQ(meminfo.total, 3981504); in TEST_F()
179 EXPECT_EQ(meminfo.free, 140764); in TEST_F()
180 EXPECT_EQ(meminfo.available, 535413); in TEST_F()
181 EXPECT_EQ(meminfo.buffers, 116480); in TEST_F()
182 EXPECT_EQ(meminfo.cached, 406160); in TEST_F()
[all …]
Dprocess_metrics_linux.cc154 void ReadChromeOSGraphicsMemory(SystemMemoryInfoKB* meminfo) { in ReadChromeOSGraphicsMemory() argument
161 meminfo->gem_objects = -1; in ReadChromeOSGraphicsMemory()
162 meminfo->gem_size = -1; in ReadChromeOSGraphicsMemory()
169 meminfo->gem_objects = gem_objects; in ReadChromeOSGraphicsMemory()
170 meminfo->gem_size = gem_size; in ReadChromeOSGraphicsMemory()
182 meminfo->gem_size += mali_size; in ReadChromeOSGraphicsMemory()
371 SystemMemoryInfoKB meminfo; in GetSystemCommitCharge() local
372 if (!GetSystemMemoryInfo(&meminfo)) in GetSystemCommitCharge()
374 return meminfo.total - meminfo.free - meminfo.buffers - meminfo.cached; in GetSystemCommitCharge()
497 bool ParseProcMeminfo(StringPiece meminfo_data, SystemMemoryInfoKB* meminfo) { in ParseProcMeminfo() argument
[all …]
Dprocess_metrics.cc79 std::unique_ptr<DictionaryValue> meminfo = memory_info_.ToValue(); in ToValue() local
81 meminfo->MergeDictionary(vmstat.get()); in ToValue()
82 res->Set("meminfo", std::move(meminfo)); in ToValue()
/external/autotest/client/site_tests/power_LowMemorySuspend/
Dpower_LowMemorySuspend.py28 meminfo = utils.get_meminfo()
29 if meminfo.SwapFree < meminfo.SwapTotal * _LOW_SWAP_THRESHOLD:
31 meminfo.SwapFree, meminfo.SwapTotal)
127 meminfo = utils.get_meminfo()
128 ending_swap_free = meminfo.SwapFree
129 swap_total = meminfo.SwapTotal
/external/u-boot/arch/xtensa/lib/
Dbootm.c42 struct meminfo *mem; in setup_memory_tag()
45 params->size = sizeof(struct meminfo); in setup_memory_tag()
46 mem = (struct meminfo *)params->data; in setup_memory_tag()
81 struct meminfo *mem; in setup_ramdisk_tag()
89 params->size = sizeof(struct meminfo); in setup_ramdisk_tag()
91 mem = (struct meminfo *)params->data; in setup_ramdisk_tag()
/external/autotest/client/site_tests/platform_MemoryPressure/
Dplatform_MemoryPressure.py250 meminfo = get_meminfo()
251 perf_results['MemTotal'] = meminfo['MemTotal']
252 perf_results['SwapTotal'] = meminfo['SwapTotal']
259 perf_results['Phase1MemFree'] = meminfo['MemFree']
260 perf_results['Phase1SwapFree'] = meminfo['SwapFree']
278 meminfo = get_meminfo()
284 perf_results['Phase2MemFree'] = meminfo['MemFree']
285 perf_results['Phase2SwapFree'] = meminfo['SwapFree']
/external/autotest/server/site_tests/kernel_BootMessagesServer/
Dkernel_BootMessagesServer.py102 def _parse_meminfo(self, meminfo, perf_vals): argument
111 for line in meminfo.splitlines():
173 meminfo = self._read_meminfo(meminfo_filename)
174 self._parse_meminfo(meminfo, perf_vals)
/external/autotest/client/bin/
Dutils_unittest.py158 meminfo = utils.get_meminfo()
159 self.assertEqual(meminfo.MemTotal, 2048000)
160 self.assertEqual(meminfo.Active_anon, 409600)
/external/autotest/client/profilers/catprofile/
Dcontrol1 job.profilers.add('catprofile', ['/proc/meminfo','/proc/uptime'], 'meminfo', 2)
/external/u-boot/arch/xtensa/include/asm/
Dbootparam.h38 struct meminfo { struct
49 struct meminfo bank[0]; argument
/external/linux-kselftest/tools/testing/selftests/memfd/
Drun_tests.sh23 done < /proc/meminfo
42 done < /proc/meminfo
Drun_hugetlbfs_test.sh20 done < /proc/meminfo
40 done < /proc/meminfo
/external/u-boot/arch/arm/include/asm/
Dsetup.h257 struct meminfo { struct
267 extern struct meminfo meminfo; argument
/external/linux-kselftest/android/patches/
D0013-ANDROID-build-vm-tests.patch28 -#get pagesize and freepages from /proc/meminfo
36 -done < /proc/meminfo
55 - done < /proc/meminfo
164 +##get pagesize and freepages from /proc/meminfo
172 +#done < /proc/meminfo
191 +# done < /proc/meminfo
/external/ltp/testcases/kernel/controllers/memcg/stress/
Dmemcg_stress_test.sh113 mem_free=`cat /proc/meminfo | grep MemFree | awk '{ print $2 }'`
114 swap_free=`cat /proc/meminfo | grep SwapFree | awk '{ print $2 }'`
/external/tensorflow/tensorflow/tools/ci_build/builds/
Dprint_build_info.sh41 MEM_TOTAL=$(grep MemTotal /proc/meminfo | awk '{print $2, $3}')
42 SWAP_TOTAL=$(grep SwapTotal /proc/meminfo | awk '{print $2, $3}')
/external/ltp/testcases/commands/mkswap/
Dmkswap01.sh57 local before=`awk '/SwapTotal/ {print $2}' /proc/meminfo`
96 local after=`awk '/SwapTotal/ {print $2}' /proc/meminfo`
/external/u-boot/arch/x86/cpu/broadwell/
Dsdram.c160 struct memory_info *info = &gd->arch.meminfo; in sdram_find()
249 gd->ram_size = gd->arch.meminfo.total_32bit_memory; in dram_init()
263 gd->arch.pei_meminfo = pei_data->meminfo; in dram_init()
/external/libchrome/base/metrics/
Dpersistent_memory_allocator.cc768 void PersistentMemoryAllocator::GetMemoryInfo(MemoryInfo* meminfo) const { in GetMemoryInfo()
772 meminfo->total = mem_size_; in GetMemoryInfo()
773 meminfo->free = remaining - sizeof(BlockHeader); in GetMemoryInfo()
938 MemoryInfo meminfo; in UpdateTrackingHistograms() local
939 GetMemoryInfo(&meminfo); in UpdateTrackingHistograms()
941 ((meminfo.total - meminfo.free) * 100ULL / meminfo.total)); in UpdateTrackingHistograms()
/external/perfetto/ui/src/common/
Dstate.ts200 meminfo: boolean; property
244 meminfo: false,
/external/libnl/lib/idiag/
Didiag.c164 __ADD(IDIAG_ATTR_MEMINFO, meminfo)
253 __ADD(IDIAG_ATTR_MEMINFO, meminfo)
/external/perfetto/src/traced/probes/sys_stats/
Dsys_stats_data_source.cc201 auto* meminfo = sys_stats->add_meminfo(); in ReadMeminfo() local
202 meminfo->set_key(static_cast<protos::pbzero::MeminfoCounters>(counter_id)); in ReadMeminfo()
203 meminfo->set_value(value); in ReadMeminfo()
/external/ltp/testcases/kdump/lib/
Dsysinfo.sh18 cat /proc/meminfo
/external/perfetto/protos/perfetto/trace/sys_stats/
Dsys_stats.proto27 // Counters from /proc/meminfo. Values are in KB.
32 repeated MeminfoValue meminfo = 1; field
/external/u-boot/arch/x86/cpu/intel_common/
Dmrc.c27 struct memory_info *info = &gd->arch.meminfo; in mrc_common_board_get_usable_ram_top()
55 struct memory_info *info = &gd->arch.meminfo; in mrc_common_dram_init_banksize()

123