summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@cvs.openbsd.org>2023-01-17 06:33:26 +0000
committerAnton Lindqvist <anton@cvs.openbsd.org>2023-01-17 06:33:26 +0000
commit866dba494d782081141a4ca6ba77d4bf93f329bd (patch)
tree99369bc1aaaa897ee8b26bf106e94a0267d7ce57
parentf47b5c6a4a4961412b8f38b6211264991e38c5eb (diff)
cope with ktrace "(via syscall)" changes
-rw-r--r--regress/usr.sbin/syslogd/args-sendsyslog-console.pl2
-rw-r--r--regress/usr.sbin/syslogd/args-sendsyslog-fault.pl2
-rw-r--r--regress/usr.sbin/syslogd/args-sendsyslog-flags.pl2
-rw-r--r--regress/usr.sbin/syslogd/args-sendsyslog-nostash.pl2
-rw-r--r--regress/usr.sbin/syslogd/args-sendsyslog-syscall.pl2
5 files changed, 5 insertions, 5 deletions
diff --git a/regress/usr.sbin/syslogd/args-sendsyslog-console.pl b/regress/usr.sbin/syslogd/args-sendsyslog-console.pl
index 9c5a1aa797a..a2131384aff 100644
--- a/regress/usr.sbin/syslogd/args-sendsyslog-console.pl
+++ b/regress/usr.sbin/syslogd/args-sendsyslog-console.pl
@@ -32,7 +32,7 @@ our %args = (
write_shutdown($self);
},
ktrace => {
- qr/CALL sendsyslog\(/ => 18,
+ qr/CALL (\(via syscall\) )?sendsyslog\(/ => 18,
qr/GIO fd -1 wrote /.length(get_testlog()).qr/ bytes/ => 2,
qr/RET sendsyslog -1 errno $errno / => 18,
},
diff --git a/regress/usr.sbin/syslogd/args-sendsyslog-fault.pl b/regress/usr.sbin/syslogd/args-sendsyslog-fault.pl
index 6386ff2d173..fba8efb245b 100644
--- a/regress/usr.sbin/syslogd/args-sendsyslog-fault.pl
+++ b/regress/usr.sbin/syslogd/args-sendsyslog-fault.pl
@@ -27,7 +27,7 @@ our %args = (
write_log($self);
},
ktrace => {
- qr/CALL sendsyslog\(/ => 3,
+ qr/CALL (\(via syscall\) )?sendsyslog\(/ => 3,
qr/RET sendsyslog -1 errno $errno / => 1,
},
loggrep => {
diff --git a/regress/usr.sbin/syslogd/args-sendsyslog-flags.pl b/regress/usr.sbin/syslogd/args-sendsyslog-flags.pl
index b9c54af2aa3..6c52605d6bf 100644
--- a/regress/usr.sbin/syslogd/args-sendsyslog-flags.pl
+++ b/regress/usr.sbin/syslogd/args-sendsyslog-flags.pl
@@ -14,7 +14,7 @@ our %args = (
client => {
connect => { domain => "sendsyslog", flags => LOG_CONS },
ktrace => {
- qr/CALL sendsyslog\(.*LOG_CONS.*\)/ => 1,
+ qr/CALL (\(via syscall\) )?sendsyslog\(.*LOG_CONS.*\)/ => 1,
qr/GIO fd -1 wrote \d+ bytes/ => 2,
qr/RET sendsyslog 0/ => 2,
},
diff --git a/regress/usr.sbin/syslogd/args-sendsyslog-nostash.pl b/regress/usr.sbin/syslogd/args-sendsyslog-nostash.pl
index c02c10ce8bc..042fa69b881 100644
--- a/regress/usr.sbin/syslogd/args-sendsyslog-nostash.pl
+++ b/regress/usr.sbin/syslogd/args-sendsyslog-nostash.pl
@@ -35,7 +35,7 @@ our %args = (
or die ref($self), " syslogd started not in syslogd.log";
})},
ktrace => {
- qr/CALL sendsyslog\(/ => '>=103',
+ qr/CALL (\(via syscall\) )?sendsyslog\(/ => '>=103',
qr/RET sendsyslog -1 errno $errno / => 102,
},
loggrep => {
diff --git a/regress/usr.sbin/syslogd/args-sendsyslog-syscall.pl b/regress/usr.sbin/syslogd/args-sendsyslog-syscall.pl
index 67e6988110c..0d72e5deaf8 100644
--- a/regress/usr.sbin/syslogd/args-sendsyslog-syscall.pl
+++ b/regress/usr.sbin/syslogd/args-sendsyslog-syscall.pl
@@ -13,7 +13,7 @@ our %args = (
client => {
connect => { domain => "sendsyslog" },
ktrace => {
- qr/CALL sendsyslog\(/ => 2,
+ qr/CALL (\(via syscall\) )?sendsyslog\(/ => 2,
qr/GIO fd -1 wrote \d+ bytes/ => 2,
qr/RET sendsyslog 0/ => 2,
},