linuxptp: add phc_ctl program to help debug PHC devices
PATCH v4 1/1 linuxptp: add phc_ctl program to help debug PHC devices
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.
---
-v4
* fix manpage warnings and incorrect display
* add phc_ctl to .gitignore
.gitignore | 1 + makefile | 4 +- phc_ctl.8 | 108 ++++++++++++ phc_ctl.c | 561 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 673 insertions(+), 1 deletion(-) create mode 100644 phc_ctl.8 create mode 100644 phc_ctl.c
.gitignore +1 -0
@@ -5,3 +5,4 @@ /phc2sys /pmc /ptp4l +/phc_ctl
makefile +3 -1
@@ -22,7 +22,7 @@ CC = $(CROSS_COMPILE)gcc VER = -DVER=$(version) CFLAGS = -Wall $(VER) $(incdefs) $(DEBUG) $(EXTRA_CFLAGS) LDLIBS = -lm -lrt $(EXTRA_LDFLAGS) -PRG = ptp4l pmc phc2sys hwstamp_ctl +PRG = ptp4l pmc phc2sys hwstamp_ctl phc_ctl OBJ = bmc.o clock.o clockadj.o clockcheck.o config.o fault.o \ filter.o fsm.o linreg.o mave.o mmedian.o msg.o ntpshm.o phc.o \ pi.o port.o print.o ptp4l.o raw.o servo.o sk.o stats.o tlv.o \
@@ -54,6 +54,8 @@ phc2sys: clockadj.o clockcheck.o linreg.o msg.o ntpshm.o phc.o phc2sys.o pi.o \ hwstamp_ctl: hwstamp_ctl.o version.o +phc_ctl: phc_ctl.o phc.o sk.o util.o clockadj.o sysoff.o print.o version.o + version.o: .version version.sh $(filter-out version.d,$(DEPEND)) .version: force
phc_ctl.8 new file +108 -0
108 lines not on this page · raw message
phc_ctl.c new file +561 -0
561 lines not on this page · raw message
Signature · 1 line
2.0.1.475.g9b8d714
Quoted 1 line · Jacob Keller
This is an updated version of a script I wrote a couple years ago for
I suspect that this is not for us ;-)
Quoted 9 lines · Junio C Hamano
Quoted 1 line · Jacob Keller
This is an updated version of a script I wrote a couple years ago for
I suspect that this is not for us ;-)
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Indeed. This was intended for the LinuxPTP project, and I accidentally sent here.
Please just ignore these.
Thanks,
Jake