Lines Matching refs:cur

78 static bool same_vma(const Vma& cur, const Vma& last) {  in same_vma()  argument
79 return (cur.start == last.start && cur.end == last.end && cur.name == last.name && in same_vma()
80 cur.flags == last.flags && cur.offset == last.offset); in same_vma()
83 static Vma diff_vma_params(const Vma& cur, const Vma& last) { in diff_vma_params() argument
85 res.usage.shared_clean = cur.usage.shared_clean > last.usage.shared_clean in diff_vma_params()
86 ? cur.usage.shared_clean - last.usage.shared_clean in diff_vma_params()
88 res.usage.shared_dirty = cur.usage.shared_dirty > last.usage.shared_dirty in diff_vma_params()
89 ? cur.usage.shared_dirty - last.usage.shared_dirty in diff_vma_params()
91 res.usage.private_clean = cur.usage.private_clean > last.usage.private_clean in diff_vma_params()
92 ? cur.usage.private_clean - last.usage.private_clean in diff_vma_params()
94 res.usage.private_dirty = cur.usage.private_dirty > last.usage.private_dirty in diff_vma_params()
95 ? cur.usage.private_dirty - last.usage.private_dirty in diff_vma_params()
98 res.usage.rss = cur.usage.rss > last.usage.rss ? cur.usage.rss - last.usage.rss : 0; in diff_vma_params()
99 res.usage.pss = cur.usage.pss > last.usage.pss ? cur.usage.pss - last.usage.pss : 0; in diff_vma_params()
100 res.usage.uss = cur.usage.uss > last.usage.uss ? cur.usage.uss - last.usage.uss : 0; in diff_vma_params()
101 res.usage.swap = cur.usage.swap > last.usage.swap ? cur.usage.swap - last.usage.swap : 0; in diff_vma_params()
103 cur.usage.swap_pss > last.usage.swap_pss ? cur.usage.swap_pss - last.usage.swap_pss : 0; in diff_vma_params()
106 res.start = cur.start; in diff_vma_params()
107 res.end = cur.end; in diff_vma_params()
108 res.offset = cur.offset; in diff_vma_params()
109 res.flags = cur.flags; in diff_vma_params()
110 res.name = cur.name; in diff_vma_params()