Lines Matching full:rss
12 * Find the new mapping in /proc/$pid/smaps and check Rss and Locked fields after
14 * Rss and Locked size should be equal to the size of the memory allocation
23 static void get_proc_smaps_info(unsigned long desired_mapping_address, unsigned long *Rss, unsigned… in get_proc_smaps_info() argument
58 if (strncmp(buffer, "Rss", strlen("Rss")) == 0) { in get_proc_smaps_info()
59 ret = sscanf(buffer, "%*[^:]:%lu kB", Rss); in get_proc_smaps_info()
62 tst_brk(TBROK, "failure occurred while reading field Rss"); in get_proc_smaps_info()
87 tst_brk(TBROK, "cannot find both Rss and Locked in mapping %lx", desired_mapping_address); in get_proc_smaps_info()
93 unsigned long Rss; in verify_mlock() local
99 get_proc_smaps_info((unsigned long)buf, &Rss, &Locked); in verify_mlock()
102 Rss *= 1024; in verify_mlock()
105 TST_EXP_EQ_LU(Rss, MMAPLEN); in verify_mlock()