Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
f9c4e6ad
Unverified
Commit
f9c4e6ad
authored
Mar 05, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust debug logging calls to changed VSL interface (64bit xids)
parent
acda07ec
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
+10
-7
debug.h
src/debug.h
+3
-3
node.c
src/node.c
+1
-2
vdp_pesi.c
src/vdp_pesi.c
+6
-2
No files found.
src/debug.h
View file @
f9c4e6ad
...
...
@@ -4,18 +4,18 @@
#define Debug(fmt, ...) printf(fmt, __VA_ARGS__)
#define VSLdbgv(tng, fmt, ...) \
do { \
VSL(SLT_Debug,
0, "xid=%
u t=%.6f " fmt, \
VSL(SLT_Debug,
NO_VXID, "xid=%l
u t=%.6f " fmt, \
VXID((tng)->vsl->wid), VTIM_real(), __VA_ARGS__); \
VSLb((tng)->vsl, SLT_Debug, fmt, __VA_ARGS__); \
} while(0)
#define VSLdbg(tng, msg) \
do { \
VSL(SLT_Debug,
0, "xid=%
u t=%.6f " msg, \
VSL(SLT_Debug,
NO_VXID, "xid=%l
u t=%.6f " msg, \
VXID((tng)->vsl->wid), VTIM_real()); \
VSLb((tng)->vsl, SLT_Debug, msg); \
} while(0)
#define VSL0dbg(...) VSL(SLT_Debug,
0
, __VA_ARGS__)
#define VSL0dbg(...) VSL(SLT_Debug,
NO_VXID
, __VA_ARGS__)
#else
#define VSLdbgv(tng, fmt, ...) (void)0
#define VSLdbg(tng, msg) (void)0
...
...
src/node.c
View file @
f9c4e6ad
...
...
@@ -735,7 +735,6 @@ push_subreq(struct req *req, struct bytes_tree *tree,
AZ
(
subreq
->
objcore
->
flags
&
OC_F_FINAL
);
VSLdbg
(
vdx
,
"DeliverObj from top"
);
/*
* XXX how should we handle a failed subreq?
* https://github.com/varnishcache/varnish-cache/issues/3264
...
...
@@ -998,7 +997,7 @@ worklist_unpend(const struct vdp_ctx *vdx, struct bytes_tree *tree,
assert
(
VSTAILQ_EMPTY
(
work
));
Lck_AssertHeld
(
&
tree
->
tree_lock
);
VSLdbgv
(
vdx
->
vsl
,
"bytes_unpend: retval=%d front=%p root=%p"
,
VSLdbgv
(
vdx
,
"bytes_unpend: retval=%d front=%p root=%p"
,
tree
->
retval
,
tree
->
front
,
tree
->
root
);
if
(
tree
->
retval
)
return
;
...
...
src/vdp_pesi.c
View file @
f9c4e6ad
...
...
@@ -342,7 +342,7 @@ vped_include(struct req *preq, const char *src, const char *host,
VSLdbgv
(
preq
,
"vped_include: new req=%p"
,
req
);
assert
(
VXID
(
req
->
vsl
->
wid
)
==
VXID
(
NO_VXID
));
req
->
vsl
->
wid
=
VXID_Get
(
wrk
,
VSL_CLIENTMARKER
);
VSLdbgv
(
preq
,
"vped_include: new xid=%
d
"
,
VXID
(
req
->
vsl
->
wid
));
VSLdbgv
(
preq
,
"vped_include: new xid=%
ju
"
,
VXID
(
req
->
vsl
->
wid
));
VSLb
(
req
->
vsl
,
SLT_Begin
,
"req %ju esi"
,
VXID
(
preq
->
vsl
->
wid
));
VSLb
(
preq
->
vsl
,
SLT_Link
,
"req %ju esi"
,
VXID
(
req
->
vsl
->
wid
));
...
...
@@ -1082,7 +1082,8 @@ vdp_pesi_bytes(struct vdp_ctx *vdx, enum vdp_action act, void **priv,
node_insert
(
tree
,
node
,
child
);
pesi
->
pecx
->
abrt
=
abrt
;
VSLdbg
(
vdx
,
"vped_vdp: call vped_include"
);
VSLdbgv
(
vdx
,
"vped_vdp: call vped_include "
"abrt=%d"
,
abrt
);
parallel
=
vped_include
(
req
,
(
const
char
*
)
q
,
(
const
char
*
)
pecx
->
p
,
...
...
@@ -1332,6 +1333,9 @@ vped_deliver(struct req *req, struct boc *boc, int wantbody)
node
=
pesi
->
node
;
parent
=
node
->
parent
;
CHECK_OBJ_NOTNULL
(
parent
,
NODE_MAGIC
);
VSLdbgv
(
req
,
"vped_deliver: req=%p boc=%p wantbody=%d abrt=%d"
,
req
,
boc
,
wantbody
,
pesi
->
pecx
->
abrt
);
assert
(
parent
->
type
==
T_NEXUS
);
if
(
wantbody
==
0
)
{
...
...
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