[nos-bbs] renewed instructions (please read) - sync'd trace file feature

Maiko Langelaar maiko at pcs.mb.ca
Fri Nov 5 11:15:57 EDT 2010


Okay,

Scrap the last set of instructions, it was a concept that I just wanted
quickly tested, silly me, should have just waited a day or so. Anyways,
this is now done the way I want it done. You can sync all trace files
at once if you want, each with it's own sync interval (milliseconds).

You will have to do a complete recompile, since I have had to add some
members to 'struct iface' to make this work the way I wanted it work.

   cd to your jnos 2.0i directory
   rsync -av www.langelaar.net::jnos2 .
   make clean
   vi (or whatever your config.h, add a line #define J2_TRACESYNC)
   make

The sync feature required 3 files to be modified - iface.[ch] and trace.c,
if you see other files updated on the RSYNC, it means you were behind :)

>From JNOS command prompt, the trace command can then be run with an extra
parameter (in milliseconds, not seconds) to specify the SYNC interval for
updating that particular trace file.

This SYNC is both usflush (JNOS buffers) and fflush (OS buffers).

For example, to trace port 'ax1', and have the log updated each second,
you can do the following :

    trace ax1 0x211 ax1.log 1000

If you want every 1/2 second, then use 500 instead of 1000. Also, the user
is warned if they ask for intervals less then 1000 ms - not a bad idea.

This seems to work here, I have tried several ports, each with different
sync intervals under a second, nothing out of the ordinary yet. I hope
this is to everyone's expectations. I really like that actually.

I'm gone for the next several days. Have fun :)

Once I hear back that this is working fine, I will very likely be
releasing JNOS 2.0i soon after that.

Maiko Langelaar / VE4KLM





More information about the nos-bbs mailing list