Skip to content

SubconsciousCompute/libdtrace-rs

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages