#include #include #include #include #include "parse.h" #include "analyze.h" int main(int argc, char *argv[]) { struct pageframe pf; struct process *process_list = NULL; struct parse_opts opts; 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)); opts.parse_mask = PARSE_PID; opts.pid = pid; scan_all_pids(&pf, &process_list, &opts); print_pid_stats(&pf, process_list); print_page_stats(&pf); return 0; }