This series adds phc2sys configuration file support. Right now all the
command line options are supported. Like ptp4l, any existing command
line arguments supersede configuration file. Also, while the generic
options which appear to be simlar for both ptp4l and phc2sys are read
from [global], all options can be specified in [phc2sys] overriding
settings from [global] (but not the command line).

I didn't think the effort necessary to re-write the configuration such
that it was more generic was worth it. Thus, there is some level of code
duplication as phc2sys does not need the same configuration values as
ptp4l.

I did update the manuals, and have done some minor (compile and a few
run time checks) testing. However currently this series is more of an
RFC.

The intention is to enable additional non-command line options for
phc2sys. We could even deprecate several current phc2sys options which
are no longer necessary (similar to ptp4l which has many config options
but few command line parameters).

In addition this opens the door to bring several settings from ptp4l
into phc2sys (like the PI servo settings).

Jacob Keller (5):
  util: move some config code into util for sharing
  config: add phc2sys section ignored by ptp4l
  ptpl4.8: update ptp4l man page to indicate the phc2sys section
  config: add global options check function
  phc2sys: support reading the configuration file

 config.c  | 147 +++++++++++---------
 config.h  |   2 +
 makefile  |   2 +-
 phc2sys.8 | 174 +++++++++++++++++++++++-
 phc2sys.c | 454 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 ptp4l.8   |  21 ++-
 util.c    |  62 +++++++++
 util.h    |  43 ++++++
 8 files changed, 834 insertions(+), 71 deletions(-)

-- 
2.1.2.555.gfbecd99


------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to