#include #include #include #include #include "parse.h" #include "analyze.h" int main(int argc, char *argv[]) { struct pageframe pf; struct process *process_list = NULL; int pid; if (argc < 2) { printf("A pid needs to be given as an argument\n"); return 1; } pid = atoi(argv[1]); memset(&pf, 0, sizeof(pf)); scan_all_pids(&pf, &process_list, pid); print_page_stats(&pf); return 0; }