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(" in ram swapped total pid");
if (opts->with_threads)
printf(" tid");
restart:
second_biggest = 0;
restart:
second_biggest = 0;
if (opts->with_threads)
printf("%5d ", ps->tid);
if (opts->with_threads)
printf("%5d ", ps->tid);
- printf("%s\n", ps->name);
+ printf("%c %s\n",
+ ps->is_initial_pid ? '*' : ' ',
+ ps->name);
long int pages_present;
long int pages_swapped;
long int pages_present;
long int pages_swapped;
+ if (!is_parse_option(opts, PARSE_NOADD_TREE))
+ process->is_initial_pid = 1;
+
list_add_tail(&process->list, &process_list->list);
return 1;
list_add_tail(&process->list, &process_list->list);
return 1;