Lines Matching refs:currec
183 struct smaprec currec; in procps_read_smaps() local
197 memset(&currec, 0, sizeof(currec)); in procps_read_smaps()
209 total->X += currec.X = fast_strtoul_10(&tp); \ in procps_read_smaps()
230 if (currec.smap_size) in procps_read_smaps()
231 cb(&currec, data); in procps_read_smaps()
232 free(currec.smap_name); in procps_read_smaps()
234 memset(&currec, 0, sizeof(currec)); in procps_read_smaps()
238 currec.smap_start = fast_strtoull_16(&tp); in procps_read_smaps()
239 currec.smap_size = (fast_strtoull_16(&tp) - currec.smap_start) >> 10; in procps_read_smaps()
241 strncpy(currec.smap_mode, tp, sizeof(currec.smap_mode)-1); in procps_read_smaps()
247 if (currec.smap_mode[1] == 'w') { in procps_read_smaps()
248 currec.mapped_rw = currec.smap_size; in procps_read_smaps()
249 total->mapped_rw += currec.smap_size; in procps_read_smaps()
250 } else if (currec.smap_mode[1] == '-') { in procps_read_smaps()
251 currec.mapped_ro = currec.smap_size; in procps_read_smaps()
252 total->mapped_ro += currec.smap_size; in procps_read_smaps()
257 total->stack += currec.smap_size; in procps_read_smaps()
261 currec.smap_name = xstrdup(" [ anon ]"); in procps_read_smaps()
264 currec.smap_name = xstrdup(tp); in procps_read_smaps()
267 total->smap_size += currec.smap_size; in procps_read_smaps()
273 if (currec.smap_size) in procps_read_smaps()
274 cb(&currec, data); in procps_read_smaps()
275 free(currec.smap_name); in procps_read_smaps()