On Wed, Feb 24, 2021 at 02:31:21PM -0800, Kien Tran wrote: > Another way I was thinking was to create a circular buffer to contain the > 99 sets of data points and updating the pointer of the current head (every > 15 minutes) to the last entry in the circular buffer. > > Please let me know what you think, or if this is not the right place to be > asking these questions.
We already have TLV_PORT_STATS_NP. Just use that. If you _really_ want circular buffers, memory allocation, etc, please write your own monitor program that reads TLV_PORT_STATS_NP and converts the statistics into whatever form you like. But on this topic, the linuxptp approach is K.I.S.S. Thanks, Richard _______________________________________________ Linuxptp-devel mailing list Linuxptp-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxptp-devel