summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-12-21 07:32:36 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-12-21 07:32:36 +0000
commit5ed1d91311131f3556d5d75a8fe2baea2257c929 (patch)
tree6a4901871497118fed2607fc002880a64c563090
parent0aafa56049631f1f9b227ac8e8acaf995161258e (diff)
Recognize itimer and ktrace facility names to {get,set}itimer() and ktrace()
ok otto@
-rw-r--r--usr.bin/kdump/kdump.c12
-rw-r--r--usr.bin/kdump/kdump_subr.h4
-rw-r--r--usr.bin/kdump/mksubr6
3 files changed, 19 insertions, 3 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 2b39087611c..3903c53ebe4 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump.c,v 1.85 2013/09/09 05:08:26 guenther Exp $ */
+/* $OpenBSD: kdump.c,v 1.86 2013/12/21 07:32:35 guenther Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -890,6 +890,16 @@ ktrsyscall(struct ktr_syscall *ktr)
pn(NULL);
pn(pathconfname);
break;
+ case SYS_ktrace:
+ pn(NULL);
+ pn(NULL);
+ pn(ktracefacname);
+ pn(pgid);
+ break;
+ case SYS_setitimer:
+ case SYS_getitimer:
+ pn(itimername);
+ break;
}
nonnative:
diff --git a/usr.bin/kdump/kdump_subr.h b/usr.bin/kdump/kdump_subr.h
index 2c05f18e0de..0b1ba43a808 100644
--- a/usr.bin/kdump/kdump_subr.h
+++ b/usr.bin/kdump/kdump_subr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump_subr.h,v 1.11 2013/07/04 08:29:34 otto Exp $ */
+/* $OpenBSD: kdump_subr.h,v 1.12 2013/12/21 07:32:35 guenther Exp $ */
/*
* Copyright(c) 2006 2006 David Kirchner <dpk@dpk.net>
*
@@ -86,5 +86,7 @@ void sigfpe_name(int);
void sigbus_name(int);
void sigsegv_name(int);
void sigchld_name(int);
+void ktracefacname(int);
+void itimername(int);
extern int decimal, resolv, fancy;
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index 4f423769204..56f91ea2240 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: mksubr,v 1.17 2013/07/03 23:04:34 guenther Exp $
+# $OpenBSD: mksubr,v 1.18 2013/12/21 07:32:35 guenther Exp $
#
# Copyright (c) 2006 David Kirchner <dpk@dpk.net>
#
@@ -255,6 +255,8 @@ cat <<_EOF_
#include <sys/ptrace.h>
#include <sys/resource.h>
#include <sys/reboot.h>
+#include <sys/uio.h>
+#include <sys/ktrace.h>
#include <sched.h>
#if 0
#include <sys/linker.h>
@@ -330,6 +332,8 @@ auto_if_type "sockipprotoname" "IPPROTO_[[:alnum:]]+[[:space:]]+" "netinet/in.h"
auto_switch_type "sockoptname" "SO_[A-Z]+[[:space:]]+0x[0-9]+" "sys/socket.h"
auto_switch_type "socktypename" "SOCK_[A-Z]+[[:space:]]+[1-9]+[0-9]*" "sys/socket.h"
#auto_switch_type "ptraceopname" "PT_[[:alnum:]_]+[[:space:]]+[0-9]+" "sys/ptrace.h"
+auto_orz_type "ktracefacname" "KTRFAC_[^M][[:alnum:]_]+" "sys/ktrace.h"
+auto_switch_type "itimername" "ITIMER_[[:alnum:]_]+" "sys/time.h"
cat <<_EOF_
/*