• Paul Chaignon's avatar
    Fix nested dereference rewrites (#1835) · fa7508de
    Paul Chaignon authored
    * Fix nested rewrites dereferences
    
    When the rewriter meets a dereference of a member dereference it
    fails to properly rewrite them into calls to bpf_probe_read.  The
    reason is that Clang is unable to track the position of rewritten
    text, but we can accommodate this by inserting text around the
    dereference instead of completely rewriting it.  We are already
    doing that for member dereference, but not for simple dereference.
    
    * Test for the rewrite of nested dereferences
    fa7508de
test_clang.py 28.1 KB