Re: [PATCH RFC v2] Add /proc/pid/smaps_rollup

From: Randy Dunlap
Date: Wed Aug 09 2017 - 21:24:59 EST


On 08/09/2017 05:15 PM, Daniel Colascione wrote:
>
> diff --git a/Documentation/ABI/testing/procfs-smaps_rollup b/Documentation/ABI/testing/procfs-smaps_rollup
> new file mode 100644
> index 000000000000..fd5a3699edf1
> --- /dev/null
> +++ b/Documentation/ABI/testing/procfs-smaps_rollup
> @@ -0,0 +1,34 @@
> +What: /proc/pid/smaps_Rollup

smaps_rollup

\although I would prefer smaps_summary. whatever.

> +Date: August 2017
> +Contact: Daniel Colascione <dancol@xxxxxxxxxx>
> +Description:
> + This file provides pre-summed memory information for a
> + process. The format is identical to /proc/pid/smaps,
> + except instead of an entry for each VMA in a process,
> + smaps_rollup has a single entry (tagged "[rollup]")
> + for which each field is the sum of the corresponding
> + fields from all the maps in /proc/pid/smaps.
> + For more details, see the procfs man page.


--
~Randy