stats: add boot time in stats segment 28/37728/4
authorOle Troan <ot@cisco.com>
Mon, 28 Nov 2022 12:13:24 +0000 (13:13 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 30 Nov 2022 11:55:44 +0000 (11:55 +0000)
commit5010bbd3c44d9fb061818be7a291a474608f510a
tree6740b042efc5eb08425915d9aa0e672beca412a3
parente1f2058b548fe478c6dbfd450c343912cebb9740
stats: add boot time in stats segment

Write time into /sys/boottime on VPP start.
This allows a stateless control plane agent to validate if it's reconnecting to the same
VPP instance.

Type: improvement
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: Iba7f334339c46142045e43da6efab11612e7b9c0
Signed-off-by: Ole Troan <ot@cisco.com>
src/vlib/stats/collector.c
src/vlib/stats/stats.h