Lines Matching refs:meminfo

434   SystemMemoryInfoKB meminfo;  in GetSystemCommitCharge()  local
435 if (!GetSystemMemoryInfo(&meminfo)) in GetSystemCommitCharge()
437 return meminfo.total - meminfo.free - meminfo.buffers - meminfo.cached; in GetSystemCommitCharge()
598 SystemMemoryInfoKB* meminfo) { in ParseProcMeminfo() argument
611 meminfo->total = 0; in ParseProcMeminfo()
627 target = &meminfo->total; in ParseProcMeminfo()
629 target = &meminfo->free; in ParseProcMeminfo()
632 target = &meminfo->available; in ParseProcMeminfo()
635 target = &meminfo->buffers; in ParseProcMeminfo()
637 target = &meminfo->cached; in ParseProcMeminfo()
639 target = &meminfo->active_anon; in ParseProcMeminfo()
641 target = &meminfo->inactive_anon; in ParseProcMeminfo()
643 target = &meminfo->active_file; in ParseProcMeminfo()
645 target = &meminfo->inactive_file; in ParseProcMeminfo()
647 target = &meminfo->swap_total; in ParseProcMeminfo()
649 target = &meminfo->swap_free; in ParseProcMeminfo()
651 target = &meminfo->dirty; in ParseProcMeminfo()
656 target = &meminfo->shmem; in ParseProcMeminfo()
658 target = &meminfo->slab; in ParseProcMeminfo()
665 return meminfo->total > 0; in ParseProcMeminfo()
670 SystemMemoryInfoKB* meminfo) { in ParseProcVmstat() argument
690 StringToInt(tokens[1], &meminfo->pswpin); in ParseProcVmstat()
692 StringToInt(tokens[1], &meminfo->pswpout); in ParseProcVmstat()
694 StringToInt(tokens[1], &meminfo->pgmajfault); in ParseProcVmstat()
701 bool GetSystemMemoryInfo(SystemMemoryInfoKB* meminfo) { in GetSystemMemoryInfo() argument
713 if (!ParseProcMeminfo(meminfo_data, meminfo)) { in GetSystemMemoryInfo()
728 meminfo->gem_objects = -1; in GetSystemMemoryInfo()
729 meminfo->gem_size = -1; in GetSystemMemoryInfo()
737 meminfo->gem_objects = gem_objects; in GetSystemMemoryInfo()
738 meminfo->gem_size = gem_size; in GetSystemMemoryInfo()
750 meminfo->gem_size += mali_size; in GetSystemMemoryInfo()
761 if (!ParseProcVmstat(vmstat_data, meminfo)) { in GetSystemMemoryInfo()