]> git.itanic.dy.fi Git - scan-pagemap/blobdiff - analyze.c
Mark initially scanned pids in analyzer printouts
[scan-pagemap] / analyze.c
index 4feb3ec73dd688eb4681165dd072bb2085e728ef..d5ac75dae8498c0c7258f980621ef92e3d3b74af 100644 (file)
--- a/analyze.c
+++ b/analyze.c
@@ -118,7 +118,7 @@ void print_pid_stats(struct pageframe *pf, struct process *process_list,
        printf("  in ram  swapped    total   pid");
        if (opts->with_threads)
                printf("   tid");
-       printf(" name\n");
+       printf("   name\n");
 
 restart:
        second_biggest = 0;
@@ -148,7 +148,9 @@ restart:
                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++;