[nos-bbs] sync'd trace file feature - try it out please.
Maiko Langelaar
maiko at pcs.mb.ca
Thu Nov 4 15:06:44 EDT 2010
Michael (and anyone else who wants to try),
cd to your JNOS 2.0i (latest) source directory, do this :
rsync -av www.langelaar.net::jnos2/trace.c .
rm trace.o
vi (or whatever your config.h, add a line #define J2_TRACESYNC)
make
>From JNOS command prompt, the trace command can then be run with an extra
parameter (in seconds) to specify the SYNC interval for updating the trace
file. This SYNC is both usflush (JNOS buffers) and fflush (OS buffers).
example. To trace ax1, and have the log updated each second, do this :
trace ax1 0x211 ax1.log 1
Seems to work VERY nicely. This is test code. Only one interface can be
traced with the SYNC feature at a time right now. Let me know how it works
for you. If you want, we can make the parameter in milliseconds instead,
allowing one to go to 1/4 or 1/2 second intervals if desired. Once this
is to everyone's liking, then I'll finish it up for multiple syncs.
Maiko
More information about the nos-bbs
mailing list