• Sasha Goldshtein's avatar
    trace: Avoid passing -1 as the pid to USDT · dd04536d
    Sasha Goldshtein authored
    When the `-p` switch is used with `trace`, it would set
    the tgid to the value passed to `-p` and set the pid to
    -1. The result would be incorrect logic that passed the -1
    pid value to the `USDT` context constructor, which fails
    for probes that require the pid to enable (because they
    have a semaphore that needs a poke). This commit fixes it.
    dd04536d
trace.py 29.2 KB