Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
b124cf41
Commit
b124cf41
authored
Jun 19, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename struct VSM_fantom to vsm_fantom to be consistent with the
naming pattern which has evolved.
parent
66d17321
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
30 deletions
+30
-30
varnishadm.c
bin/varnishadm/varnishadm.c
+1
-1
varnishstat_curses.c
bin/varnishstat/varnishstat_curses.c
+2
-2
vtc_varnish.c
bin/varnishtest/vtc_varnish.c
+1
-1
vsc.h
include/vapi/vsc.h
+3
-3
vsm.h
include/vapi/vsm.h
+9
-9
vsc.c
lib/libvarnishapi/vsc.c
+4
-4
vsl_cursor.c
lib/libvarnishapi/vsl_cursor.c
+2
-2
vsm.c
lib/libvarnishapi/vsm.c
+8
-8
No files found.
bin/varnishadm/varnishadm.c
View file @
b124cf41
...
...
@@ -396,7 +396,7 @@ n_arg_sock(const char *n_arg)
struct
vsm
*
vsm
;
char
*
p
;
int
sock
;
struct
VSM
_fantom
vt
;
struct
vsm
_fantom
vt
;
vsm
=
VSM_New
();
AN
(
vsm
);
...
...
bin/varnishstat/varnishstat_curses.c
View file @
b124cf41
...
...
@@ -313,7 +313,7 @@ build_pt_list_cb(void *priv, const struct VSC_point *vpt)
}
static
void
build_pt_list
(
struct
vsm
*
vd
,
struct
VSM
_fantom
*
fantom
)
build_pt_list
(
struct
vsm
*
vd
,
struct
vsm
_fantom
*
fantom
)
{
struct
pt_priv
pt_priv
;
int
i
;
...
...
@@ -1050,7 +1050,7 @@ do_curses(struct vsm *vd, double delay)
long
t
;
int
ch
;
double
now
;
struct
VSM
_fantom
f_iter
=
VSM_FANTOM_NULL
;
struct
vsm
_fantom
f_iter
=
VSM_FANTOM_NULL
;
interval
=
delay
;
...
...
bin/varnishtest/vtc_varnish.c
View file @
b124cf41
...
...
@@ -77,7 +77,7 @@ struct varnish {
char
*
proto
;
struct
vsm
*
vd
;
/* vsc use */
struct
VSM
_fantom
mgt_arg_i
;
struct
vsm
_fantom
mgt_arg_i
;
unsigned
vsl_tag_count
[
256
];
...
...
include/vapi/vsc.h
View file @
b124cf41
...
...
@@ -38,7 +38,7 @@
#include "vapi/vsc_int.h"
struct
vsm
;
struct
VSM
_fantom
;
struct
vsm
_fantom
;
/*---------------------------------------------------------------------
* VSC level access functions
...
...
@@ -80,13 +80,13 @@ void VSC_Destroy_Point(struct VSC_point **);
typedef
int
VSC_iter_f
(
void
*
priv
,
const
struct
VSC_point
*
const
pt
);
int
VSC_Iter
(
struct
vsm
*
vd
,
struct
VSM
_fantom
*
fantom
,
VSC_iter_f
*
func
,
int
VSC_Iter
(
struct
vsm
*
vd
,
struct
vsm
_fantom
*
fantom
,
VSC_iter_f
*
func
,
void
*
priv
);
/*
* Iterate over all statistics counters, calling "func" for
* each counter not suppressed by any "-f" arguments.
*
* fantom points to a struct
VSM
_fantom. If non-NULL, it can be
* fantom points to a struct
vsm
_fantom. If non-NULL, it can be
* used with VSM_StillValid to check the validity of the points
* returned.
*
...
...
include/vapi/vsm.h
View file @
b124cf41
...
...
@@ -43,7 +43,7 @@ struct vsm;
* This structure is used to reference a VSM chunk
*/
struct
VSM
_fantom
{
struct
vsm
_fantom
{
struct
VSM_chunk
*
chunk
;
void
*
b
;
/* first byte of payload */
void
*
e
;
/* first byte past payload */
...
...
@@ -142,19 +142,19 @@ void VSM_Close(struct vsm *vd);
*/
void
VSM__iter0
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
);
int
VSM__itern
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
);
void
VSM__iter0
(
const
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
);
int
VSM__itern
(
const
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
);
#define VSM_FOREACH(vf, vd) \
for (VSM__iter0((vd), (vf)); VSM__itern((vd), (vf));)
/*
* Iterate over all chunks in shared memory
* vf = "struct
VSM
_fantom *"
* vf = "struct
vsm
_fantom *"
* vd = "struct vsm *"
*/
int
VSM_Map
(
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
);
int
VSM_Unmap
(
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
);
int
VSM_Map
(
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
);
int
VSM_Unmap
(
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
);
struct
vsm_valid
{
const
char
*
name
;
...
...
@@ -165,9 +165,9 @@ extern const struct vsm_valid VSM_valid[];
extern
const
struct
vsm_valid
VSM_similar
[];
const
struct
vsm_valid
*
VSM_StillValid
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
);
struct
vsm
_fantom
*
vf
);
/*
* Check the validity of a previously looked up
VSM
_fantom.
* Check the validity of a previously looked up
vsm
_fantom.
*
* VSM_invalid means that the SHM chunk this fantom points to does
* not exist in the log file any longer. Using the fantom's
...
...
@@ -196,7 +196,7 @@ const struct vsm_valid *VSM_StillValid(const struct vsm *vd,
* VSM_similar: a fantom with same dimensions exist in same position.
*/
int
VSM_Get
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
,
int
VSM_Get
(
const
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
,
const
char
*
class
,
const
char
*
ident
);
/*
* Find a chunk, produce fantom for it.
...
...
lib/libvarnishapi/vsc.c
View file @
b124cf41
...
...
@@ -228,7 +228,7 @@ vsc_filter(struct vsm *vd, const char *nm)
*/
static
int
vsc_iter_elem
(
struct
vsm
*
vd
,
const
struct
VSM
_fantom
*
fantom
,
vsc_iter_elem
(
struct
vsm
*
vd
,
const
struct
vsm
_fantom
*
fantom
,
const
struct
vjsn_val
*
vv
,
struct
vsb
*
vsb
,
VSC_iter_f
*
func
,
void
*
priv
)
{
struct
VSC_point
point
;
...
...
@@ -304,7 +304,7 @@ vsc_iter_elem(struct vsm *vd, const struct VSM_fantom *fantom,
}
static
int
vsc_iter_fantom
(
struct
vsm
*
vd
,
const
struct
VSM
_fantom
*
fantom
,
vsc_iter_fantom
(
struct
vsm
*
vd
,
const
struct
vsm
_fantom
*
fantom
,
struct
vsb
*
vsb
,
VSC_iter_f
*
func
,
void
*
priv
)
{
int
i
=
0
;
...
...
@@ -336,10 +336,10 @@ vsc_iter_fantom(struct vsm *vd, const struct VSM_fantom *fantom,
*/
int
VSC_Iter
(
struct
vsm
*
vd
,
struct
VSM
_fantom
*
fantom
,
VSC_iter_f
*
func
,
VSC_Iter
(
struct
vsm
*
vd
,
struct
vsm
_fantom
*
fantom
,
VSC_iter_f
*
func
,
void
*
priv
)
{
struct
VSM
_fantom
ifantom
;
struct
vsm
_fantom
ifantom
;
uint64_t
u
;
int
i
=
0
;
struct
vsb
*
vsb
;
...
...
lib/libvarnishapi/vsl_cursor.c
View file @
b124cf41
...
...
@@ -64,7 +64,7 @@ struct vslc_vsm {
unsigned
options
;
struct
vsm
*
vsm
;
struct
VSM
_fantom
vf
;
struct
vsm
_fantom
vf
;
const
struct
VSL_head
*
head
;
const
uint32_t
*
end
;
...
...
@@ -241,7 +241,7 @@ struct VSL_cursor *
VSL_CursorVSM
(
struct
VSL_data
*
vsl
,
struct
vsm
*
vsm
,
unsigned
options
)
{
struct
vslc_vsm
*
c
;
struct
VSM
_fantom
vf
;
struct
vsm
_fantom
vf
;
struct
VSL_head
*
head
;
int
i
;
...
...
lib/libvarnishapi/vsm.c
View file @
b124cf41
...
...
@@ -205,7 +205,7 @@ VSM_n_Arg(struct vsm *vd, const char *arg)
const
char
*
VSM_Name
(
const
struct
vsm
*
vd
)
{
struct
VSM
_fantom
vt
;
struct
vsm
_fantom
vt
;
CHECK_OBJ_NOTNULL
(
vd
,
VSM_MAGIC
);
if
(
VSM_Get
(
vd
,
&
vt
,
"Arg"
,
"-i"
))
...
...
@@ -386,7 +386,7 @@ VSM_Abandoned(struct vsm *vd)
/*--------------------------------------------------------------------*/
void
VSM__iter0
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
)
VSM__iter0
(
const
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
)
{
CHECK_OBJ_NOTNULL
(
vd
,
VSM_MAGIC
);
...
...
@@ -396,7 +396,7 @@ VSM__iter0(const struct vsm *vd, struct VSM_fantom *vf)
}
int
VSM__itern
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
)
VSM__itern
(
const
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
)
{
struct
VSM_chunk
*
c
=
NULL
;
...
...
@@ -448,7 +448,7 @@ VSM__itern(const struct vsm *vd, struct VSM_fantom *vf)
/*--------------------------------------------------------------------*/
int
VSM_Map
(
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
)
VSM_Map
(
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
)
{
CHECK_OBJ_NOTNULL
(
vd
,
VSM_MAGIC
);
...
...
@@ -460,7 +460,7 @@ VSM_Map(struct vsm *vd, struct VSM_fantom *vf)
/*--------------------------------------------------------------------*/
int
VSM_Unmap
(
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
)
VSM_Unmap
(
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
)
{
CHECK_OBJ_NOTNULL
(
vd
,
VSM_MAGIC
);
...
...
@@ -472,9 +472,9 @@ VSM_Unmap(struct vsm *vd, struct VSM_fantom *vf)
/*--------------------------------------------------------------------*/
const
struct
vsm_valid
*
VSM_StillValid
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
)
VSM_StillValid
(
const
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
)
{
struct
VSM
_fantom
f2
;
struct
vsm
_fantom
f2
;
CHECK_OBJ_NOTNULL
(
vd
,
VSM_MAGIC
);
AN
(
vf
);
...
...
@@ -502,7 +502,7 @@ VSM_StillValid(const struct vsm *vd, struct VSM_fantom *vf)
}
int
VSM_Get
(
const
struct
vsm
*
vd
,
struct
VSM
_fantom
*
vf
,
VSM_Get
(
const
struct
vsm
*
vd
,
struct
vsm
_fantom
*
vf
,
const
char
*
class
,
const
char
*
ident
)
{
...
...
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