Support nested rewrite of trace arguments in bpf_trace_printk
authorBrenden Blanco <bblanco@plumgrid.com>
Wed, 12 Aug 2015 01:33:49 +0000 (18:33 -0700)
committerBrenden Blanco <bblanco@plumgrid.com>
Wed, 12 Aug 2015 01:33:49 +0000 (18:33 -0700)
commita328d238c3796cb60c32d801e32792936807d9fe
treec0e94222cf5f05710f8187354c4fb451241ca45b
parent4a09dd563e71d6959b68be8e7e0c35d1cb325280
Support nested rewrite of trace arguments in bpf_trace_printk

There was an issue where the rewrite of bpf_trace_printk combined with
conversion of function argument to ctx->$reg was mangling the text. Fix
up this case and add a test.

Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
src/cc/frontends/clang/b_frontend_action.cc
tests/cc/test_clang.py