trace: Avoid passing -1 as the pid to USDT
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.
Showing
Please register or sign in to comment