diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-01-21 16:16:24 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-01-21 16:16:24 +0000 |
commit | 212ddbc939b030707a86d34d9b97f4cd4c815b21 (patch) | |
tree | e602c11381c1507e54ac0b2e4c65c87b7dd5dfe3 /sys/arch/loongson | |
parent | 15cee70a046f6b2951ff8bd4ab20dbfc2ef519d5 (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/loongson')
-rw-r--r-- | sys/arch/loongson/loongson/conf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/loongson/loongson/conf.c b/sys/arch/loongson/loongson/conf.c index e57db5bd148..ff0fa19e6de 100644 --- a/sys/arch/loongson/loongson/conf.c +++ b/sys/arch/loongson/loongson/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.26 2019/12/20 13:25:02 visa Exp $ */ +/* $OpenBSD: conf.c,v 1.27 2020/01/21 16:16:22 mpi Exp $ */ /* * Copyright (c) 1992, 1993 @@ -116,6 +116,7 @@ cdev_decl(wd); #include "pci.h" cdev_decl(pci); +#include "dt.h" #include "pf.h" #include "usb.h" @@ -166,7 +167,7 @@ struct cdevsw cdevsw[] = #else cdev_notdef(), /* 29 */ #endif - cdev_notdef(), /* 30: */ + cdev_dt_init(NDT,dt), /* 30: dynamic tracer */ cdev_pf_init(NPF,pf), /* 31: packet filter */ cdev_uk_init(NUK,uk), /* 32: unknown SCSI */ cdev_random_init(1,random), /* 33: random data source */ |