Skip to contentSkip to conversation

FIX xentop batch mode.

PATCH New shaocyou 1 participant 1 message Jun 28, 2006

lore
Share & tools
lore

shaocyou

author
#0 lore raw

PATCH 1/1 FIX xentop batch mode.

Hi, All

I am doing performance test based on xentop. Current version of xentop has no logging functionality.

For this reason, I am using terminal(Podrosa) logging functionality, The problem is its logging file format is complex (XML-like) and
operation is not closed on linux.
So I request to add this batch-mode to xentop.
Batch-mode patch is already submitted by Hari.
By using this, I simply log the xentop within linux
and easily manipulate various info.

This patch should be applied after Hari's patch applied. By applying this patch, CPU(%) is correctly displayed.

About Hari's patch, Please see following mails.
Patch
http://lists.xensource.com/archives/html/xen-devel/2006-03/msg00407.html

man request to committer
http://lists.xensource.com/archives/html/xen-devel/2006-03/msg00424.html

man(Documents add)
http://lists.xensource.com/archives/html/xen-devel/2006-03/msg00451.html

Thanks,

shao

tools/xenstat/xentop/xentop.c +1 -0
diff -r 1c476dd076da tools/xenstat/xentop/xentop.c
@@ -904,6 +904,7 @@ int main(int argc, char **argv)
 			do {
 				gettimeofday(&curtime, NULL);
 				top();
+				oldtime = curtime;
 				sleep(delay);
 				if ((!loop) && !(--iterations))
 					break;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel