[MPICH] Clog->Slog2 - can't use single events?

Kilian Timmler kilian.timmler at signalion.com
Thu May 18 03:43:12 CDT 2006



Hi,

I'm trying to use jumpshot-4 to display timestamp information I gathered
from a DSP board
we are using in our company. Since the CLOG format seemed simple enough to
deal with and I have no idea of java programming yet, I decided to generate
a CLOG file from my data to let jumpshot-4 convert it with clogTOslog2. I
know that I should rather write a SLOG program to create a SLOG2 file but I
can't spend that much time right now.

So far I'm able to use states and jumpshot-4 shows them properly. If I try
to use events through defining one and later through using the defined etype
in a raw event, the conversion process shows that only the states were
converted.

Let me show you what I have:
-----------------------------------

$ java -jar  ../slog2sdk-1.2.5/lib/clogprint.jar test_log.clog
RecHeader[ timestamp=7.189999996626284E-4, rectype=7, length=9, taskID=0 ]
RecSrc[ srcloc=900, lineno=205, filename=simpletest.c ]
RecHeader[ timestamp=0.02, rectype=4, length=5, taskID=0 ]
RecComm[ etype=101, parent=-1, newcomm=91, srcloc=900 ]
RecHeader[ timestamp=0.025, rectype=6, length=10, taskID=0 ]
RecDefState[ stateID=200, startetype=500, endetype=501, pad=0, color=green,
desc
ription=start ]
RecHeader[ timestamp=0.027, rectype=6, length=10, taskID=0 ]
RecDefState[ stateID=201, startetype=502, endetype=503, pad=0, color=blue,
descr
iption=end ]
RecHeader[ timestamp=0.0271, rectype=5, length=6, taskID=0 ]
RecEvent[ etype=11, desc=event ]
RecHeader[ timestamp=0.03, rectype=1, length=7, taskID=0 ]
RecRaw[ etype=500, data=900, srcloc=13, string=test ]
RecHeader[ timestamp=0.0305, rectype=1, length=7, taskID=0 ]
RecRaw[ etype=11, data=900, srcloc=13, string=test ]
RecHeader[ timestamp=0.031, rectype=1, length=7, taskID=0 ]
RecRaw[ etype=501, data=900, srcloc=13, string=test ]
RecHeader[ timestamp=0.032, rectype=1, length=7, taskID=0 ]
RecRaw[ etype=502, data=900, srcloc=13, string=test ]
RecHeader[ timestamp=0.033, rectype=1, length=7, taskID=0 ]
RecRaw[ etype=503, data=900, srcloc=13, string=test ]
RecHeader[ timestamp=1000000.0, rectype=-2, length=3, taskID=0 ]
End Of File
Total ByteSize of the logfile = 624

-----------------------------------

With that file I get from clogTOslog2:

-----------------------------------

$ java -jar  ../slog2sdk-1.2.5/lib/clogTOslog2.jar test_log.clog
         SLOG-2 Header:
version = SLOG 2.0.6
NumOfChildrenPerNode = 2
TreeLeafByteSize = 65536
MaxTreeDepth = 0
MaxBufferByteSize = 139
Categories  is FBinfo(139 @ 220)
MethodDefs  is FBinfo(0 @ 0)
LineIDMaps  is FBinfo(44 @ 359)
TreeRoot    is FBinfo(112 @ 108)
TreeDir     is FBinfo(38 @ 403)
Annotations is FBinfo(0 @ 0)
Postamble   is FBinfo(0 @ 0)



Number of Drawables = 2
Number of Unmatched Events = 0
Total ByteSize of the logfile = 624
timeElapsed between 1 & 2 = 110 msec
timeElapsed between 2 & 3 = 234 msec

-----------------------------------

I would like to know whether it is at all possible to convert single CLOG
events so that they are shown in jumpshot-4. If it is, I would like to get
some idea of how I have to set up the CLOG event so that it is correctly
converted into SLOG2 format. Unfortunately I couldn't find any example of
this sort of event being used, so I was left with guessing.

Regards,

Kilian








More information about the mpich-discuss mailing list