STATS: Separate socket for fd exchange.
[vpp.git] / src / vpp / app / stat_client.h
index 9cec1ee..97bd3f9 100644 (file)
 #include <vlib/vlib.h>
 #include <vppinfra/socket.h>
 #include <svm/ssvm.h>
-#include <vlibapi/api.h>
-#include <vlibmemory/api.h>
-#include <vlibmemory/socket_api.h>
-#include <vlibmemory/socket_client.h>
 #include <vpp/stats/stats.h>
 
 typedef struct
@@ -31,6 +27,8 @@ typedef struct
   /* Cached pointers to scalar quantities, these wont change */
   f64 *vector_rate_ptr;
   f64 *input_rate_ptr;
+  f64 *last_runtime_ptr;
+  f64 *last_runtime_stats_clear_ptr;
 
   volatile int segment_ready;
 
@@ -40,6 +38,7 @@ typedef struct
    */
   vlib_counter_t **intfc_rx_counters;
   vlib_counter_t **intfc_tx_counters;
+  u8 *serialized_nodes;
 
   u64 *thread_0_error_counts;
   u64 source_address_match_error_index;
@@ -47,9 +46,6 @@ typedef struct
   /* mapped stats segment object */
   ssvm_private_t stat_segment;
 
-  /* Socket client object */
-  socket_client_main_t *socket_client_main;
-
   /* Spinlock for the stats segment */
   clib_spinlock_t *stat_segment_lockp;