int main(int argc, char *argv[]) { struct cpustats *cpus; if ( argc > 1 ) extra_crap = 1; if ( NULL == (cpus = GetCPUStats(NULL)) ) { fprintf(stderr, "ERROR: Unable to parse CPU stats.\n"); return(1); } if(BuildCPUTree(cpus)) { fprintf(stderr, "ERROR: Issues building CPU tree.\n"); return(1); } dump_sockets(cpus->cpu_tree); return(0); }
int main(int argc, char **argv) { parse_opt(argc,argv); open_sock(); if ( arg_dumpsockets ) dump_sockets(); if ( arg_dumpnet ) dump_net(); return 0; }