[nos-bbs] sync'd trace file feature - try it out please.

Michael Fox - N6MEF n6mef at mefox.org
Thu Nov 4 19:33:46 EDT 2010


Hi Maiko,

Wow, that's fast service!

Just a clarification:  You say "Only one interface can be
traced with the SYNC feature at a time right now."

So, does that mean I can have three interfaces using trace, only one of
which has the extra SYNC parameter?  Or, does that mean that only one
interface can run trace?

Thanks,
Michael


-----Original Message-----
From: Maiko Langelaar [mailto:maiko at pcs.mb.ca] 
Sent: Thursday, November 04, 2010 12:07 PM
To: n6mef at arrl.net; TAPR xNOS Mailing List
Subject: sync'd trace file feature - try it out please.

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