• Sasha Goldshtein's avatar
    cc: Support glob+offset format in USDT arguments (#753) · 163a73fa
    Sasha Goldshtein authored
    Modern versions of USDT probes (such as what's found in
    PostgreSQL when compiled with `--enable-dtrace`) may have
    the offset listed after the global symbol for USDT
    arguments of the format `4@symbol+8(%rip)`. This commit
    extends the argument parser to support these cases, adds
    tests for these cases, and makes sure that in case of a
    parse error, the parser always moves forward and consumes
    at least one character. Presently, the parser would get
    stuck on the problematic position and enter an infinite
    loop.
    163a73fa
test_usdt_args.cc 2.82 KB