[DTrace-devel] [PATCH] tests: $dt_flags should not be used in .x files
Kris Van Hees
kris.van.hees at oracle.com
Fri Dec 6 20:51:24 UTC 2024
Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
test/unittest/fbtprovider/err.D_ARGS_IDX.void-void.x | 2 +-
test/unittest/fbtprovider/err.D_ARGS_IDX.void.x | 2 +-
test/unittest/options/tst.modpath.x | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/unittest/fbtprovider/err.D_ARGS_IDX.void-void.x b/test/unittest/fbtprovider/err.D_ARGS_IDX.void-void.x
index ee3e214b..35e10c72 100755
--- a/test/unittest/fbtprovider/err.D_ARGS_IDX.void-void.x
+++ b/test/unittest/fbtprovider/err.D_ARGS_IDX.void-void.x
@@ -1,7 +1,7 @@
#!/bin/bash
# Skip test if FBT probes do not provide argument datatype info.
-types=`$dtrace $dt_flags -lvn fbt::oops_enter:return | gawk '/^[ ]*args\[/ { $1 = ""; print }' | sort -u`
+types=`$dtrace -lvn fbt::oops_enter:return | gawk '/^[ ]*args\[/ { $1 = ""; print }' | sort -u`
if [[ -z "$types" ]]; then
echo "FBT probes without args[] type info"
diff --git a/test/unittest/fbtprovider/err.D_ARGS_IDX.void.x b/test/unittest/fbtprovider/err.D_ARGS_IDX.void.x
index cc2b7884..46cb9d0d 100755
--- a/test/unittest/fbtprovider/err.D_ARGS_IDX.void.x
+++ b/test/unittest/fbtprovider/err.D_ARGS_IDX.void.x
@@ -1,7 +1,7 @@
#!/bin/bash
# Skip test if FBT probes do not provide argument datatype info.
-types=`$dtrace $dt_flags -lvn fbt::exit_creds:return | gawk '/^[ ]*args\[/ { $1 = ""; print }' | sort -u`
+types=`$dtrace -lvn fbt::exit_creds:return | gawk '/^[ ]*args\[/ { $1 = ""; print }' | sort -u`
if [[ -z "$types" ]]; then
echo "FBT probes without args[] type info"
diff --git a/test/unittest/options/tst.modpath.x b/test/unittest/options/tst.modpath.x
index 383fc956..928f00cc 100755
--- a/test/unittest/options/tst.modpath.x
+++ b/test/unittest/options/tst.modpath.x
@@ -9,7 +9,7 @@ fi
# Skip test if CTF info is not used for rawtp args[] types. (If all rawtp
# args[] types are "uint64_t", this is a symptom of our using the back-up
# trial-and-error method.)
-types=`$dtrace $dt_flags -lvP rawtp | gawk '/^[ ]*args/ { $1 = ""; print }' | sort -u`
+types=`$dtrace -lvP rawtp | gawk '/^[ ]*args/ { $1 = ""; print }' | sort -u`
if [ "$types" == " uint64_t" ]; then
echo "not using CTF for rawtp args types"
exit 2
--
2.45.2
More information about the DTrace-devel
mailing list