Skip to content

Commit b0485a3

Browse files
build: allow enabling DTrace probes
Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
1 parent 3e90366 commit b0485a3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build_scripts/build_spdk.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Options:
7070
--without-fio Build without FIO
7171
--with-fio-dst <PATH> FIO install destination
7272
--with-unit-tests Enables the unit tests
73+
--with-usdt Build with userspace DTrace probes enabled
7374
--log <no|tee*|silent> Output logging options
7475
--no-log Same as "--log no"
7576
-n, --dry-run Dry run
@@ -523,6 +524,10 @@ do
523524
rm_configure_arg "--disable-unit-tests"
524525
msg_info "With unit-tests"
525526
;;
527+
"--with-usdt")
528+
CONFIGURE_ARGS+=("--with-usdt")
529+
msg_info "With userspace DTrace probes enabled"
530+
;;
526531
"--log")
527532
LOG_MODE=$1
528533
LOG_MODE_EXPLICIT="yes"

nix/pkgs/libspdk/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ let
118118

119119
sourceRoot = spdk.name;
120120

121-
devBuildInputs = with pkgs; [ astyle python3Packages.tabulate python3Packages.jinja2 nix-prefetch-github valgrind ];
121+
devBuildInputs = with pkgs; [ astyle python3Packages.tabulate python3Packages.jinja2 nix-prefetch-github valgrind python3Packages.ijson python3Packages.magic ];
122122

123123
nativeBuildInputs = [
124124
cmake

0 commit comments

Comments
 (0)