Signed-off-by: Anders Selhammer <anders.selham...@est.tech>
---
 clock.c     | 2 ++
 config.c    | 1 +
 default.cfg | 1 +
 gPTP.cfg    | 1 +
 ptp4l.8     | 9 +++++++++
 5 files changed, 14 insertions(+)

diff --git a/clock.c b/clock.c
index 37959e7..78a93fc 100644
--- a/clock.c
+++ b/clock.c
@@ -1087,6 +1087,8 @@ struct clock *clock_create(enum clock_type type, struct 
config *config,
        c->kernel_leap = config_get_int(config, NULL, "kernel_leap");
        c->utc_offset = config_get_int(config, NULL, "utc_offset");
        c->time_source = config_get_int(config, NULL, "timeSource");
+       c->performance_monitoring =
+               config_get_int(config, NULL, "performance_monitoring");
 
        if (c->free_running) {
                c->clkid = CLOCK_INVALID;
diff --git a/config.c b/config.c
index 320cc1b..292911e 100644
--- a/config.c
+++ b/config.c
@@ -213,6 +213,7 @@ struct config_item config_tab[] = {
        GLOB_ITEM_INT("ntpshm_segment", 0, INT_MIN, INT_MAX),
        GLOB_ITEM_INT("offsetScaledLogVariance", 0xffff, 0, UINT16_MAX),
        PORT_ITEM_INT("path_trace_enabled", 0, 0, 1),
+       GLOB_ITEM_INT("performance_monitoring", 0, 0, 1),
        GLOB_ITEM_DBL("pi_integral_const", 0.0, 0.0, DBL_MAX),
        GLOB_ITEM_DBL("pi_integral_exponent", 0.4, -DBL_MAX, DBL_MAX),
        GLOB_ITEM_DBL("pi_integral_norm_max", 0.3, DBL_MIN, 2.0),
diff --git a/default.cfg b/default.cfg
index e76aeae..8a44cf9 100644
--- a/default.cfg
+++ b/default.cfg
@@ -36,6 +36,7 @@ path_trace_enabled    0
 follow_up_info         0
 hybrid_e2e             0
 net_sync_monitor       0
+performance_monitoring 0
 tx_timestamp_timeout   1
 use_syslog             1
 verbose                        0
diff --git a/gPTP.cfg b/gPTP.cfg
index 1e7a33e..83ebb9a 100644
--- a/gPTP.cfg
+++ b/gPTP.cfg
@@ -34,6 +34,7 @@ path_trace_enabled    1
 follow_up_info         1
 hybrid_e2e             0
 net_sync_monitor       0
+performance_monitoring 0
 tx_timestamp_timeout   1
 use_syslog             1
 verbose                        0
diff --git a/ptp4l.8 b/ptp4l.8
index 950e07c..b097d42 100644
--- a/ptp4l.8
+++ b/ptp4l.8
@@ -229,6 +229,15 @@ time stamps in the message to estimate the node's offset.  
This option
 requires that the 'hybrid_e2e' option be enabled as well.
 The default is 0 (disabled).
 .TP
+.B performance_monitoring
+Enables Performance monitoring (PM). The purpose of monitoring is to
+visulize how the PTP timestamps change over time in the network. The
+monitoring will be made in 15 minutes and 24 hour cycles. Statistics
+for the last completed and the current 24 hour cycle will be stored in
+a recordlist along with the statistics for the last 96 15 minutes
+cycles.
+The default is 0 (disabled).
+.TP
 .B ptp_dst_mac
 The MAC address to which PTP messages should be sent.
 Relevant only with L2 transport. The default is 01:1B:19:00:00:00.
-- 
1.8.3.1


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to