freebsd-skq/sys
rstone 0ee65aa24e 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 Add LUN resizing to CTL. Also make it possible to explicitly set 2012-03-06 13:43:57 +00:00
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 Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
ddb Use strchr() and strrchr(). 2012-01-02 12:12:10 +00:00
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 kern cons: introduce infrastructure for console grabbing by kernel 2011-12-17 15:08:43 +00:00
geom Check that scheme is not already registered. This may happens when a 2012-03-23 07:26:17 +00:00
gnu/fs Remove fifo.h. The only used function declaration from the header is 2012-03-11 12:19:58 +00:00
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 - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
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 Fix typos 2012-02-28 15:07:05 +00:00
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 Merge multi-FIB IPv6 support from projects/multi-fibv6/head/: 2012-02-17 02:39:58 +00:00
netipx Convert all users of IF_ADDR_LOCK to use new locking macros that specify 2012-01-05 19:00:36 +00:00
netnatm
netncp
netsmb Add unicode support to msdosfs and smbfs; original pathes from imura, 2011-11-18 03:05:20 +00:00
nfs Merge multi-FIB IPv6 support from projects/multi-fibv6/head/: 2012-02-17 02:39:58 +00:00
nfsclient Remove fifo.h. The only used function declaration from the header is 2012-03-11 12:19:58 +00:00
nfsserver Honor NFSv3 commit call (RFC 1813, Section 3.3.21) where when count is 0, 2011-12-15 02:26:53 +00:00
nlm jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
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 Use correct Config registers for RTL8139 family. Unlike RTL8168 and 2012-02-25 04:54:51 +00:00
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 Remove direct access to si_name. 2012-02-10 12:35:57 +00:00
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 Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR. 2012-02-21 19:35:59 +00:00
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 blkif interface comment cleanups. No functional changes 2012-02-29 17:47:01 +00:00
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00