Re: out-of-order execution and code profiling

2002-11-25 Thread Luigi Rizzo
thanks a lot for the pointer to CPUID luigi On Mon, Nov 25, 2002 at 05:15:06PM -0800, Nate Lawson wrote: ... > The Intel processor manual has an explicit example for this and recommends > you use cpuid as a serializing instruction before the call to rdtsc. To Unsubscribe: send mail to

Re: out-of-order execution and code profiling

2002-11-25 Thread Nate Lawson
On Mon, 25 Nov 2002, Luigi Rizzo wrote: > I just got hit by a peculiar problem related to out-of-order > execution of instructions. > I was doing some low-level timing measurements using the rdtsc() > around selected pieces of code (the rdtsc() is included in > the TSTMP() functions that are in REL

out-of-order execution and code profiling

2002-11-25 Thread Luigi Rizzo
Hi, I just got hit by a peculiar problem related to out-of-order execution of instructions. I was doing some low-level timing measurements using the rdtsc() around selected pieces of code (the rdtsc() is included in the TSTMP() functions that are in RELENG_4, source is in sys/i386/isa/clock.c), as