[LinuxPPS] ntpd

Folkert van Heusden folkert at vanheusden.com
Thu Aug 3 17:33:16 CEST 2006


> > keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/01/assert
> > 0.0 #0
> > but:
> > [43016931.120000] drivers/pps/pps.c: New message from PID 23071 (flags 0)
> > [43016931.120000] drivers/pps/pps.c: PPS_FETCH: source 1
> > keetweej:/usr/src/ntp-dev-4.2.1p255-RC# ps -deaf | grep 23071
> > root     23071     1  0 16:58 ?        00:00:00 ntpd
> There is something I don't understand. In some mail ago you showed
> some kernel messages where we can see that the PPS pulse is reaching
> the system but now you show us that in /proc/pps/01/assert yo have
> always 0!
> That's not possible.
> You you see "PPS assert/clear event at xxxx" into kernel messages you
> should see that file /proc/pps/01/assert changes its content and
> viceversa.

Well that is the situation!

Aug  3 17:31:17 keetweej kernel: [43017402.680000] drivers/pps/pps.c: New message from PID 23930 (flags 0)
Aug  3 17:31:17 keetweej kernel: [43017402.680000] drivers/pps/pps.c: PPS_FETCH: source 7
Aug  3 17:31:18 keetweej kernel: [43017403.680000] drivers/pps/pps.c: New message from PID 23930 (flags 0)
Aug  3 17:31:18 keetweej kernel: [43017403.680000] drivers/pps/pps.c: PPS_FETCH: source 7
Aug  3 17:31:19 keetweej kernel: [43017404.680000] drivers/pps/pps.c: New message from PID 23930 (flags 0)
Aug  3 17:31:19 keetweej kernel: [43017404.680000] drivers/pps/pps.c: PPS_FETCH: source 7
Aug  3 17:31:20 keetweej kernel: [43017405.680000] drivers/pps/pps.c: New message from PID 23930 (flags 0)
Aug  3 17:31:20 keetweej kernel: [43017405.680000] drivers/pps/pps.c: PPS_FETCH: source 7

keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/07/*
1154612886.4319000 #16733
1154612885.204319000 #16729
keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/07/*
1154612886.4319000 #16733
1154612885.204319000 #16729
keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/07/*
1154612886.4319000 #16733
1154612885.204319000 #16729
keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/07/*
1154612886.4319000 #16733
1154612885.204319000 #16729
keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/07/*
1154612886.4319000 #16733
1154612885.204319000 #16729
keetweej:/usr/src/ntp-dev-4.2.1p255-RC# cat /proc/pps/07/*
1154612886.4319000 #16733
1154612885.204319000 #16729

/proc/pps/X/*
where X < 7 are all 0 and stay 0
so I changed ntpd to:
time_pps_findsource(7, path, 40, id, 40);

IMPORTANT:
if I have time_pps_findsource(1, path, 40, id, 40);, /proc/pps/01/assert and clear STAY 0!!


Folkert van Heusden

-- 
www.vanheusden.com/multitail - multitail is tail on steroids. multiple
               windows, filtering, coloring, anything you can think of
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com



More information about the LinuxPPS mailing list