Commit e49e3cb3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

For now substitute VSC_main for dstat. We will circle back to this

laster to get the memory/summing cost back down.
parent 44a35137
......@@ -119,6 +119,10 @@ struct vsb;
struct worker;
struct v1l;
struct VSC_main;
#define dstat VSC_main
#define DIGEST_LEN 32
/*--------------------------------------------------------------------*/
......
......@@ -55,12 +55,7 @@ pool_sumstat(const struct dstat *src)
{
Lck_AssertHeld(&wstat_mtx);
#define L0(n)
#define L1(n) (VSC_C_main->n += src->n)
#define VSC_FF(n,t,l,s,f,v,d,e) L##l(n);
#include "tbl/vsc_f_main.h"
#undef L0
#undef L1
VSC_main_Summ(VSC_C_main, src);
}
void
......
......@@ -31,18 +31,6 @@
#include "VSC_main.h"
/*--------------------------------------------------------------------*/
#define L0(t, n)
#define L1(t, n) t n;
#define VSC_FF(n,t,l,s,f,v,d,e) L##l(t, n)
struct dstat {
unsigned summs;
#include "tbl/vsc_f_main.h"
};
#undef L0
#undef L1
/* Prototypes etc ----------------------------------------------------*/
/* cache_acceptor.c */
......
......@@ -144,12 +144,7 @@ pool_addstat(struct dstat *dst, struct dstat *src)
{
dst->summs++;
#define L0(n)
#define L1(n) (dst->n += src->n)
#define VSC_FF(n,t,l,s,f,v,d,e) L##l(n);
#include "tbl/vsc_f_main.h"
#undef L0
#undef L1
VSC_main_Summ(dst, src);
memset(src, 0, sizeof *src);
}
......
......@@ -9,6 +9,9 @@
:oneliner: Main counters
:sumfunction:
.. varnish_vsc:: summs
:oneliner: stat summ operations
.. varnish_vsc:: uptime
:oneliner: Child process uptime
......
......@@ -33,6 +33,8 @@
/*lint -save -e525 -e539 */
VSC_FF(summs, uint64_t, 0, 'c', 'd', debug, "", "")
/*--------------------------------------------------------------------
* Globals, not related to traffic
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment