diff options
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r-- | usr.bin/kdump/kdump_subr.h | 3 | ||||
-rw-r--r-- | usr.bin/kdump/mksubr | 12 |
2 files changed, 12 insertions, 3 deletions
diff --git a/usr.bin/kdump/kdump_subr.h b/usr.bin/kdump/kdump_subr.h index f27c3fa10fd..20c53de4263 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.8 2012/12/25 09:35:51 guenther Exp $ */ +/* $OpenBSD: kdump_subr.h,v 1.9 2013/06/17 19:11:54 guenther Exp $ */ /* * Copyright(c) 2006 2006 David Kirchner <dpk@dpk.net> * @@ -55,6 +55,7 @@ void prioname(int); void madvisebehavname(int); void msyncflagsname(int); void clockname(int); +void clocktypename(int); void schedpolicyname(int); void kldunloadfflagsname(int); void ksethrcmdname(int); diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr index 1682fd9e99a..d0b048bedc3 100644 --- a/usr.bin/kdump/mksubr +++ b/usr.bin/kdump/mksubr @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: mksubr,v 1.14 2012/12/25 09:35:51 guenther Exp $ +# $OpenBSD: mksubr,v 1.15 2013/06/17 19:11:54 guenther Exp $ # # Copyright (c) 2006 David Kirchner <dpk@dpk.net> # @@ -429,6 +429,14 @@ flagsandmodename (int flags, int mode) { } } +void +clockname (int clockid) +{ + clocktypename(__CLOCK_TYPE(clockid)); + if (__CLOCK_PTID(clockid) != 0) + printf("(%d)", __CLOCK_PTID(clockid)); +} + /* * MANUAL * @@ -476,7 +484,7 @@ auto_switch_type "shutdownhowname" "SHUT_[A-Z]+[[:space:]]+[0-9]+" "sys/socket.h #auto_switch_type "prioname" "PRIO_[A-Z]+[[:space:]]+[0-9]" "sys/resource.h" auto_switch_type "madvisebehavname" "_?MADV_[A-Z]+[[:space:]]+[0-9]+" "sys/mman.h" auto_switch_type "msyncflagsname" "MS_[A-Z]+[[:space:]]+0x[0-9]+" "sys/mman.h" -auto_switch_type "clockname" "CLOCK_[A-Z]+[[:space:]]+[0-9]+" "sys/_time.h" +auto_switch_type "clocktypename" "CLOCK_[_A-Z]+[[:space:]]+[0-9]+" "sys/_time.h" #auto_switch_type "schedpolicyname" "SCHED_[A-Z]+[[:space:]]+[0-9]+" "sched.h" #auto_switch_type "kldunloadfflagsname" "LINKER_UNLOAD_[A-Z]+[[:space:]]+[0-9]+" "sys/linker.h" #auto_switch_type "extattrctlname" "EXTATTR_NAMESPACE_[A-Z]+[[:space:]]+0x[0-9]+" "sys/extattr.h" |