From: bluhm Date: Wed, 28 Apr 2021 11:32:59 +0000 (+0000) Subject: Enable dt(4) on amd64, arm64, i386, and powerpc64 in GENERIC kernel. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c1287f7d1f5503fd39966aa51e1df96b66f16bc3;p=openbsd Enable dt(4) on amd64, arm64, i386, and powerpc64 in GENERIC kernel. Support to skip frames is missing on arm64 and i386, but the stack traces are useful anyway. sparc64 should work, but I could not test it. Other architectures do not have stacktrace_save_at() and dynamic tracer does not link. from patrick@; OK semarie@ --- diff --git a/sys/arch/amd64/conf/GENERIC b/sys/arch/amd64/conf/GENERIC index 19b21486bc7..c0c16f7c986 100644 --- a/sys/arch/amd64/conf/GENERIC +++ b/sys/arch/amd64/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.497 2021/02/04 16:25:38 anton Exp $ +# $OpenBSD: GENERIC,v 1.498 2021/04/28 11:32:59 bluhm Exp $ # # For further information on compiling OpenBSD kernels, see the config(8) # man page. @@ -685,6 +685,7 @@ owctr* at onewire? # Counter device pseudo-device pctr 1 pseudo-device nvram 1 pseudo-device hotplug 1 # devices hot plugging +pseudo-device dt # mouse & keyboard multiplexor pseudo-devices pseudo-device wsmux 2 diff --git a/sys/arch/arm64/conf/GENERIC b/sys/arch/arm64/conf/GENERIC index 11260c8410b..af499fa1345 100644 --- a/sys/arch/arm64/conf/GENERIC +++ b/sys/arch/arm64/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.194 2021/04/07 17:12:22 kettenis Exp $ +# $OpenBSD: GENERIC,v 1.195 2021/04/28 11:32:59 bluhm Exp $ # # GENERIC machine description file # @@ -490,6 +490,7 @@ owctr* at onewire? # Counter device # Pseudo-Devices pseudo-device openprom pseudo-device hotplug 1 # devices hot plugging +pseudo-device dt # mouse & keyboard multiplexor pseudo-devices pseudo-device wsmux 2 diff --git a/sys/arch/i386/conf/GENERIC b/sys/arch/i386/conf/GENERIC index 6d725d99f93..b49353a92d0 100644 --- a/sys/arch/i386/conf/GENERIC +++ b/sys/arch/i386/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.855 2021/02/04 16:25:39 anton Exp $ +# $OpenBSD: GENERIC,v 1.856 2021/04/28 11:32:59 bluhm Exp $ # # For further information on compiling OpenBSD kernels, see the config(8) # man page. @@ -763,6 +763,7 @@ owctr* at onewire? # Counter device pseudo-device pctr 1 pseudo-device nvram 1 pseudo-device hotplug 1 # devices hot plugging +pseudo-device dt # mouse & keyboard multiplexor pseudo-devices pseudo-device wsmux 2 diff --git a/sys/arch/powerpc64/conf/GENERIC b/sys/arch/powerpc64/conf/GENERIC index c5f83807504..5a41fb2ae72 100644 --- a/sys/arch/powerpc64/conf/GENERIC +++ b/sys/arch/powerpc64/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.25 2021/02/04 16:25:39 anton Exp $ +# $OpenBSD: GENERIC,v 1.26 2021/04/28 11:32:59 bluhm Exp $ # # For further information on compiling OpenBSD kernels, see the config(8) # man page. @@ -186,4 +186,5 @@ brgphy* at mii? # Broadcom Gigabit PHYs # Pseudo-Devices pseudo-device openprom +pseudo-device dt pseudo-device wsmux 2 diff --git a/sys/conf/GENERIC b/sys/conf/GENERIC index 33d0f368968..7ccad45bbff 100644 --- a/sys/conf/GENERIC +++ b/sys/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.276 2021/04/22 10:23:07 naddy Exp $ +# $OpenBSD: GENERIC,v 1.277 2021/04/28 11:32:59 bluhm Exp $ # # Machine-independent option; used by all architectures for their # GENERIC kernel @@ -82,7 +82,6 @@ pseudo-device msts 1 # MSTS line discipline pseudo-device endrun 1 # EndRun line discipline pseudo-device vnd 4 # vnode disk devices pseudo-device ksyms 1 # kernel symbols device -#pseudo-device dt # Dynamic Tracer # clonable devices pseudo-device bpfilter # packet filter