FD.io VPP  v18.07-rc0-415-g6c78436
Vector Packet Processing
stat_client.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2018 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 #ifndef __included_stat_client_h__
16 #define __included_stat_client_h__
17 
18 #include <vlib/vlib.h>
19 #include <vppinfra/socket.h>
20 #include <svm/ssvm.h>
21 #include <vpp/stats/stats.h>
22 
23 typedef struct
24 {
26 
27  /* Cached pointers to scalar quantities, these wont change */
32 
33  volatile int segment_ready;
34 
35  /*
36  * Cached pointers to vector quantities,
37  * MUST invalidate when the epoch changes
38  */
42 
45 
46  /* mapped stats segment object */
48 
49  /* Spinlock for the stats segment */
51 
54 
56 
57 #endif /* __included_stat_client_h__ */
58 
59 
60 /*
61  * fd.io coding-style-patch-verification: ON
62  *
63  * Local Variables:
64  * eval: (c-set-style "gnu")
65  * End:
66  */
u64 source_address_match_error_index
Definition: stat_client.h:44
unsigned long u64
Definition: types.h:89
Combined counter to hold both packets and byte differences.
Definition: counter.h:140
unsigned char u8
Definition: types.h:56
double f64
Definition: types.h:142
clib_spinlock_t * stat_segment_lockp
Definition: stat_client.h:50
volatile int segment_ready
Definition: stat_client.h:33
ssvm_private_t stat_segment
Definition: stat_client.h:47
vlib_counter_t ** intfc_rx_counters
Definition: stat_client.h:39
u64 * thread_0_error_counts
Definition: stat_client.h:43
stat_client_main_t stat_client_main
Definition: stat_client.c:22
vlib_counter_t ** intfc_tx_counters
Definition: stat_client.h:40
f64 * last_runtime_stats_clear_ptr
Definition: stat_client.h:31