Skip to content
Snippets Groups Projects
  1. Jan 20, 2016
  2. Jan 15, 2016
  3. Jan 06, 2016
  4. Dec 16, 2015
  5. Dec 15, 2015
  6. Dec 04, 2015
  7. Nov 13, 2015
  8. Nov 11, 2015
  9. Nov 03, 2015
  10. Oct 30, 2015
  11. Oct 29, 2015
  12. Oct 27, 2015
  13. Oct 26, 2015
  14. Oct 15, 2015
    • Alessandro Rubini's avatar
      Merge branch 'stats-changes' · c7249619
      Alessandro Rubini authored
      c7249619
    • Alessandro Rubini's avatar
      40b87d1c
    • Alessandro Rubini's avatar
      gui: print a new status screen whenever the wr servo runs · aa95124d
      Alessandro Rubini authored
      
      The gui is timely: it refreshes every that many seconds, but I'd
      better see a change immediated when it happens.  This commit
      introduces monitoring of the wr-servo update count, so if anything
      changed an information scree is dumped.
      
      This is different from stats (two commits ago), because we want to
      refresh timely in any case, so the user sees the thing is active.
      
      You can verify the effect of the commit after "refresh 4": timely
      refresh is now slower than servo updated and you'll see how gui
      updates are synced with the ptp protocol.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      aa95124d
    • Alessandro Rubini's avatar
      stat: always print one line when turning stats on · 684fa5cd
      Alessandro Rubini authored
      
      With the new "only print if sth happens" way, sometimes stats is
      just silent forever. This happens if we are master or if no slave
      is active (well, and during initial setting up the wr link).
      
      So now typing "stat" or "stat on" will turn on stats and print a line
      of statistics, every time -- or the line "statistics now off".
      This happens by changing the internal status of monitor_ppsi.c,
      now exported to the cmd_stat.c.
      
      This is the result on a master system:
      
         wrc# stat
         lnk:1 rx:0 tx:3 lock:1 sv:0 ss:'' aux:1 sec:5 [...]
         wrc#
         wrc#
         wrc# stat
         statistics now off
         wrc#
         wrc#
         wrc# stat
         lnk:1 rx:0 tx:11 lock:1 sv:0 ss:'' aux:1 sec:8 [...]
         wrc#
         wrc#
      
      And this is what happens when we become slave:
      
         wrc# mode slave
         Locking PLL
         wrc# ptp start
         Slave Only, clock class set to 255
         wrc# lnk:1 rx:57 tx:60 lock:1 sv:1 ss:'SYNC_SEC' aux:1 sec:49 [...]
         lnk:1 rx:70 tx:64 lock:1 sv:1 ss:'SYNC_NSEC' aux:1 sec:1444901411 [...]
         lnk:1 rx:77 tx:66 lock:1 sv:1 ss:'SYNC_PHASE' aux:1 sec:1444901414 [...]
         lnk:1 rx:83 tx:68 lock:1 sv:1 ss:'WAIT_OFFSET_STABLE' aux:1 sec:1444901416 [...]
         lnk:1 rx:87 tx:69 lock:1 sv:1 ss:'WAIT_OFFSET_STABLE' aux:1 sec:1444901417 [...]
         lnk:1 rx:90 tx:70 lock:1 sv:1 ss:'TRACK_PHASE' aux:1 sec:1444901418 [...]
         lnk:1 rx:94 tx:71 lock:1 sv:1 ss:'TRACK_PHASE' aux:1 sec:1444901419 [...]
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      684fa5cd
    • Alessandro Rubini's avatar
      stat: only print statistics when something happened · a9114d22
      Alessandro Rubini authored
      
      This change monitors the update_count of wr_servo, and only prints
      a statistics line when something happens.
      
      This means we won't have long "TRACK_PHASE" listings when the master
      is dead. Moreover, we see changes when they happen, not at a random
      time during the next second.
      
      The bad side of the thing is that if nothing happens in the wr servo,
      nothing is ever printed. But see next commit.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      a9114d22