[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-users] how to make xenalyze continuously reading from xentrace file ?
Hi There, I'm a student at NYIT, New York and I have project on xen hypervisor. Currently i'm working on xentrace and xenalyze to monitor the runstate events. What i'm trying do now is: While i'm capturing by xentrace I want to display the result on the screen using xenalyze. I tried to use loop in the main function but I got errors and when I tried to solve these errors I got more errors. int main(int argc, char *argv[]) { /* Start with warn at stderr. */ warn = stderr; argp_parse(&parser_def, argc, argv, 0, NULL, NULL); if (G.trace_file == NULL) exit(1); if ( (G.fd = open(G.trace_file, O_RDONLY|O_LARGEFILE)) < 0) { perror("open"); error(ERR_SYSTEM, NULL); } else { struct stat64 s; fstat64(G.fd, &s); G.file_size = s.st_size; } if ( (G.mh = mread_init(G.fd)) == NULL ) perror("mread"); if (G.symbol_file != NULL) parse_symbol_file(G.symbol_file); if(opt.dump_all) warn = stdout; for (int i=0;i<=1000;i++){ init_pcpus(); if(opt.progress) progress_init(); process_records(); if(opt.interval_mode) interval_tail(); if(opt.summary) summary(); if(opt.report_pcpu) report_pcpu(); sleep(2); } if(opt.progress) progress_finish(); return 0; } Error: vcpu_next_update: FATAL: p->current not NULL! (d32768v0, runstate running) How can I can make xenalyze to continuously read from xentrace output file ? _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx http://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |