[syslinux] timestamp in COM32 module

Andrew Stuart andrew at shopcusa.com
Tue Sep 7 15:04:01 PDT 2010


On 9/5/2010 3:08 AM, Tomas Karasek wrote:
> Hello,
> I am writing a simple module for measuring boot time. I would like to
> get a timestamp when syslinux is run and then pass it as kernel
> parameter and work with the timestamp later..
>
> It seems that POXIS time.h functions are not implemented yet(?) in
> COMBOOT. There is times() from times.c but I do not understand what is
> it exactly returning. it doesn't seems like what POSIX time() returns.
>
> Also, I was reading this
>
> http://www.linuxfordevices.com/c/a/Linux-For-Devices-Articles/Benchmarking-boot-latency-on-x86/
>
>
> and it sounds good, but I would be really better off with seconds since
> beginning of epoch, plus I am not sure how the TSC count behaves on
> multicore.
>
> - Is there some other way to get (some kind of) timestamp in COM32
> environment besides RDTSC and times.c?
>
> - Is there a way how to get a timestamp relative to times() when Linux
> is runnig? I.e. build a static binary that will get times() and run it
> from init?
>
> Best Regards,
> Tomas Karasek
>
> _______________________________________________
> Syslinux mailing list
> Submissions to Syslinux at zytor.com
> Unsubscribe or set options at:
> http://www.zytor.com/mailman/listinfo/syslinux
> Please do not send private replies to mailing list traffic.
>

While not answering your question specifically, I might suggest you 
check the archives, on 3/20/10 Gene Cumm wrote a c32 module for timing 
transfers. The thread was titled '[MODULE] COM32 module to time 
null-dumping a file, v1.1'

I don't believe it passed anything to a linux kernel, but maybe it will 
give you some ideas.

HTH

-Andrew




More information about the Syslinux mailing list