• Alessandro Rubini's avatar
    lib/latency: a latency-test engine, to check WR networks · 3edcad86
    Alessandro Rubini authored
    This adds a tool to check the latency in the network. It is selected
    at build time (config) time.  If you select CONFIG_LATENCY_PROBE you
    are then asked for a CONFIG_LATENCY_ETHTYPE.
    
    The sender node sends three frames, as broadcast in that ethertype
    within the current vlan (or no vlan).  The first frame is at priority
    7, the second at priority 6, and the third includes the egress
    timestamps for the former ones. Each group has a sequence number
    and group identifier.
    
    If the tool is built in wrc.bin, every node acts as a receiver. To
    enable a sender issuing the set of frames every 5 seconds, use "ltest 5".
    To disable use "ltest 0".
    
    The receiver prints the measured latency, and warns if it receives
    frames that are not in the proper order, using the sequence and frame
    type fields.
    
    This is a successful run crossing two wr switches:
    
        latency prio7: 5142.775
        latency prio6: 4998.775
        latency prio7: 4822.773
        latency prio6: 5142.773
        latency prio7: 5142.771
        latency prio6: 5286.771
    
    Later on, we'll make the thing less verbose, and we'll have threshold
    to signal a problem if the network went slow. Currently we just print
    all collected data.
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    3edcad86
Name
Last commit
Last update
arch/lm32 Loading commit data...
configs Loading commit data...
dev Loading commit data...
doc Loading commit data...
host Loading commit data...
include Loading commit data...
ipc Loading commit data...
lib Loading commit data...
monitor Loading commit data...
pp_printf Loading commit data...
ppsi @ c93d7100
scripts Loading commit data...
sdb-lib Loading commit data...
shell Loading commit data...
softpll Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
COPYING Loading commit data...
Kconfig Loading commit data...
MAKEALL Loading commit data...
Makefile Loading commit data...
Makefile.kconfig Loading commit data...
bigobj.lds Loading commit data...
check-error.c Loading commit data...
dump-info.c Loading commit data...
revision.c Loading commit data...
system_checks.c Loading commit data...
wrc_main.c Loading commit data...
wrc_ptp.h Loading commit data...
wrs_main.c Loading commit data...