NetBSD/sys/kern
matt 5ca5a72bf6 Deal with PCU state when performing coredumps. As the kernel moves each LWP
into LSSUSPENDED state, have that LWP save its PCU state for the coredump and
release its PCU status since its probably going to be exiting very soon.
Make pcu_save_all tolerate for being called for non-curlwp if that lwp belongs
to the same process, has a state of LSSUSPENDED, and no PCUs are in use.

Make the MD coredump code use pcu_save_all(l) since it'll need to save all
the PCU state anyways and can take advantage of the above tests.
2011-06-13 21:32:42 +00:00
..
Make.tags.inc Exclude drm sources from tags computation. 2011-01-21 23:23:44 +00:00
Makefile
bufq_disksort.c
bufq_fcfs.c
bufq_priocscan.c
bufq_readprio.c
cnmagic.c Replace more printfs with aprint_normal / aprint_verbose 2010-01-31 00:43:37 +00:00
core_elf32.c
core_elf64.c
core_netbsd.c udpate license clauses on my code to match the new-style BSD licenses. 2011-02-02 20:07:25 +00:00
exec_aout.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
exec_ecoff.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
exec_elf.c Pass down ELF Auxillary Vectors for static NetBSD binaries too. 2011-03-07 05:09:09 +00:00
exec_elf32.c
exec_elf64.c
exec_script.c Introduce struct pathbuf. This is an abstraction to hold a pathname 2010-11-19 06:44:33 +00:00
exec_subr.c PR/44673: Arna Clauson: Latest MAXSSIZ bump broke netbsd32 emulation on amd64. 2011-03-04 04:25:58 +00:00
genlintstub.awk
init_main.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
init_sysctl.c Add some needed __UNCONST 2011-05-24 16:39:56 +00:00
init_sysctl_base.c
init_sysent.c merge the bouyer-quota2 branch. This adds a new on-disk format 2011-03-06 17:08:10 +00:00
kern_acct.c - Remove FORK_SHARELIMIT and PL_SHAREMOD, simplify lim_privatise(). 2011-05-01 01:15:18 +00:00
kern_auth.c
kern_cctr.c
kern_cfglock.c Define a set of new kernel locking primitives to implement the recursive 2010-08-21 13:17:31 +00:00
kern_clock.c Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch 2010-12-20 00:25:23 +00:00
kern_condvar.c Typo fix. 2011-04-14 20:19:35 +00:00
kern_core.c Small comment improvement. 2011-04-29 22:57:54 +00:00
kern_cpu.c Sprinkle __cacheline_aligned and __read_mostly. 2011-05-13 22:16:43 +00:00
kern_ctf.c DTrace: Fix several bugs where the mod_ctf_get() function could return 2010-05-03 09:51:36 +00:00
kern_descrip.c Drop extern inline for fd_getfile(). Apparently, GCC already ignores it. 2011-04-24 20:30:38 +00:00
kern_drvctl.c
kern_event.c make list traversing in knote() safe against removal of the entry 2010-09-10 10:23:46 +00:00
kern_exec.c Add some more MI hook points for PCU. Discard the PCU state at lwp_exit and 2011-06-06 22:04:34 +00:00
kern_exit.c Add some more MI hook points for PCU. Discard the PCU state at lwp_exit and 2011-06-06 22:04:34 +00:00
kern_fileassoc.c
kern_fork.c fork1: fix stop-on-fork case, lend a correct lock to LWP for LSSTOP state. 2011-05-14 18:50:07 +00:00
kern_history.c move and rename the uvm history code out of uvm_stat to "kernhist". 2011-05-17 04:18:05 +00:00
kern_hook.c Add critpoll (critical polling) hooks. These are keep things like watchdogs 2010-12-11 22:27:53 +00:00
kern_idle.c Include internal definitions (uvm/uvm.h) only where necessary. 2011-01-17 07:13:31 +00:00
kern_ksyms.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
kern_kthread.c Use a real panic as safe guard 2011-05-24 18:18:22 +00:00
kern_ktrace.c kern/42030 - tracking of file descriptors by ktrace/kdump 2011-06-01 21:24:59 +00:00
kern_lock.c
kern_lwp.c Deal with PCU state when performing coredumps. As the kernel moves each LWP 2011-06-13 21:32:42 +00:00
kern_malloc.c give the name of the dup initialization. 2010-05-05 02:20:42 +00:00
kern_malloc_debug.c buildfix: uvm_extern.h -> uvm.h 2011-01-19 09:02:52 +00:00
kern_malloc_stdtype.c Remove M_IOV (missed in previous commit) and M_1394DATA types. 2010-04-23 19:09:15 +00:00
kern_module.c add a "module_machine", that defaults to machine. 2011-04-17 05:16:28 +00:00
kern_module_vfs.c Rename the autoloaded property list from <module>.prop to <module>.plist 2010-11-28 00:26:38 +00:00
kern_mutex.c G/C unused MUTEX_COUNT_BIAS (it was for VAX) 2011-04-11 19:11:08 +00:00
kern_mutex_obj.c Use KASSERTMSG so if these trigger, we can see what exactly caused them to fire. 2011-06-11 01:07:33 +00:00
kern_ntptime.c _KERNEL_OPT 2010-04-13 22:46:10 +00:00
kern_pax.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
kern_physio.c Make vmapbuf() return success/error and make physio deal with a 2011-02-10 14:46:44 +00:00
kern_pmf.c Don't directly call sys_sync() from random bits of code, instead 2011-06-05 09:04:22 +00:00
kern_proc.c Sprinkle __cacheline_aligned and __read_mostly, also const-ify. 2011-05-13 22:22:03 +00:00
kern_prot.c Simplify previous: the original code was mostly correct but relied on 2011-04-27 06:22:11 +00:00
kern_ras.c
kern_rate.c
kern_resource.c Revert maxdmap/maxsmap constification, as it causes problems on some 2011-06-03 17:58:18 +00:00
kern_runq.c remove redundant checks of PK_MARKER. 2010-03-03 00:47:30 +00:00
kern_rwlock.c Optimise mutex_onproc() and rw_onproc() by making them O(1), instead 2011-03-20 23:19:16 +00:00
kern_rwlock_obj.c Sprinkle __cacheline_aligned and __read_mostly. 2011-05-13 22:16:43 +00:00
kern_sdt.c DTrace: Add an SDT (Statically Defined Tracing) provider framework, and 2010-03-01 21:10:13 +00:00
kern_sig.c Make stopsigmask static, sprinkle __cacheline_aligned and __read_mostly. 2011-04-27 00:38:37 +00:00
kern_sleepq.c Sprinkle __cacheline_aligned and __read_mostly, make some functions static. 2011-05-13 22:19:41 +00:00
kern_softint.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
kern_ssp.c Switch SSP init output to aprint_debug() instead of aprint_normal() 2010-02-01 16:14:58 +00:00
kern_stub.c kern/42030 - tracking of file descriptors by ktrace/kdump 2011-06-01 21:24:59 +00:00
kern_subr.c Change md(4) to: 2010-11-11 11:07:06 +00:00
kern_synch.c Sprinkle __cacheline_aligned and __read_mostly. 2011-05-13 22:16:43 +00:00
kern_syscall.c Update the rest of the kernel to conform to the module subsystem's new 2010-08-21 13:19:39 +00:00
kern_sysctl.c Move sysctl routines from init_sysctl.c to kern_descrip.c (for 2011-01-28 18:44:44 +00:00
kern_tc.c _KERNEL_OPT 2010-04-13 22:46:10 +00:00
kern_time.c implement timer_create of CLOCK_MONOTONIC 2011-04-08 10:35:37 +00:00
kern_timeout.c - Fix a few possible locking issues in execve1() and exit1(). Add a note 2010-12-18 01:36:19 +00:00
kern_todr.c Remove clause 3 (UCB advertising clause) from the University of Utah 2011-02-08 20:20:06 +00:00
kern_turnstile.c Sprinkle __cacheline_aligned and __read_mostly, make some functions static. 2011-05-13 22:19:41 +00:00
kern_uidinfo.c
kern_uuid.c switch to nanotime() for 100ns resolution 2010-05-04 19:23:56 +00:00
kern_verifiedexec.c allow get the size of the request sysctls to work. 2011-01-29 00:38:25 +00:00
kern_xxx.c _KERNEL_OPT 2010-11-21 17:57:24 +00:00
kgdb_stub.c Clean up excessive #ifdef'age of NMI trap handling for amd64/i386/xen. 2011-04-03 22:29:25 +00:00
makesyscalls.sh Create empty temporary rumphdr.types file if missing; to avoid error 2011-06-05 14:13:53 +00:00
sched_4bsd.c bluntly balance estcpu decay for ncpu > 1. PR/31966. 2011-04-14 16:19:35 +00:00
sched_m2.c
subr_autoconf.c provide a diagnostic for unsplit drivers. 2011-06-01 02:43:33 +00:00
subr_blist.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
subr_bufq.c
subr_callback.c
subr_copy.c
subr_debug.c
subr_device.c Device accessors are only marginally related to autoconf, so put them 2010-01-31 15:10:11 +00:00
subr_devsw.c
subr_disk.c add some (uint64_t) casts so avoid 32 bit overflows. this fixes my 2010-10-14 00:47:16 +00:00
subr_disk_mbr.c This not working on ews4800mips has nothing to do with rump, so: 2010-05-11 20:07:40 +00:00
subr_disk_open.c Add helper function that determines the size and block size of a disk device. 2010-01-30 11:57:17 +00:00
subr_evcnt.c Add a sysctl to retrieve evcnts from the kernel. You can tell it to 2011-01-29 17:35:23 +00:00
subr_exec_fd.c kern/42030 - tracking of file descriptors by ktrace/kdump 2011-06-01 21:24:59 +00:00
subr_extent.c
subr_hash.c
subr_humanize.c
subr_iostat.c
subr_kmem.c Init kmem_guard_depth to 0 so it will be placed in .data so it can be 2011-02-17 18:55:31 +00:00
subr_kobj.c Deal with ELFnn_MACHDEP_ID_CASES a bit better. 2011-01-18 08:15:51 +00:00
subr_kobj_vfs.c Introduce struct pathbuf. This is an abstraction to hold a pathname 2010-11-19 06:44:33 +00:00
subr_lockdebug.c rearrange some common code in lockdebug_unlocked. 2011-04-14 06:12:02 +00:00
subr_log.c
subr_lwp_specificdata.c void police! 2010-04-12 23:09:28 +00:00
subr_once.c
subr_optstr.c
subr_pcq.c
subr_pcu.c Deal with PCU state when performing coredumps. As the kernel moves each LWP 2011-06-13 21:32:42 +00:00
subr_percpu.c Sprinkle __cacheline_aligned and __read_mostly. 2011-05-13 22:16:43 +00:00
subr_pool.c pnbuf_cache is used all over the place outside of vfs, so put it 2011-03-22 15:16:23 +00:00
subr_prf.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
subr_prof.c
subr_specificdata.c
subr_spldebug.c MAXCPUS -> maxcpus 2010-04-25 11:49:22 +00:00
subr_syscall_stats.c
subr_tftproot.c
subr_time.c fix and cleanup for tvtohz(): 2011-01-26 19:15:13 +00:00
subr_userconf.c Don't use the C preprocessor to configure USERCONF. Instead, either do 2011-05-31 23:28:52 +00:00
subr_vmem.c wrap a long line. 2010-12-17 22:24:11 +00:00
subr_workqueue.c
subr_xcall.c Sprinkle __cacheline_aligned and __read_mostly. 2011-05-13 22:16:43 +00:00
sys_aio.c Remove curproc == NULL test. 2011-02-17 19:02:50 +00:00
sys_descrip.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
sys_generic.c - Add O_CLOEXEC to open(2) 2011-04-10 15:45:33 +00:00
sys_lwp.c many changes for COMPAT_LINUX: 2010-07-07 01:30:32 +00:00
sys_module.c Update the rest of the kernel to conform to the module subsystem's new 2010-08-21 13:19:39 +00:00
sys_mqueue.c Add missing <sys/atomic.h> include. 2011-04-25 11:39:42 +00:00
sys_pipe.c - Add O_CLOEXEC to open(2) 2011-04-10 15:45:33 +00:00
sys_pmc.c
sys_process.c Remove pfind() and pgfind(), fix locking in various broken uses of these. 2010-07-01 02:38:26 +00:00
sys_pset.c Remove pfind() and pgfind(), fix locking in various broken uses of these. 2010-07-01 02:38:26 +00:00
sys_sched.c Remove pfind() and pgfind(), fix locking in various broken uses of these. 2010-07-01 02:38:26 +00:00
sys_select.c If a signal did not fire, restore the original signal mask for pselect/pollts 2011-05-28 15:33:40 +00:00
sys_sig.c when undoing the sigsuspend setup, either take the signal and allow the 2011-05-29 22:14:53 +00:00
sys_socket.c
sys_syscall.c
syscalls.c merge the bouyer-quota2 branch. This adds a new on-disk format 2011-03-06 17:08:10 +00:00
syscalls.conf Make syscallargs.h include <sys/sched.h> for cpuset_t typedef for 2011-01-18 17:33:05 +00:00
syscalls.master actually, revert previous for now. quotactl doesn't play with the 2011-03-09 22:12:45 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c Sprinkle __cacheline_aligned and __read_mostly. 2011-05-13 22:16:43 +00:00
sysv_shm.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
tty.c Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for 2011-04-24 16:26:51 +00:00
tty_bsdpty.c Introduce struct pathbuf. This is an abstraction to hold a pathname 2010-11-19 06:44:33 +00:00
tty_conf.c
tty_ptm.c Clean up vnode lock operations pass 2: 2010-06-24 12:58:48 +00:00
tty_pty.c Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for 2011-04-24 16:26:51 +00:00
tty_subr.c
tty_tty.c Clean up vnode lock operations pass 2: 2010-06-24 12:58:48 +00:00
uipc_accf.c Update the rest of the kernel to conform to the module subsystem's new 2010-08-21 13:19:39 +00:00
uipc_domain.c Add SOCK_SEQPACKET to PL_LOCAL sockets. Based on patch from Jesse Off, 2011-05-29 03:32:46 +00:00
uipc_mbuf.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
uipc_mbuf2.c
uipc_proto.c Add SOCK_SEQPACKET to PL_LOCAL sockets. Based on patch from Jesse Off, 2011-05-29 03:32:46 +00:00
uipc_sem.c ksem_free: remove wrong assert. 2011-04-17 20:37:43 +00:00
uipc_socket.c Add a new AF/PF_ROUTE which is 64-bit clean which makes the routing socket 2011-02-01 01:39:19 +00:00
uipc_socket2.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
uipc_syscalls.c - Replace few malloc(9) uses with kmem(9). 2011-04-24 18:46:22 +00:00
uipc_usrreq.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_bio.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_cache.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_cwd.c Support FD_CLOEXEC in rump kernels. 2011-02-15 15:54:28 +00:00
vfs_dirhash.c
vfs_getcwd.c Abolish struct componentname's cn_pnbuf. Use the path buffer in the 2010-11-30 10:29:57 +00:00
vfs_hooks.c
vfs_init.c
vfs_lockf.c Fix build with LOCKF_DEBUG on LP64 platforms; from Alexander Nasonov 2011-01-31 08:25:32 +00:00
vfs_lookup.c Hack for PR 44961: restore the prior "logic" pertaining to looking up / 2011-05-16 15:09:31 +00:00
vfs_mount.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_subr.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_syscalls.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_trans.c
vfs_vnode.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_vnops.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_wapbl.c Welcome to 5.99.53! Merge rmind-uvmplock branch: 2011-06-12 03:35:36 +00:00
vfs_xattr.c Introduce struct pathbuf. This is an abstraction to hold a pathname 2010-11-19 06:44:33 +00:00
vnode_if.c merge the bouyer-quota2 branch. This adds a new on-disk format 2011-03-06 17:08:10 +00:00
vnode_if.sh - Use offsetof() in VOPARG_OFFSETOF() instead of re-implementing it. 2011-04-03 01:19:35 +00:00
vnode_if.src Update UCB license (3rd clause drop). 2011-04-02 23:05:50 +00:00