diff --git a/build_scripts/build_spdk.sh b/build_scripts/build_spdk.sh index 280acb2..3fedf63 100755 --- a/build_scripts/build_spdk.sh +++ b/build_scripts/build_spdk.sh @@ -70,6 +70,7 @@ Options: --without-fio Build without FIO --with-fio-dst FIO install destination --with-unit-tests Enables the unit tests + --with-usdt Build with userspace DTrace probes enabled --log Output logging options --no-log Same as "--log no" -n, --dry-run Dry run @@ -523,6 +524,10 @@ do rm_configure_arg "--disable-unit-tests" msg_info "With unit-tests" ;; + "--with-usdt") + CONFIGURE_ARGS+=("--with-usdt") + msg_info "With userspace DTrace probes enabled" + ;; "--log") LOG_MODE=$1 LOG_MODE_EXPLICIT="yes" diff --git a/nix/pkgs/libspdk/default.nix b/nix/pkgs/libspdk/default.nix index 77a61f4..608f5c5 100644 --- a/nix/pkgs/libspdk/default.nix +++ b/nix/pkgs/libspdk/default.nix @@ -118,7 +118,7 @@ let sourceRoot = spdk.name; - devBuildInputs = with pkgs; [ astyle python3Packages.tabulate python3Packages.jinja2 nix-prefetch-github valgrind ]; + devBuildInputs = with pkgs; [ astyle python3Packages.tabulate python3Packages.jinja2 nix-prefetch-github valgrind libsystemtap python3Packages.ijson python3Packages.magic ]; nativeBuildInputs = [ cmake