[PATCH] varnishadm print VGC_ref

kokoniimasu kokoniimasu at gmail.com
Wed Apr 29 10:11:18 CEST 2015


Hi all,

VCL_trace is useful at debugging.
But, VCL_trace don't have source information.

# varnishlog -g raw -i vcl_trace
 224399237 VCL_trace      c 41 134.3
 224399237 VCL_trace      c 42 136.1
...

This patch add -t option in the varnishadm vcl.show.
-t option displays the VGC_ref.

$ sudo varnishadm vcl.show -t boot
index source   line pos token
    1      0     26   1 "}"
    2      0     33   1 "}"
    3      0     40   1 "}"
    4      1     48   5 "if"
    5      1     50   9 "return"
    6      1     52   5 "if"
    7      1     60   9 "return"
    8      1     63   5 "if"
...

Can know the exact position by combining the vcl.show -v.

Regards,
--
Shohei Tanaka(@xcir)
http://xcir.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-varnishadm-print-VGC_ref-vcl.show-t.patch
Type: application/octet-stream
Size: 3509 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150429/b7816604/attachment.obj>


More information about the varnish-dev mailing list