MPS issue job003519

TitleClock values in text telemetry logs on Windows have top 32 bits zero
Statusclosed
Priorityessential
Assigned userNick Barnes
OrganizationRavenbrook
DescriptionThe text telemetry files produced by mpseventcnv on Windows have the top 32 bits of every event clock value printed as zero.
Analysiswe fprintf with %016lX, so the fprintf is using the 'long' type which with Visual Studio is 32 bits. Use %016llX instead, so fprintf uses 'long long', which is the appropriate 64-bit type for the EventClock values.
How foundmanual_test
Evidence >head ../../../profile/nb/mpsio.cnv
 00000000E0053453 74 1 1 5 85 13 40 3E8
 00000000E00F851F 75 206A
 ...
 >od -A x -t x1 ../../../profile/nb/mpsio.log | head
 000000 74 00 30 00 00 00 00 00 53 34 05 e0 f3 36 00 00
 000010 01 00 00 00 01 00 00 00 05 00 00 00 85 00 00 00
 000020 13 00 00 00 40 00 00 00 e8 03 00 00 00 00 00 00
 000030 75 00 20 00 00 00 00 00 1f 85 0f e0 f3 36 00 00
 000040 6a 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Observed in1.111.0
Created byNick Barnes
Created on2013-06-15 14:05:20
Last modified byNick Barnes
Last modified on2013-06-15 14:05:32
History2013-06-15 NB Created.

Fixes

Change Effect Date User Description
182747 closed 2013-06-15 13:59:45 Nick Barnes Make event clock values print correctly on Windows.