]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - tools/test/ppsapi/README
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / tools / test / ppsapi / README
1 # $FreeBSD$
2
3 This is a small test program which I have had around since we wrote
4 the RFC 2783 API.
5
6 Options:
7         -a      capture assert flank
8         -c      capture clear flank
9         (if neither -a -c: capture all available flanks)
10         -A      output on assert flank
11         -C      output on clear flank
12         (if neither -A -C: output on all flanks)
13         -e      enable echo (all possible flanks)
14         -u      unbuffered output.
15         -v      verbose.
16
17 The output looks like:
18
19 # ./ppsapitest -C /dev/cuad4
20 1070915603 .703680117 119 1070915940 .902275676 121
21 1070915941 .703657317 120 1070915941 .902327516 122
22 1070915942 .703657077 121 1070915942 .902367957 123
23 1070915943 .703657557 122 1070915943 .902419077 124
24 1070915944 .703656717 123 1070915944 .902467197 125
25 1070915945 .703657077 124 1070915945 .902527078 126
26
27 Columns:
28
29         assert seconds (tv_sec)
30         assert nanoseconds (tv_nsec)
31         assert sequence number
32         clear seconds (tv_sec)
33         clear nanoseconds (tv_nsec)
34         clear sequence number
35
36 (If the -C option had not been specified, twice as many lines would
37 be output:
38
39 # ./ppsapitest /dev/cuad4
40 1070916432 .703624557 125 1070915945 .902527078 126
41 1070916432 .703624557 125 1070916432 .902303156 127
42 1070916433 .703624557 126 1070916432 .902303156 127
43 1070916433 .703624557 126 1070916433 .902348396 128
44 1070916434 .703625757 127 1070916433 .902348396 128
45 1070916434 .703625757 127 1070916434 .902396877 129
46 1070916435 .703623837 128 1070916434 .902396877 129
47 1070916435 .703623837 128 1070916435 .902444277 130
48