summaryrefslogtreecommitdiff
path: root/sys/arch/landisk
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-21 16:16:24 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-21 16:16:24 +0000
commit212ddbc939b030707a86d34d9b97f4cd4c815b21 (patch)
treee602c11381c1507e54ac0b2e4c65c87b7dd5dfe3 /sys/arch/landisk
parent15cee70a046f6b2951ff8bd4ab20dbfc2ef519d5 (diff)
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/arch/landisk')
-rw-r--r--sys/arch/landisk/landisk/conf.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/landisk/landisk/conf.c b/sys/arch/landisk/landisk/conf.c
index 5cb64822446..e2d891c673a 100644
--- a/sys/arch/landisk/landisk/conf.c
+++ b/sys/arch/landisk/landisk/conf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.c,v 1.39 2019/12/17 13:08:55 reyk Exp $ */
+/* $OpenBSD: conf.c,v 1.40 2020/01/21 16:16:22 mpi Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -67,6 +67,7 @@
* Standard pseudo-devices
*/
#include "bpfilter.h"
+#include "dt.h"
#include "pf.h"
#include "bio.h"
#include "pty.h"
@@ -273,7 +274,7 @@ struct cdevsw cdevsw[] = {
cdev_ch_init(NCH,ch), /* 27: SCSI autochanger */
cdev_uk_init(NUK,uk), /* 28: SCSI unknown */
cdev_notdef(), /* 29: */
- cdev_notdef(), /* 30: */
+ cdev_dt_init(NDT,dt), /* 30: dynamic tracer */
cdev_notdef(), /* 31: */
cdev_notdef(), /* 32: */
cdev_tun_init(NTUN,tun), /* 33: network tunnel */