• Sasha Goldshtein's avatar
    u* tools: Gracefully handle missing probes · dc3a57cc
    Sasha Goldshtein authored
    When the target process is missing the required USDT probes, it can
    be a simple mistake (e.g. attaching a script as Java to a Python
    process), or a runtime that is not instrumented with the required
    probes. Attempt to gracefully handle the error and print a helpful
    message instructing the user why the error might have occurred.
    
    ```
    $ uthreads -l java $(pidof python)
    Error attaching USDT probes: the specified pid might not contain
    the given language's runtime, or the runtime was not built with the
    required USDT probes. Look for a configure flag similar to
    --with-dtrace or --enable-dtrace. To check which probes are present
    in the process, use the tplist tool.
    ```
    dc3a57cc
uobjnew.py 5.03 KB