Re: [Linuxptp-devel] [PATCH] linuxptp: add phc_ctl program to help debug PHC devices
PTP IEEE 1588 stack for Linux
Brought to you by:
rcochran
From: Keller, J. E <jac...@in...> - 2014-06-25 22:33:33
|
> -----Original Message----- > From: Richard Cochran [mailto:ric...@gm...] > Sent: Tuesday, June 24, 2014 8:55 PM > To: Keller, Jacob E > Cc: lin...@li... > Subject: Re: [Linuxptp-devel] [PATCH] linuxptp: add phc_ctl program to > help debug PHC devices > > On Tue, Jun 24, 2014 at 05:06:08PM -0700, Jacob Keller wrote: > > This is an updated version of a script I wrote a couple years ago for > > debugging the PHC when writing a new driver. I figured that it might be > > handy for the LinuxPTP project to include, as it can give some insight > > into the PHC directly. I have updated it to make use of the shared code > > here, in order to reduce duplication. Hopefully this is of some use to > > everyone. > > I think this would be useful. The Linux testptp program does some of > the same things, but it is not very convenient to build. > > Can you write a man page, too? > Yes. I am also planning on adding hopefully every option that testptp has, since this would be a bit more convenient. I will write a manpage for this and send a v2. Thanks, Jake > > diff --git a/phc_ctl.c b/phc_ctl.c > > new file mode 100644 > > index 000000000000..ff90ce4dbf1b > > --- /dev/null > > +++ b/phc_ctl.c > > @@ -0,0 +1,536 @@ > > +/* > > + * @file phc2sys.c > > + * @brief Utility program to synchronize two clocks via a PPS. > > + * @note Copyright (C) 2012 Richard Cochran > <ric...@gm...> > > You should probably change these lines to reflect the new program. > Ah, yes, thanks. > Thanks, > Richard |