[PATCH] vcl.show expand includes
Dag Haavi Finstad
daghf at varnish-software.com
Mon Jul 14 11:37:24 CEST 2014
Hi,
As discussed on the Stockholm VDD, here's a proposal for #1457.
Patch 1/2 makes the VCL compiler emit null pointer end markers to the
'srcname' and 'srcbody' arrays.
Patch 2/2 adds a '-v' option to vcl.show, to have it also display all
included files (including the implicitly included builtin VCL.)
The output consists of a simple header for each file consisting of
<name>|<length>. Then follows a newline and <length> bytes which is
the contents of that VCL verbatim, followed by a blank line. The idea
is for this to be easy to parse, while still being in human readable
form.
The VCLs are output in the same order as they appear in the VCL
location/profiling table in the compiled VCL (the vcl->ref stuff used
in the VCL_trace records), so if someone wanted to do a VCL code
tracer thing, that should be possible.
Regards,
Dag
--
Dag Haavi Finstad
Software Developer | Varnish Software AS
Mobile: +47 476 64 134
We Make Websites Fly!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-an-endmarker-to-the-generated-srcbody-srcname-ar.patch
Type: text/x-patch
Size: 1443 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20140714/4c01aedf/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-a-v-option-to-vcl.show-to-make-it-also-expand-in.patch
Type: text/x-patch
Size: 2579 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20140714/4c01aedf/attachment-0001.bin>
More information about the varnish-dev
mailing list