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
09e8a28b
Commit
09e8a28b
authored
Nov 20, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add an extra '_' to identify SLT__Bogus and SLT__Reserved as magic
parent
10590c10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
cache_shmlog.c
bin/varnishd/cache/cache_shmlog.c
+4
-3
mgt_param_bits.c
bin/varnishd/mgt/mgt_param_bits.c
+2
-2
vsl_int.h
include/vapi/vsl_int.h
+4
-4
No files found.
bin/varnishd/cache/cache_shmlog.c
View file @
09e8a28b
...
...
@@ -60,7 +60,8 @@ vsl_tag_is_masked(enum VSL_tag_e tag)
volatile
uint8_t
*
bm
=
&
cache_param
->
vsl_mask
[
0
];
uint8_t
b
;
assert
(
tag
<
SLT_Reserved
);
assert
(
tag
>
SLT__Bogus
);
assert
(
tag
<
SLT__Reserved
);
bm
+=
((
unsigned
)
tag
>>
3
);
b
=
(
0x80
>>
((
unsigned
)
tag
&
7
));
return
(
*
bm
&
b
);
...
...
@@ -75,8 +76,8 @@ vsl_hdr(enum VSL_tag_e tag, uint32_t *p, unsigned len, uint32_t vxid)
{
assert
(((
uintptr_t
)
p
&
0x3
)
==
0
);
assert
(
tag
>
SLT_Bogus
);
assert
(
tag
<
SLT_Reserved
);
assert
(
tag
>
SLT_
_
Bogus
);
assert
(
tag
<
SLT_
_
Reserved
);
AZ
(
len
&
~
VSL_LENMASK
);
p
[
1
]
=
vxid
;
...
...
bin/varnishd/mgt/mgt_param_bits.c
View file @
09e8a28b
...
...
@@ -137,12 +137,12 @@ tweak_vsl_mask(struct cli *cli, const struct parspec *par, const char *arg)
(
void
)
bit
(
mgt_param
.
vsl_mask
,
SLT_Hash
,
BSET
);
}
else
{
bit_tweak
(
cli
,
mgt_param
.
vsl_mask
,
SLT_Reserved
,
arg
,
VSL_tags
,
SLT_
_
Reserved
,
arg
,
VSL_tags
,
"VSL tag"
,
"-"
);
}
}
else
{
s
=
""
;
for
(
j
=
0
;
j
<
(
unsigned
)
SLT_Reserved
;
j
++
)
{
for
(
j
=
0
;
j
<
(
unsigned
)
SLT_
_
Reserved
;
j
++
)
{
if
(
bit
(
mgt_param
.
vsl_mask
,
j
,
BTST
))
{
VCLI_Out
(
cli
,
"%s-%s"
,
s
,
VSL_tags
[
j
]);
s
=
","
;
...
...
include/vapi/vsl_int.h
View file @
09e8a28b
...
...
@@ -68,19 +68,19 @@
#define VSL_BACKEND(ptr) (((ptr)[1]) & VSL_BACKENDMARKER)
#define VSL_DATA(ptr) ((char*)((ptr)+2))
#define VSL_ENDMARKER (((uint32_t)SLT_Reserved << 24) | 0x454545)
/* "EEE" */
#define VSL_WRAPMARKER (((uint32_t)SLT_Reserved << 24) | 0x575757)
/* "WWW" */
#define VSL_ENDMARKER (((uint32_t)SLT_
_
Reserved << 24) | 0x454545)
/* "EEE" */
#define VSL_WRAPMARKER (((uint32_t)SLT_
_
Reserved << 24) | 0x575757)
/* "WWW" */
/*
* The identifiers in shmlogtag are "SLT_" + XML tag. A script may be run
* on this file to extract the table rather than handcode it
*/
enum
VSL_tag_e
{
SLT_Bogus
=
0
,
SLT_
_
Bogus
=
0
,
#define SLTM(foo,sdesc,ldesc) SLT_##foo,
#include "tbl/vsl_tags.h"
#undef SLTM
SLT_Reserved
=
255
SLT_
_
Reserved
=
255
};
#endif
/* VAPI_VSL_FMT_H_INCLUDED */
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