1. 03 Mar, 2017 1 commit
  2. 31 Jan, 2017 2 commits
  3. 13 Jan, 2017 1 commit
    • Alessandro Rubini's avatar
      general: avoid linux/ includes when possible · 922e2caf
      Alessandro Rubini authored
      Building with musl was spitting errors for redefined data structures.
      Use the standard headers when available (I found not alternatives to
      linux/if_packet.h, but it spits no error).
      
      Then, ifr.ifr_data is "caddr_t" not "void *" in musl, so cast the
      pointer being assigned to silent a warning.
      
      Finally, the fields of udphdr in musl use different names unless wi
      add _GNU_SOURCE -- most likely musl is more posixly-correct, I didn't check.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      922e2caf
  4. 12 Dec, 2016 1 commit
  5. 07 Dec, 2016 1 commit
  6. 20 Sep, 2016 1 commit
  7. 30 May, 2016 1 commit
  8. 06 Jul, 2015 3 commits
  9. 18 Jul, 2014 1 commit
    • Pietro Fezzardi's avatar
      arch-sim: new simulator diagnostics and config · 717a8f5e
      Pietro Fezzardi authored
      diagnostics:
      
      For testing purposes we can't just read the ofm value
      printed out by the slave, because that's only the offset
      perceived by the slave and can be wrong. We need instead to
      print out the offset obtained subtracting the real time of
      the master from the real time of the slave.
      To print out the ofm we use the "ext" flag of pp_diag.
      The ofm is printed only when the slave gets a
      DelayResp message from the master.
      A new tool to strip ofm out of simulator log is provided
      
      config:
      
      now the max number of simulated ptp iterations can be configured.
      previously one could set the number of seconds to simulate.
      this is not possible anymore.
      717a8f5e
  10. 05 Oct, 2013 1 commit
  11. 24 Sep, 2013 1 commit
  12. 18 Sep, 2013 1 commit
  13. 11 Sep, 2013 1 commit
  14. 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
  15. 26 Jul, 2013 2 commits
  16. 07 Jul, 2013 1 commit
  17. 21 Mar, 2013 1 commit
    • Alessandro Rubini's avatar
      tools: avoid bit fields on our types · 3a16a930
      Alessandro Rubini authored
      The __BYTE_ORDER == __LITTLE_ENDIAN was failing on lm32, I don't know
      why. So dumping on the spec was wrong: "VERSION: unsupported (0)"
      
      The above symbols are defined by glibc, and I didn't even get
      undefined macro errors. So the commit kill bit fields, and I mask at
      run time instead.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      3a16a930
  18. 19 Mar, 2013 1 commit
  19. 14 Mar, 2013 8 commits
  20. 12 Mar, 2013 1 commit
  21. 01 Mar, 2013 2 commits
  22. 27 Feb, 2013 1 commit
  23. 11 Feb, 2013 5 commits
    • Alessandro Rubini's avatar
      tools/mtp: new tool-set, still to be cleaned up and documented · 7255f628
      Alessandro Rubini authored
      This is the verbatim copy of what I wrote as example code for an
      article about time stamping. It's called "mini time protocol".  Some
      of the code, in turn, comes from my previous experiments with White
      Rabbit.
      
      I'd better have the programs here as I use them often. As time permits
      I'll add some more features and documentation in the ppsi manual.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      7255f628
    • Alessandro Rubini's avatar
      tools: added chktime · c7cc61d8
      Alessandro Rubini authored
      This program monitors clock_monotonic and clock_realtime every 10ms
      (or a different time lapse passed on the command line).
      
      Whenever the difference between them is more than 0.5ms apart from the
      previously-reported difference, it prints the current difference.  All
      such differences are relative to the initial offset of the two clocks,
      when the program started. The difference is prefixed with the current
      date and time, to help logging.
      
      This is something I already had in my toolbox, so I could see the leap
      second that occurred on Jun 30th 2012.
      
      Example:
         tornado.root# ./tools/chktime &
         [1] 23761
         ./tools/chktime: looping every 10 millisecs
      
         tornado.root# ./tools/jmptime .003
         Requesting time-jump: 0.003000 seconds
      
            13-02-11-12:22:44:       2997 us
      
         tornado.root# ./tools/jmptime .003
         Requesting time-jump: 0.003000 seconds
      
            13-02-11-12:22:52:       5994 us
      
         tornado.root# ./tools/jmptime -.006
         Requesting time-jump: -0.006000 seconds
      
            13-02-11-12:22:58:        -10 us
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      c7cc61d8
    • Alessandro Rubini's avatar
      tools: added jmptime · 8a564d12
      Alessandro Rubini authored
      Like adjtime (previous commit), this is used to adjust the local time,
      but in this case the program performs a time jump (warp) using
      settimeofday().
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      8a564d12
    • Alessandro Rubini's avatar
      tools: added adjtime · cfd8a834
      Alessandro Rubini authored
      This simple tool requests a time adjustment, specified in seconds
      expressed as a floating point values ("0.001", "-.2", "-4" ...).
      
      It can be used to force time differences between hosts while checking
      how ppsi (or other time daemons) work.
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      cfd8a834
    • Alessandro Rubini's avatar
      trivial: tools/.gitignore · 4a05e2de
      Alessandro Rubini authored
      Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
      4a05e2de
  24. 28 Mar, 2012 1 commit
    • Alessandro Rubini's avatar
      Rename PPTP to PPSi · 600a052f
      Alessandro Rubini authored
      This is a major patch, because header files are renamed, and
      the header directory with them. Still, no functional change is there.
      600a052f