|
|
|
|
|
|
|
|
|
|
xen-devel
[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
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Add periodic fflush to xentop batch mode.,
Yusuke KANEKI <=
|
|
|
|
|