• Sasha Goldshtein's avatar
    Support base + index * scale addressing for USDT arguments · 8698bdb0
    Sasha Goldshtein authored
    It turns out that some software will have USDT probe arguments
    referencing memory using the full `nnn@(%basereg + %idxreg * scale`
    syntax. This is represented as `nnn@(%basereg,%idxreg,scale)` in
    the `NT_STAPSDT` note, encountered in building a recent version of
    PostgreSQL on FC25.
    
    This format is now recognized by the USDT parser, and the correct
    BPF code is emitted to retrieve arguments that reference memory
    using this full addressing syntax.`
    8698bdb0
usdt.cc 11.2 KB