Since the initial page mappings are are collected from one or more
pids, they deserve to be marked on the analyzer output. That way the
user will know which are the processes that have all of their pages
counted and which have only those pages counted that are shared with
any of the interesting processes.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
printf(" in ram swapped total pid");
if (opts->with_threads)
printf(" tid");
- printf(" name\n");
+ printf(" name\n");
restart:
second_biggest = 0;
if (opts->with_threads)
printf("%5d ", ps->tid);
- printf("%s\n", ps->name);
+ printf("%c %s\n",
+ ps->is_initial_pid ? '*' : ' ',
+ ps->name);
count++;
processes++;
long int pages_present;
long int pages_swapped;
+
+ int is_initial_pid;
};
#define PARSE_PID 0x1
}
}
+ if (!is_parse_option(opts, PARSE_NOADD_TREE))
+ process->is_initial_pid = 1;
+
list_add_tail(&process->list, &process_list->list);
return 1;