[PATCH] fix flightrec2.exp/stp (Re: Some test results on i386 and x86_64

Masami Hiramatsu mhiramat@redhat.com
Mon Apr 27 19:20:00 GMT 2009


Mark Wielaard wrote:
>> Perhaps, timer resolution on xen-kernel may be 10ms or more?
> 
> Yes, seems it counts "slower".
> 
> On my non-xen i386 machine (2.6.27.21-170.2.56.fc10.i686):
> $ stap -e 'global count=0; probe timer.ms(1) { printf("%d: %d\n",
> gettimeofday_ms(), count++); if (count > 10) exit(); }'
> 1240747341878: 0
> 1240747341879: 1
> 1240747341880: 2
> 1240747341881: 3
> 1240747341882: 4
> 1240747341883: 5
> 1240747341884: 6
> 1240747341885: 7
> 1240747341886: 8
> 1240747341887: 9
> 1240747341888: 10
> 
> But on my xen enabled x86_64 machine (2.6.18-128.1.6.el5xen):
> $ stap -e 'global count=0; probe timer.ms(1) { printf("%d: %d\n",
> gettimeofday_ms(), count++); if (count > 10) exit(); }'
> 1240747430504: 0
> 1240747430504: 1
> 1240747430514: 2
> 1240747430514: 3
> 1240747430524: 4
> 1240747430524: 5
> 1240747430524: 6
> 1240747430534: 7
> 1240747430534: 8
> 1240747430544: 9
> 1240747430544: 10

So, on xen, minimum timer period may be about 5ms.
In that case, this patch will help us.

This patch updates flightrec2.exp/stp

- Use stat instead of ls for getting file contents size.
- Increase timer period from 1ms to 10ms.
  (the amount of output per probe is also increased)

Thanks,

-- 
Masami Hiramatsu

Software Engineer
Hitachi Computer Products (America) Inc.
Software Solutions Division

e-mail: mhiramat@redhat.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: testcase-fix-flightrec-test.patch
URL: <http://sourceware.org/pipermail/systemtap/attachments/20090427/15e83e28/attachment.ksh>


More information about the Systemtap mailing list