Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 1.26 KB

File metadata and controls

33 lines (28 loc) · 1.26 KB

libdtrace-rs

Rust bindings for DTrace.

Requirements

Compiling

  1. Setup requirements for bindgen
  2. Open an powershell and set the execution policy
Set-ExecutionPolicy RemoteSigned –Scope Process
  1. Run cargo build

Running

In order to run examples and tests a few more steps are required.

  1. Download DTrace kernel driver.
  2. Enable tracing by running the following command in an elevated terminal
    bcdedit /set dtrace ON
    
  3. Set the _NT_SYMBOL_PATH as follows
_NT_SYMBOL_PATH=srv*C:\symbols*https://msdl.microsoft.com/download/symbols
  1. Create the symbols directory at C:\symbols
  2. Run cargo run --example <example_name> to run an example or cargo test to run tests.