[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Add periodic fflush to xentop batch mode.



Add periodic fflush to xentop(batch mode).

If you want to make monitor tool using the following command,
you can not get output every some seconds.

xentop -b -d 1 > xentop.log
(above tool use tail command to get periodic data from xentop.log)

This patch is useful when you get 
xentop output(batch mode) periodicaly using pipe.


Best Regards,
 Yusuke Kaneki

----

*** old/xentop.c        2008-03-14 21:00:28.000000000 +0900
--- new/xentop.c        2008-03-14 21:00:36.000000000 +0900
***************
*** 1121,1126 ****
--- 1121,1127 ----
                do {
                        gettimeofday(&curtime, NULL);
                        top();
+                       fflush(stdout);
                        oldtime = curtime;
                        if ((!loop) && !(--iterations))
                                break;



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.