diff options
author | mpi <mpi@openbsd.org> | 2020-01-21 16:16:22 +0000 |
---|---|---|
committer | mpi <mpi@openbsd.org> | 2020-01-21 16:16:22 +0000 |
commit | 91b2ecf67e2a667ccefd071f95f44a8068f1bbc4 (patch) | |
tree | 4844bb05cf2473deb3060725603f0582ebfa6974 /sys/conf | |
parent | regen (diff) | |
download | wireguard-openbsd-91b2ecf67e2a667ccefd071f95f44a8068f1bbc4.tar.xz wireguard-openbsd-91b2ecf67e2a667ccefd071f95f44a8068f1bbc4.zip |
Import dt(4) a driver and framework for Dynamic Profiling.
The design is fairly simple: events, in the form of descriptors on a
ring, are being produced in any kernel context and being consumed by
a userland process reading /dev/dt.
Code and hooks are all guarded under '#if NDT > 0' so this commit
shouldn't introduce any change as long as dt(4) is disable in GENERIC.
ok kettenis@, visa@, jasper@, deraadt@
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/GENERIC | 3 | ||||
-rw-r--r-- | sys/conf/files | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/sys/conf/GENERIC b/sys/conf/GENERIC index 92240cf0ab3..b7f2550db74 100644 --- a/sys/conf/GENERIC +++ b/sys/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.266 2019/10/12 17:06:02 naddy Exp $ +# $OpenBSD: GENERIC,v 1.267 2020/01/21 16:16:23 mpi Exp $ # # Machine-independent option; used by all architectures for their # GENERIC kernel @@ -82,6 +82,7 @@ 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 diff --git a/sys/conf/files b/sys/conf/files index dcd62565ae3..f0c5aa4df3d 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -1,4 +1,4 @@ -# $OpenBSD: files,v 1.680 2020/01/11 00:56:38 jsg Exp $ +# $OpenBSD: files,v 1.681 2020/01/21 16:16:23 mpi Exp $ # $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $ # @(#)files.newconf 7.5 (Berkeley) 5/10/93 @@ -603,6 +603,12 @@ file net/if_pppoe.c pppoe needs-flag pseudo-device kcov file dev/kcov.c kcov needs-flag +pseudo-device dt +file dev/dt/dt_dev.c dt needs-flag +file dev/dt/dt_prov_profile.c dt +file dev/dt/dt_prov_syscall.c dt +file dev/dt/dt_prov_static.c dt + # XXX machine-independent SCSI files should live somewhere here, maybe # kernel sources |