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/amd64 | |
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/amd64')
-rw-r--r-- | sys/arch/amd64/amd64/conf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/conf.c b/sys/arch/amd64/amd64/conf.c index 6330f6e442d..d456a10c054 100644 --- a/sys/arch/amd64/amd64/conf.c +++ b/sys/arch/amd64/amd64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.65 2019/12/17 13:08:54 reyk Exp $ */ +/* $OpenBSD: conf.c,v 1.66 2020/01/21 16:16:22 mpi Exp $ */ /* * Copyright (c) 1994, 1995 Charles M. Hannum. All rights reserved. @@ -176,6 +176,7 @@ cdev_decl(viocon); cdev_decl(pci); #endif +#include "dt.h" #include "pf.h" #include "hotplug.h" #include "gpio.h" @@ -223,7 +224,7 @@ struct cdevsw cdevsw[] = cdev_spkr_init(NSPKR,spkr), /* 27: PC speaker */ cdev_notdef(), /* 28 was LKM */ cdev_notdef(), /* 29 */ - cdev_notdef(), /* 30 */ + cdev_dt_init(NDT,dt), /* 30: dynamic tracer */ cdev_notdef(), /* 31 */ cdev_notdef(), /* 32 */ cdev_notdef(), /* 33 */ |