1. 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
  2. 19 Mar, 2013 1 commit
  3. 14 Mar, 2013 8 commits
  4. 12 Mar, 2013 1 commit
  5. 01 Mar, 2013 2 commits
  6. 27 Feb, 2013 1 commit
  7. 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
  8. 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
  9. 09 Mar, 2012 2 commits
  10. 03 Mar, 2012 2 commits