summaryrefslogtreecommitdiffstats
path: root/vpp/stats/stats.h
diff options
context:
space:
mode:
Diffstat (limited to 'vpp/stats/stats.h')
-rw-r--r--vpp/stats/stats.h67
1 files changed, 39 insertions, 28 deletions
diff --git a/vpp/stats/stats.h b/vpp/stats/stats.h
index d6046a428b7..d6b4724a58c 100644
--- a/vpp/stats/stats.h
+++ b/vpp/stats/stats.h
@@ -25,46 +25,57 @@
#include <vlibmemory/api.h>
#include <vlibmemory/unix_shared_memory_queue.h>
-typedef struct {
- u32 client_index; /* in memclnt registration pool */
- u32 client_pid;
+typedef struct
+{
+ u32 client_index; /* in memclnt registration pool */
+ u32 client_pid;
} vpe_client_registration_t;
-typedef struct {
- volatile u32 lock;
- volatile u32 release_hint;
- u32 thread_id;
- u32 count;
- int tag;
+typedef struct
+{
+ volatile u32 lock;
+ volatile u32 release_hint;
+ u32 thread_id;
+ u32 count;
+ int tag;
} data_structure_lock_t;
-typedef struct {
- void *mheap;
- pthread_t thread_self;
- pthread_t thread_handle;
+typedef struct
+{
+ void *mheap;
+ pthread_t thread_self;
+ pthread_t thread_handle;
- u32 stats_poll_interval_in_seconds;
- u32 enable_poller;
+ u32 stats_poll_interval_in_seconds;
+ u32 enable_poller;
- uword *stats_registration_hash;
- vpe_client_registration_t *stats_registrations;
+ uword *stats_registration_hash;
+ vpe_client_registration_t *stats_registrations;
- /* control-plane data structure lock */
- data_structure_lock_t * data_structure_lock;
+ /* control-plane data structure lock */
+ data_structure_lock_t *data_structure_lock;
- /* bail out of FIB walk if set */
- clib_longjmp_t jmp_buf;
+ /* bail out of FIB walk if set */
+ clib_longjmp_t jmp_buf;
- /* convenience */
- vlib_main_t * vlib_main;
- vnet_main_t * vnet_main;
- vnet_interface_main_t * interface_main;
- api_main_t * api_main;
+ /* convenience */
+ vlib_main_t *vlib_main;
+ vnet_main_t *vnet_main;
+ vnet_interface_main_t *interface_main;
+ api_main_t *api_main;
} stats_main_t;
stats_main_t stats_main;
-void dslock (stats_main_t *sm, int release_hint, int tag);
-void dsunlock (stats_main_t *sm);
+void dslock (stats_main_t * sm, int release_hint, int tag);
+void dsunlock (stats_main_t * sm);
#endif /* __included_stats_h__ */
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */