From: Timo Kokkonen Date: Sun, 16 Oct 2011 15:16:48 +0000 (+0300) Subject: parse.c: Do not update per process mapping data X-Git-Url: http://git.itanic.dy.fi/?p=scan-pagemap;a=commitdiff_plain;h=e938a67aa12bb177483f28c370fe1630f768c1a8 parse.c: Do not update per process mapping data This data is calculated on demand basis in the analyze.c file. No need to calculate the redundat data here. Signed-off-by: Timo Kokkonen --- diff --git a/parse.c b/parse.c index 371abdb..c87a153 100644 --- a/parse.c +++ b/parse.c @@ -287,13 +287,6 @@ static int read_pageframe(int pid, int tid, struct rb_root *root, if (read_cmdline(pid, tid, process->name, sizeof(process->name))) goto free; - if (maps != NULL) { - list_for_each_entry(maps, &process->maps->list, list) { - process->pages_present += maps->pages_present; - process->pages_swapped += maps->pages_swapped; - } - } - if (!is_parse_option(opts, PARSE_NOADD_TREE)) process->is_initial_pid = 1;