1. 20 Sep, 2016 1 commit
  2. 16 Jun, 2016 5 commits
  3. 16 May, 2016 11 commits
  4. 16 Oct, 2013 1 commit
    • Alessandro Rubini's avatar
      bugfix: state-fault must delay a while before reinitializing ppi · 8bd9b76e
      Alessandro Rubini authored
      This is a long-standing bug introduced when fsm.c was changed to
      immediately enter a new state (before that, we had a grace period in
      state-faulty).  The problem is exposed by running the suggested
      config file, if eth1 and/or eth2 exist but are currently down.
      
      This patch introduces a specific timeout, so we wait 4 seconds before
      reinitializing the pp instance; we thus avoid burning 100% CPU Time in
      trying again and again.
      
      As a side effect, this reduces timeouts provided to extensions from 4
      to 3. I could have reused one of the other timeouts, as faulty state
      does not use them, but I'd better have proper timeout names in
      diagnostics.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      8bd9b76e
  5. 31 Jul, 2013 1 commit
    • Alessandro Rubini's avatar
      general: rephrase copyright notices (no tech effect) · 23033d8a
      Alessandro Rubini authored
      This changes all "Name Surname for CERN" to "Copyright CERN, author
      Name Surname".  This is trivial and makes no change, with a few
      expections:
      
      - all trivial Makefiles that had "for CERN" lines have now no
      attributions, as they are trivial anyways.
      
      - a few unrepresented files have not the copyright notice (especially
      ptpdump, that I wrote in 2012).
      
      - a few "for CERN" remain in subprojects, where I didn't touch anyrhing
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      23033d8a
  6. 07 Mar, 2013 4 commits
    • Alessandro Rubini's avatar
      general (for bmc.c): turn ClockIdentity into a structure · f9f487ff
      Alessandro Rubini authored
      This "type" was the only type represented as an array instead of
      being a structure. This leads to inconsistent use: if you memcpy
      the other ones you need "&", but not here.
      
      So this commit uses an encompassing structure, to have ClockIdentity
      behave like other composite fields.  The commit has no effect at all
      on the generated binary files for wrpc but it unexpectedly reduces the
      size of the output on the PC. Anyways, the commit is trivial, and all
      changes can be easily verified to have no effect.
      
      While this increases entropy, the reasoning is that I want to assign
      structures instead of running zillions of memcpy functions, with the
      hairy PP_CLOCK_IDENTITY_LENGTH.  So later commits, based on this one,
      reduce entropy.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      f9f487ff
    • Alessandro Rubini's avatar
      diag: use new diagnostics for time · c946dca5
      Alessandro Rubini authored
      This is the result, on a master, with "-d 02":
      
      diag-time-2-eth0: posix_time_get:  1362675879.940187923
      diag-time-1-eth0: timeout expired: PP_TO_ANN_INTERVAL
      diag-time-2-eth0: posix_time_get:  1362675880.081818439
      diag-time-2-eth0: posix_time_get:  1362675880.233227916
      diag-time-2-eth0: recv stamp: 1362675880.233227916 (user)
      diag-time-2-eth0: posix_time_get:  1362675880.233499803
      diag-time-1-eth0: timeout expired: PP_TO_SYNC
      
      (time level 1 reports timeouts and set, level 2 reports get-time too).
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c946dca5
    • Alessandro Rubini's avatar
      trivial: remove unneeded include · dab8bb38
      Alessandro Rubini authored
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      dab8bb38
    • Alessandro Rubini's avatar
      5e595126
  7. 02 Mar, 2013 2 commits
    • Alessandro Rubini's avatar
      timeout: randomize intervals as required · 89185bf9
      Alessandro Rubini authored
      The frames should be sent with some dispersion around the timeout
      point.  The new function calculates the correct dispersion, but we
      need to change the setting of next_delay in order to actually spread
      the distribution of announce and other messages.
      
      Also, this commit doesn't spread all message times, some work on the
      field is still needed.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      89185bf9
    • Alessandro Rubini's avatar
      timeout: add pp_timeout_z and centralized logging · 78efba06
      Alessandro Rubini authored
      By zeroing the timeout whenever it expires, a number of
      state files get simplified a little. So pp_timeout_z() returns
      1 or 0 like pp_timeout(), but also clears the timeout when it is
      expired.
      
      Moreover, when a timeout expires a message is printed if the
      build-time option pp_verbose_time is set (and run-time verbosity is at
      level 2). In this way all timeouts are reported, or none of them.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      78efba06