Code Coverage: vinyl-cache/lib/libvsc/VSC_main.h
 
82217aa4fc7094b3610340078afaf78cd95a8ec9
 
0
/*
1
 * NB:  This file is machine generated, DO NOT EDIT!
2
 *
3
 * Edit main.vsc and run lib/libvsc/vsctool.py instead.
4
 */
5
6
struct VSC_main {
7
        uint64_t        summs;                                  /* wrk */
8
        uint64_t        uptime;
9
        uint64_t        sess_conn;                              /* wrk */
10
        uint64_t        sess_fail;                              /* wrk */
11
        uint64_t        sess_fail_econnaborted;                 /* wrk */
12
        uint64_t        sess_fail_eintr;                        /* wrk */
13
        uint64_t        sess_fail_emfile;                       /* wrk */
14
        uint64_t        sess_fail_ebadf;                        /* wrk */
15
        uint64_t        sess_fail_enomem;                       /* wrk */
16
        uint64_t        sess_fail_other;                        /* wrk */
17
        uint64_t        client_req_400;                         /* wrk */
18
        uint64_t        client_req_417;                         /* wrk */
19
        uint64_t        client_req;                             /* wrk */
20
        uint64_t        esi_req;                                /* wrk */
21
        uint64_t        cache_hit;                              /* wrk */
22
        uint64_t        cache_hit_grace;                        /* wrk */
23
        uint64_t        cache_hitpass;                          /* wrk */
24
        uint64_t        cache_hitmiss;                          /* wrk */
25
        uint64_t        cache_miss;                             /* wrk */
26
        uint64_t        beresp_uncacheable;                     /* wrk */
27
        uint64_t        beresp_shortlived;                      /* wrk */
28
        uint64_t        backend_conn;
29
        uint64_t        backend_unhealthy;
30
        uint64_t        backend_busy;
31
        uint64_t        backend_fail;
32
        uint64_t        backend_reuse;
33
        uint64_t        backend_recycle;
34
        uint64_t        backend_retry;
35
        uint64_t        backend_wait;
36
        uint64_t        backend_wait_fail;
37
        uint64_t        backend_closed;                         /* wrk */
38
        uint64_t        backend_closed_err;
39
        uint64_t        bc_rem_close;
40
        uint64_t        bc_req_close;
41
        uint64_t        bc_req_http10;
42
        uint64_t        bc_rx_bad;
43
        uint64_t        bc_rx_body;
44
        uint64_t        bc_rx_junk;
45
        uint64_t        bc_rx_overflow;
46
        uint64_t        bc_rx_timeout;
47
        uint64_t        bc_tx_proxy;
48
        uint64_t        bc_tx_pipe;
49
        uint64_t        bc_tx_error;
50
        uint64_t        bc_tx_eof;
51
        uint64_t        bc_resp_close;
52
        uint64_t        bc_overload;
53
        uint64_t        fetch_head;                             /* wrk */
54
        uint64_t        fetch_length;                           /* wrk */
55
        uint64_t        fetch_chunked;                          /* wrk */
56
        uint64_t        fetch_eof;                              /* wrk */
57
        uint64_t        fetch_bad;                              /* wrk */
58
        uint64_t        fetch_none;                             /* wrk */
59
        uint64_t        fetch_1xx;                              /* wrk */
60
        uint64_t        fetch_204;                              /* wrk */
61
        uint64_t        fetch_304;                              /* wrk */
62
        uint64_t        fetch_failed;                           /* wrk */
63
        uint64_t        bgfetch_no_thread;                      /* wrk */
64
        uint64_t        pools;
65
        uint64_t        threads;
66
        uint64_t        threads_limited;
67
        uint64_t        threads_created;
68
        uint64_t        threads_destroyed;
69
        uint64_t        threads_failed;
70
        uint64_t        thread_queue_len;
71
        uint64_t        busy_sleep;                             /* wrk */
72
        uint64_t        busy_wakeup;                            /* wrk */
73
        uint64_t        busy_killed;
74
        uint64_t        sess_queued;                            /* pool */
75
        uint64_t        sess_dropped;                           /* pool */
76
        uint64_t        req_dropped;                            /* pool */
77
        uint64_t        req_reset;                              /* wrk */
78
        uint64_t        n_object;                               /* wrk */
79
        uint64_t        n_vampireobject;                        /* wrk */
80
        uint64_t        n_objectcore;                           /* wrk */
81
        uint64_t        n_objecthead;                           /* wrk */
82
        uint64_t        n_backend;
83
        uint64_t        n_expired;
84
        uint64_t        n_superseded;
85
        uint64_t        n_lru_nuked;
86
        uint64_t        n_lru_moved;
87
        uint64_t        n_lru_limited;
88
        uint64_t        losthdr;
89
        uint64_t        s_sess;                                 /* wrk */
90
        uint64_t        n_pipe;
91
        uint64_t        pipe_limited;                           /* wrk */
92
        uint64_t        s_pipe;                                 /* wrk */
93
        uint64_t        s_pass;                                 /* wrk */
94
        uint64_t        s_fetch;                                /* wrk */
95
        uint64_t        s_bgfetch;                              /* wrk */
96
        uint64_t        s_synth;                                /* wrk */
97
        uint64_t        s_req_hdrbytes;                         /* wrk */
98
        uint64_t        s_req_bodybytes;                        /* wrk */
99
        uint64_t        s_resp_hdrbytes;                        /* wrk */
100
        uint64_t        s_resp_bodybytes;                       /* wrk */
101
        uint64_t        s_pipe_hdrbytes;                        /* wrk */
102
        uint64_t        s_pipe_in;                              /* wrk */
103
        uint64_t        s_pipe_out;                             /* wrk */
104
        uint64_t        transit_stored;                         /* wrk */
105
        uint64_t        transit_buffered;                       /* wrk */
106
        uint64_t        sess_closed;                            /* wrk */
107
        uint64_t        sess_closed_err;
108
        uint64_t        sess_readahead;                         /* wrk */
109
        uint64_t        sess_herd;                              /* wrk */
110
        uint64_t        sc_rem_close;
111
        uint64_t        sc_req_close;
112
        uint64_t        sc_req_http10;
113
        uint64_t        sc_rx_bad;
114
        uint64_t        sc_rx_body;
115
        uint64_t        sc_rx_junk;
116
        uint64_t        sc_rx_overflow;
117
        uint64_t        sc_rx_timeout;
118
        uint64_t        sc_rx_close_idle;
119
        uint64_t        sc_tx_pipe;
120
        uint64_t        sc_tx_error;
121
        uint64_t        sc_tx_eof;
122
        uint64_t        sc_resp_close;
123
        uint64_t        sc_overload;
124
        uint64_t        sc_pipe_overflow;
125
        uint64_t        sc_range_short;
126
        uint64_t        sc_req_http20;
127
        uint64_t        sc_vcl_failure;
128
        uint64_t        sc_rapid_reset;
129
        uint64_t        sc_bankrupt;
130
        uint64_t        client_resp_500;                        /* wrk */
131
        uint64_t        ws_backend_overflow;                    /* wrk */
132
        uint64_t        ws_client_overflow;                     /* wrk */
133
        uint64_t        ws_thread_overflow;                     /* wrk */
134
        uint64_t        ws_session_overflow;
135
        uint64_t        shm_records;
136
        uint64_t        shm_writes;
137
        uint64_t        shm_flushes;
138
        uint64_t        shm_cont;
139
        uint64_t        shm_cycles;
140
        uint64_t        shm_bytes;
141
        uint64_t        backend_req;
142
        uint64_t        n_vcl;
143
        uint64_t        n_vcl_avail;
144
        uint64_t        n_vcl_discard;
145
        uint64_t        vcl_fail;                               /* wrk */
146
        uint64_t        bans;                                   /* ban_mtx */
147
        uint64_t        bans_completed;                         /* ban_mtx */
148
        uint64_t        bans_obj;                               /* ban_mtx */
149
        uint64_t        bans_req;                               /* ban_mtx */
150
        uint64_t        bans_added;                             /* ban_mtx */
151
        uint64_t        bans_deleted;                           /* ban_mtx */
152
        uint64_t        bans_tested;                            /* ban_mtx */
153
        uint64_t        bans_obj_killed;                        /* ban_mtx */
154
        uint64_t        bans_lurker_tested;                     /* ban_mtx */
155
        uint64_t        bans_tests_tested;                      /* ban_mtx */
156
        uint64_t        bans_lurker_tests_tested;               /* ban_mtx */
157
        uint64_t        bans_lurker_obj_killed;                 /* ban_mtx */
158
        uint64_t        bans_lurker_obj_killed_cutoff;          /* ban_mtx */
159
        uint64_t        bans_dups;                              /* ban_mtx */
160
        uint64_t        bans_lurker_contention;                 /* ban_mtx */
161
        uint64_t        bans_persisted_bytes;                   /* ban_mtx */
162
        uint64_t        bans_persisted_fragmentation;           /* ban_mtx */
163
        uint64_t        n_purges;
164
        uint64_t        n_obj_purged;
165
        uint64_t        exp_mailed;
166
        uint64_t        exp_received;
167
        uint64_t        hcb_nolock;                             /* wrk */
168
        uint64_t        hcb_lock;
169
        uint64_t        hcb_insert;
170
        uint64_t        esi_errors;
171
        uint64_t        esi_warnings;
172
        uint64_t        vmods;
173
        uint64_t        n_gzip;
174
        uint64_t        n_gunzip;
175
        uint64_t        n_test_gunzip;
176
        uint64_t        http1_iovs_flush;
177
        uint64_t        http1_absolute_form;
178
};
179
180
struct VSC_main_ban_mtx {
181
        uint64_t        bans;
182
        uint64_t        bans_completed;
183
        uint64_t        bans_obj;
184
        uint64_t        bans_req;
185
        uint64_t        bans_added;
186
        uint64_t        bans_deleted;
187
        uint64_t        bans_tested;
188
        uint64_t        bans_obj_killed;
189
        uint64_t        bans_lurker_tested;
190
        uint64_t        bans_tests_tested;
191
        uint64_t        bans_lurker_tests_tested;
192
        uint64_t        bans_lurker_obj_killed;
193
        uint64_t        bans_lurker_obj_killed_cutoff;
194
        uint64_t        bans_dups;
195
        uint64_t        bans_lurker_contention;
196
        uint64_t        bans_persisted_bytes;
197
        uint64_t        bans_persisted_fragmentation;
198
};
199
200
struct VSC_main_pool {
201
        uint64_t        sess_queued;
202
        uint64_t        sess_dropped;
203
        uint64_t        req_dropped;
204
};
205
206
struct VSC_main_wrk {
207
        uint64_t        summs;
208
        uint64_t        sess_conn;
209
        uint64_t        sess_fail;
210
        uint64_t        sess_fail_econnaborted;
211
        uint64_t        sess_fail_eintr;
212
        uint64_t        sess_fail_emfile;
213
        uint64_t        sess_fail_ebadf;
214
        uint64_t        sess_fail_enomem;
215
        uint64_t        sess_fail_other;
216
        uint64_t        client_req_400;
217
        uint64_t        client_req_417;
218
        uint64_t        client_req;
219
        uint64_t        esi_req;
220
        uint64_t        cache_hit;
221
        uint64_t        cache_hit_grace;
222
        uint64_t        cache_hitpass;
223
        uint64_t        cache_hitmiss;
224
        uint64_t        cache_miss;
225
        uint64_t        beresp_uncacheable;
226
        uint64_t        beresp_shortlived;
227
        uint64_t        backend_closed;
228
        uint64_t        fetch_head;
229
        uint64_t        fetch_length;
230
        uint64_t        fetch_chunked;
231
        uint64_t        fetch_eof;
232
        uint64_t        fetch_bad;
233
        uint64_t        fetch_none;
234
        uint64_t        fetch_1xx;
235
        uint64_t        fetch_204;
236
        uint64_t        fetch_304;
237
        uint64_t        fetch_failed;
238
        uint64_t        bgfetch_no_thread;
239
        uint64_t        busy_sleep;
240
        uint64_t        busy_wakeup;
241
        uint64_t        req_reset;
242
        uint64_t        n_object;
243
        uint64_t        n_vampireobject;
244
        uint64_t        n_objectcore;
245
        uint64_t        n_objecthead;
246
        uint64_t        s_sess;
247
        uint64_t        pipe_limited;
248
        uint64_t        s_pipe;
249
        uint64_t        s_pass;
250
        uint64_t        s_fetch;
251
        uint64_t        s_bgfetch;
252
        uint64_t        s_synth;
253
        uint64_t        s_req_hdrbytes;
254
        uint64_t        s_req_bodybytes;
255
        uint64_t        s_resp_hdrbytes;
256
        uint64_t        s_resp_bodybytes;
257
        uint64_t        s_pipe_hdrbytes;
258
        uint64_t        s_pipe_in;
259
        uint64_t        s_pipe_out;
260
        uint64_t        transit_stored;
261
        uint64_t        transit_buffered;
262
        uint64_t        sess_closed;
263
        uint64_t        sess_readahead;
264
        uint64_t        sess_herd;
265
        uint64_t        client_resp_500;
266
        uint64_t        ws_backend_overflow;
267
        uint64_t        ws_client_overflow;
268
        uint64_t        ws_thread_overflow;
269
        uint64_t        vcl_fail;
270
        uint64_t        hcb_nolock;
271
};
272
273 1026
#define VSC_main_size PRNDUP(sizeof(struct VSC_main))
274
275
struct vsmw_cluster;
276
struct vsc_seg;
277
278
struct VSC_main *VSC_main_New(struct vsmw_cluster *,
279
    struct vsc_seg **, const char *fmt, ...);
280
void VSC_main_Destroy(struct vsc_seg **);
281
void VSC_main_Summ_wrk_wrk(struct VSC_main_wrk *, const struct VSC_main_wrk *);
282
void VSC_main_Summ_wrk(struct VSC_main *, const struct VSC_main_wrk *);
283
void VSC_main_Summ_pool(struct VSC_main *, const struct VSC_main_pool *);