Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
40c0fef6
Commit
40c0fef6
authored
Nov 24, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split the main stats counters into their own file.
parent
6b84197e
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
366 additions
and
321 deletions
+366
-321
cache.h
bin/varnishd/cache/cache.h
+1
-3
cache_wrk.c
bin/varnishd/cache/cache_wrk.c
+1
-3
Makefile.am
include/Makefile.am
+1
-0
vsc_all.h
include/tbl/vsc_all.h
+1
-3
vsc_f_main.h
include/tbl/vsc_f_main.h
+361
-0
vsc_fields.h
include/tbl/vsc_fields.h
+0
-309
vsc2rst.c
man/vsc2rst.c
+1
-3
No files found.
bin/varnishd/cache/cache.h
View file @
40c0fef6
...
...
@@ -206,12 +206,10 @@ struct acct {
#define L0(t, n)
#define L1(t, n) t n;
#define VSC_F(n, t, l, f, e,d) L##l(t, n)
#define VSC_DO_MAIN
struct
dstat
{
#include "tbl/vsc_f
ields
.h"
#include "tbl/vsc_f
_main
.h"
};
#undef VSC_F
#undef VSC_DO_MAIN
#undef L0
#undef L1
...
...
bin/varnishd/cache/cache_wrk.c
View file @
40c0fef6
...
...
@@ -50,11 +50,9 @@ wrk_sumstat(struct worker *w)
Lck_AssertHeld
(
&
wstat_mtx
);
#define L0(n)
#define L1(n) (VSC_C_main->n += w->stats.n)
#define VSC_DO_MAIN
#define VSC_F(n, t, l, f, d, e) L##l(n);
#include "tbl/vsc_f
ields
.h"
#include "tbl/vsc_f
_main
.h"
#undef VSC_F
#undef VSC_DO_MAIN
#undef L0
#undef L1
memset
(
&
w
->
stats
,
0
,
sizeof
w
->
stats
);
...
...
include/Makefile.am
View file @
40c0fef6
...
...
@@ -15,6 +15,7 @@ pkginclude_HEADERS = \
tbl/vrt_stv_var.h
\
tbl/vsc_all.h
\
tbl/vsc_fields.h
\
tbl/vsc_f_main.h
\
tbl/vsl_tags.h
\
vapi/vsm.h
\
vapi/vsm_int.h
\
...
...
include/tbl/vsc_all.h
View file @
40c0fef6
...
...
@@ -36,9 +36,7 @@ VSC_DO(LCK, lck, VSC_TYPE_LCK)
VSC_DONE
(
LCK
,
lck
,
VSC_TYPE_LCK
)
VSC_DO
(
MAIN
,
main
,
VSC_TYPE_MAIN
)
#define VSC_DO_MAIN
#include "tbl/vsc_fields.h"
#undef VSC_DO_MAIN
#include "tbl/vsc_f_main.h"
VSC_DONE
(
MAIN
,
main
,
VSC_TYPE_MAIN
)
VSC_DO
(
SMA
,
sma
,
VSC_TYPE_SMA
)
...
...
include/tbl/vsc_f_main.h
0 → 100644
View file @
40c0fef6
This diff is collapsed.
Click to expand it.
include/tbl/vsc_fields.h
View file @
40c0fef6
This diff is collapsed.
Click to expand it.
man/vsc2rst.c
View file @
40c0fef6
...
...
@@ -28,9 +28,7 @@ int main(int argc, char **argv)
P
(
"MAIN COUNTERS"
);
P
(
"============="
);
P
(
""
);
#define VSC_DO_MAIN
#include "tbl/vsc_fields.h"
#undef VSC_DO_MAIN
#include "tbl/vsc_f_main.h"
P
(
""
);
P
(
"LOCK COUNTERS"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment