freebsd-dev/sys
Ryan Stone 9742410797 Instead of only iterating over the set of known SDT probes when sdt.ko is
loaded and unloaded, also have sdt.ko register callbacks with kern_sdt.c
that will be called when a newly loaded KLD module adds more probes or
a module with probes is unloaded.

This fixes two issues: first, if a module with SDT probes was loaded after
sdt.ko was loaded, those new probes would not be available in DTrace.
Second, if a module with SDT probes was unloaded while sdt.ko was loaded,
the kernel would panic the next time DTrace had cause to try and do
anything with the no-longer-existent probes.

This makes it possible to create SDT probes in KLD modules, although there
are still two caveats: first, any SDT probes in a KLD module must be part
of a DTrace provider that is defined in that module.  At present DTrace
only destroys probes when the provider is destroyed, so you can still
panic the system if a KLD module creates new probes in a provider from a
different module(including the kernel) and then unload the the first module.

Second, the system will panic if you unload a module containing SDT probes
while there is an active D script that has enabled those probes.

MFC after:	1 month
2012-03-27 15:07:43 +00:00
..
amd64 Disable detailed PV entry accounting by default. Add a config option 2012-03-24 19:43:49 +00:00
arm Remove pty(4) from our kernel configurations. 2012-03-21 08:38:42 +00:00
boot Remove second consts in r233288 in order to appease C++ compilers. 2012-03-26 18:22:04 +00:00
bsm
cam
cddl Instead of only iterating over the set of known SDT probes when sdt.ko is 2012-03-27 15:07:43 +00:00
compat Remove some unnecessary includes. 2012-03-18 19:15:11 +00:00
conf Driver for OpenCores I2C controller. 2012-03-27 10:44:32 +00:00
contrib Update the firmware to version 0.236 2012-03-21 19:09:52 +00:00
crypto
ddb
dev Fix random deadlock on pmcstat exit: 2012-03-27 14:02:22 +00:00
fs Add sysctl vfs.nfs.nfs_keep_dirty_on_error to switch the nfs client 2012-03-17 23:03:20 +00:00
gdb
geom Check that scheme is not already registered. This may happens when a 2012-03-23 07:26:17 +00:00
gnu/fs
i386 Disable detailed PV entry accounting by default. Add a config option 2012-03-24 19:43:49 +00:00
ia64 Remove pty(4) from our kernel configurations. 2012-03-21 08:38:42 +00:00
isa
kern Instead of only iterating over the set of known SDT probes when sdt.ko is 2012-03-27 15:07:43 +00:00
kgssapi
libkern Remove second consts in r233288 in order to appease C++ compilers. 2012-03-26 18:22:04 +00:00
mips XLP UART code udpate. 2012-03-27 14:48:40 +00:00
modules Jusy use i386 version of cyclic_machdep.c on all supported architectures. 2012-03-24 05:16:26 +00:00
net Retire the IF_ADDR_LOCK() and IF_ADDR_UNLOCK() compat macros from HEAD. 2012-03-19 21:09:12 +00:00
net80211 Correct the ordering of tid/crypto ic_name. 2012-03-27 04:15:38 +00:00
netatalk
netgraph Use rt_numfibs variable instead of compile-time RT_NUMFIBS. 2012-03-13 11:08:40 +00:00
netinet - Permit number of ipfw tables to be changed in runtime. 2012-03-25 20:37:59 +00:00
netinet6 in6_pcblookup_local() still can return a pcb with NULL 2012-03-21 08:43:38 +00:00
netipsec
netipx
netnatm
netncp
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Use VM_MEMATTR_UNCACHEABLE instead of VM_MEMATTR_UNCACHED for UC mappings. 2012-03-27 14:24:29 +00:00
opencrypto
pc98 Remove pty(4) from our kernel configurations. 2012-03-21 08:38:42 +00:00
pci
powerpc Make sure to call vm_page_dirty() before the pmap lock is released to 2012-03-27 01:26:00 +00:00
rpc
security
sparc64 Given that this is a host-PCI-Express bridge driver, create the parent 2012-03-24 13:11:58 +00:00
sys Instead of only iterating over the set of known SDT probes when sdt.ko is 2012-03-27 15:07:43 +00:00
teken
tools
ufs Add a third flags argument to ffs_syncvnode to avoid a possible conflict 2012-03-25 00:02:37 +00:00
vm Handle spurious page faults that may occur in no-fault sections of the 2012-03-22 04:52:51 +00:00
x86 Fix the following clang warning in sys/dev/dcons/dcons.c, caused by the 2012-03-24 10:07:21 +00:00
xdr
xen
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00