[DTrace-devel] [PATCH 1/3] test: adjust filter

Kris Van Hees kris.van.hees at oracle.com
Sat Sep 14 15:35:40 UTC 2024


The unittest/profile-n/tst.ufunc.sh test could report a false negative
due to the filter not excluding ld-linux-*.  It also did not filter out
unresolved addresses from the bash process.

Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>
---
 test/unittest/profile-n/tst.ufunc.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/unittest/profile-n/tst.ufunc.sh b/test/unittest/profile-n/tst.ufunc.sh
index 28b7c05b..13231539 100755
--- a/test/unittest/profile-n/tst.ufunc.sh
+++ b/test/unittest/profile-n/tst.ufunc.sh
@@ -53,7 +53,8 @@ if ! grep -q 'bash`[a-zA-Z_]' $tmpfile; then
 fi
 
 # Check that functions are unique.  (Exclude shared libraries and unresolved addresses.)
-if awk '!/^ *lib/ && !/^ *0x/ {print $1}' $tmpfile | sort | uniq -c | grep -qv " 1 "; then
+if awk '!/^ *(ld-linux-|lib|([^`]*`)?0x)/ {print $1}' $tmpfile | \
+     sort | uniq -c | grep -qv " 1 "; then
 	echo ERROR: duplicate ufunc
 	status=1
 fi
-- 
2.45.2




More information about the DTrace-devel mailing list