summaryrefslogtreecommitdiff
path: root/regress/usr.sbin
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2024-02-05 15:30:05 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2024-02-05 15:30:05 +0000
commit8807ee2adae6ff0f0890add3f2500b4fda1b5bdf (patch)
treee65f97f1db77fb5b15ffa3d59d85fcea1751262c /regress/usr.sbin
parentc2267fcdd1f8424eca75f64d0ccff5d269a5b4ea (diff)
Regress test for undefined probe arguments fixed in in btrace.c,v 1.83.
Adapted from a submission from Christian Ludwig.
Diffstat (limited to 'regress/usr.sbin')
-rw-r--r--regress/usr.sbin/btrace/Makefile8
-rw-r--r--regress/usr.sbin/btrace/argn.bt6
-rw-r--r--regress/usr.sbin/btrace/argn.ok1
3 files changed, 11 insertions, 4 deletions
diff --git a/regress/usr.sbin/btrace/Makefile b/regress/usr.sbin/btrace/Makefile
index 6f0bb76d387..fb0a37bfc4e 100644
--- a/regress/usr.sbin/btrace/Makefile
+++ b/regress/usr.sbin/btrace/Makefile
@@ -1,11 +1,11 @@
-# $OpenBSD: Makefile,v 1.30 2023/09/11 19:03:53 mpi Exp $
+# $OpenBSD: Makefile,v 1.31 2024/02/05 15:30:04 mpi Exp $
BTRACE?= /usr/sbin/btrace
ALLOWDT!= sysctl -n kern.allowdt 2>/dev/null
# scripts that don't need /dev/dt
-BT_LANG_SCRIPTS= arithm beginend beginend-argn boolean comments delete \
- exit histempty if \
+BT_LANG_SCRIPTS= arithm beginend beginend-argn boolean comments \
+ delete exit histempty if \
map mapclear mapempty mapsyntax mapzero map-unnamed \
maxoperand min+max+sum multismts nsecs+var \
precedence print read-map-after-clear staticv-empty \
@@ -14,7 +14,7 @@ BT_LANG_SCRIPTS= arithm beginend beginend-argn boolean comments delete \
BT_ARG_LANG_SCRIPTS= staticv str
# scripts that use kernel probes
-BT_KERN_SCRIPTS= empty-stmts filters mapoverwrite multiprobe
+BT_KERN_SCRIPTS= argn empty-stmts filters mapoverwrite multiprobe
REGRESS_EXPECTED_FAILURES= run-maxoperand
diff --git a/regress/usr.sbin/btrace/argn.bt b/regress/usr.sbin/btrace/argn.bt
new file mode 100644
index 00000000000..b2e89501dcf
--- /dev/null
+++ b/regress/usr.sbin/btrace/argn.bt
@@ -0,0 +1,6 @@
+interval:hz:100
+{
+ printf("%d %s %d %s %d %s %d %s %d %s\n",
+ arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9);
+ exit();
+}
diff --git a/regress/usr.sbin/btrace/argn.ok b/regress/usr.sbin/btrace/argn.ok
new file mode 100644
index 00000000000..d3e1a999aba
--- /dev/null
+++ b/regress/usr.sbin/btrace/argn.ok
@@ -0,0 +1 @@
+0 0 0 0 0 0 0 0 0 0