freebsd-dev/sys
Bjoern A. Zeeb e6f4757735 When forking a child process with PMC_F_DESCENDANTS set in pmc_attach()
in the parent, we will inherit the pmcids but cannot execute any operations
on them in the child.  The reason for this is that pmc_find_pmc() only
tries to find the current process on the owners hash list, but given the
child does not own the attachment, we cannot find it.
Thus, in case the initial lookup fails, try to find the pmc_process state
affiliated with the child process, lookup the pmc from there using the
row index, and get the owner process from that pmc.
Then continue as normal and lookup the pmc context of the owner (process).

This allows us to call, e.g., pmc_start() in the child process before we
start the work there, but to collect the accumulated results later in
the parent.

Sponsored by:		DARPA,AFRL
Obtained from:		L41
Tested by:		rwatson, L41
MFC after:		4 weeks
Reviewed by:		gnn
Differential Revision:	https://reviews.freebsd.org/D2052
2015-08-24 18:57:32 +00:00
..
amd64 preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
arm Enable KDTRACE_HOOKS by default on all armv6 kernels to get more testing. 2015-08-23 21:10:20 +00:00
arm64 Check the frame pointer is within the kernel before accessing it. 2015-08-24 17:28:19 +00:00
boot The flags -mno-aes -mno-avx only exist for clang, not gcc, so 2015-08-20 18:31:05 +00:00
bsm
cam Remove some code duplication by using biofinish(). 2015-08-22 15:58:35 +00:00
cddl MFV (partial) r286889: 5692 expose the number of hole blocks in a file 2015-08-24 09:48:50 +00:00
compat Don't forget to invoke pre_execve() and post_execve(). 2015-08-17 13:07:12 +00:00
conf Make the UMA harvesting go away completely if not wanted. Default to "not wanted". 2015-08-22 12:59:05 +00:00
contrib Add support for the arrays in nvlist library. 2015-08-15 06:34:49 +00:00
crypto const'ify an arg that we don't update... 2015-07-29 23:37:15 +00:00
ddb Make kstack_pages a tunable on arm, x86, and powepc. On i386, the 2015-08-10 17:18:21 +00:00
dev When forking a child process with PMC_F_DESCENDANTS set in pmc_attach() 2015-08-24 18:57:32 +00:00
fs Make it possible to forcibly unmount devfs. 2015-08-24 14:04:44 +00:00
gdb CALLOUT_MPSAFE has lost its meaning since r141428, i.e., for more than ten 2015-05-22 17:05:21 +00:00
geom Create a RouterBoard platform and use it to create a flash map 2015-08-22 05:50:18 +00:00
gnu Using consistent coding style to deal with error inside the loop. 2015-08-18 13:16:23 +00:00
i386 preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
isa
kern Make vfs_unmountall() unmount /dev after /, not before. The only 2015-08-24 13:18:13 +00:00
kgssapi
libkern Remove checks for __ARM_EABI__, we only build for EABI now. 2015-07-09 21:02:40 +00:00
mips preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
modules fix standalone build of zfs module 2015-08-21 08:06:18 +00:00
net Add ALTQ(9) support for the CoDel algorithm. 2015-08-21 22:02:22 +00:00
net80211 Reset the channel to the first available channel if the interface 2015-08-23 01:17:52 +00:00
netgraph * Address review (and add a bit myself). 2015-07-12 18:14:38 +00:00
netinet Revert r284245: "Fix a callout race condition introduced in TCP 2015-08-24 09:30:27 +00:00
netinet6 Implement the IPv6 RSS software hash function. 2015-08-24 05:36:08 +00:00
netipsec Make IPsec work with AES-GCM and AES-ICM (aka CTR) in OCF... IPsec 2015-08-04 17:47:11 +00:00
netnatm
netpfil Add ALTQ(9) support for the CoDel algorithm. 2015-08-21 22:02:22 +00:00
netsmb
nfs
nfsclient Remove some oldnfs remnants. 2015-04-18 16:08:06 +00:00
nfsserver
nlm
ofed Reinstate unify_tcp_port_space and associated code that was lost during 2015-08-12 22:09:58 +00:00
opencrypto Make IPsec work with AES-GCM and AES-ICM (aka CTR) in OCF... IPsec 2015-08-04 17:47:11 +00:00
pc98 Remove unused i386 header privatespace.h. For the native kernel, its 2015-08-07 05:59:58 +00:00
powerpc Fix static fdt support. 2015-08-24 04:39:07 +00:00
rpc Set curvnet context inside the RPC code in more places. 2015-08-18 18:12:46 +00:00
security fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
sparc64 Rationalize BSD license on sys/*/include/in_cksum.h 2015-08-05 19:05:12 +00:00
sys Make vfs_unmountall() unmount /dev after /, not before. The only 2015-08-24 13:18:13 +00:00
teken Sync HPA and VPA implementations with CUP. 2015-08-24 07:49:27 +00:00
tools
ufs - Make 'struct buf *buf' private to vfs_bio.c. Having a global variable 2015-07-29 02:26:57 +00:00
vm Make the UMA harvesting go away completely if not wanted. Default to "not wanted". 2015-08-22 12:59:05 +00:00
x86 preload_search_info: make sure mod is set 2015-08-21 15:57:57 +00:00
xdr
xen xen: allow disabling PV disks and nics 2015-08-21 15:53:08 +00:00
Makefile Kill EoL whitespace. 2015-05-29 14:03:07 +00:00