History log of /src/sys/kern/kern_acct.c |
Revision | | Date | Author | Comments |
1.99 |
| 05-Dec-2021 |
msaitoh | s/commmand/command/ in comment.
|
1.98 |
| 29-Jun-2021 |
dholland | Add containment for the cloning devices hack in vn_open.
Cloning devices (and also things like /dev/stderr) work by allocating a struct file, stuffing it in the file table (which is a layer violation), stuffing the file descriptor number for it in a magic field of struct lwp (which is gross), and then "failing" with one of two magic errnos, EDUPFD or EMOVEFD.
Before this commit, all callers of vn_open in the kernel (there are quite a few) were expected to check for these errors and handle the situation. Needless to say, none of them except for open() itself did, resulting in internal negative errnos being returned to userspace.
This hack is fairly deeply rooted and cannot be eliminated all at once. This commit adds logic to handle the magic errnos inside vn_open; now on success vn_open returns either a vnode or an integer file descriptor, along with a flag that says whether the underlying code requested EDUPFD or EMOVEFD. Callers not prepared to cope with file descriptors can pass NULL for the extra return values, in which case if a file descriptor would be produced vn_open fails with EOPNOTSUPP.
Since I'm rearranging vn_open's signature anyway, stop exposing struct nameidata. Instead, take three arguments: an optional vnode to use as the starting point (like openat()), the path, and additional namei flags to use, restricted to NOCHROOT and TRYEMULROOT. (Other namei behavior, e.g. NOFOLLOW, can be requested via the open flags.)
This change requires a kernel bump. Ride the one an hour ago. (That was supposed to be coordinated; did not intend to let an hour slip by. My fault.)
|
1.97 |
| 23-May-2020 |
ad | branches: 1.97.6; Move proc_lock into the data segment. It was dynamically allocated because at the time we had mutex_obj_alloc() but not __cacheline_aligned.
|
1.96 |
| 26-May-2019 |
dholland | fix flatly wrong indent
|
1.95 |
| 01-Jun-2017 |
chs | branches: 1.95.10; remove checks for failure after memory allocation calls that cannot fail:
kmem_alloc() with KM_SLEEP kmem_zalloc() with KM_SLEEP percpu_alloc() pserialize_create() psref_class_create()
all of these paths include an assertion that the allocation has not failed, so callers should not assert that again.
|
1.94 |
| 19-Oct-2013 |
mrg | branches: 1.94.6; use __USE() where appropriate.
|
1.93 |
| 03-Sep-2011 |
christos | branches: 1.93.2; 1.93.12; 1.93.16; Make sure that we initialize all accounting bytes.
|
1.92 |
| 01-May-2011 |
rmind | - Remove FORK_SHARELIMIT and PL_SHAREMOD, simplify lim_privatise(). - Use kmem(9) for struct plimit::pl_corename.
|
1.91 |
| 26-Mar-2011 |
dholland | Fix up sign-compare issue checking for free space. Should fix PR 43413 where accounting doesn't suspend properly.
|
1.90 |
| 19-Nov-2010 |
dholland | branches: 1.90.2; Introduce struct pathbuf. This is an abstraction to hold a pathname and the metadata required to interpret it. Callers of namei must now create a pathbuf and pass it to NDINIT (instead of a string and a uio_seg), then destroy the pathbuf after the namei session is complete.
Update all namei call sites accordingly. Add a pathbuf(9) man page and update namei(9).
The pathbuf interface also now appears in a couple of related additional places that were passing string/uio_seg pairs that were later fed into NDINIT. Update other call sites accordingly.
|
1.89 |
| 24-Jun-2010 |
hannken | Clean up vnode lock operations pass 2:
VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.
Welcome to 5.99.32.
Discussed on tech-kern.
|
1.88 |
| 08-Jan-2010 |
pooka | branches: 1.88.2; 1.88.4; The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live years ago when the kernel was modified to not alter ABI based on DIAGNOSTIC, and now just call the respective function interfaces (in lowercase). Plenty of mix'n match upper/lowercase has creeped into the tree since then. Nuke the macros and convert all callsites to lowercase.
no functional change
|
1.87 |
| 11-Feb-2009 |
enami | s/NOFOLLOW/FOLLOW/ in NDINIT so that it matches actual behavior which is controlled by NO_FOLLOW bit passed in 2nd arg of vn_open().
|
1.86 |
| 24-Apr-2008 |
ad | branches: 1.86.2; 1.86.4; 1.86.10; 1.86.12; 1.86.16; Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since we no longer need to guard against access from hardware interrupt handlers.
Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the child process share the parent's lock so that signal state may be kept in sync. Partially addresses PR kern/37437.
|
1.85 |
| 24-Apr-2008 |
ad | Network protocol interrupts can now block on locks, so merge the globals proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications:
- Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread.
- As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock.
- The system spends less time at IPL_SCHED, and there is less lock activity.
|
1.84 |
| 21-Mar-2008 |
ad | branches: 1.84.2; Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
|
1.83 |
| 25-Jan-2008 |
ad | branches: 1.83.6; Remove VOP_LEASE. Discussed on tech-kern.
|
1.82 |
| 24-Jan-2008 |
ad | Mark some callouts/workqueues/kthreads MPSAFE.
|
1.81 |
| 05-Jan-2008 |
ad | Make acct_lock a rwlock.
|
1.80 |
| 20-Dec-2007 |
dsl | Convert all the system call entry points from: int foo(struct lwp *l, void *v, register_t *retval) to: int foo(struct lwp *l, const struct foo_args *uap, register_t *retval) Fixup compat code to not write into 'uap' and (in some cases) to actually pass a correctly formatted 'uap' structure with the right name to the next routine. A few 'compat' routines that just call standard ones have been deleted. All the 'compat' code compiles (along with the kernels required to test build it). 98% done by automated scripts.
|
1.79 |
| 08-Dec-2007 |
pooka | branches: 1.79.4; Remove cn_lwp from struct componentname. curlwp should be used from on. The NDINIT() macro no longer takes the lwp parameter and associates the credentials of the calling thread with the namei structure.
|
1.78 |
| 26-Nov-2007 |
pooka | branches: 1.78.2; Remove the "struct lwp *" argument from all VFS and VOP interfaces. The general trend is to remove it from all kernel interfaces and this is a start. In case the calling lwp is desired, curlwp should be used.
quick consensus on tech-kern
|
1.77 |
| 29-Sep-2007 |
dsl | branches: 1.77.4; Change the way p->p_limit (and hence p->p_rlimit) is locked. Should fix PR/36939 and make the rlimit code MP safe. Posted for comment to tech-kern (non received!)
The p_limit field (for a process) is only be changed once (on the first write), and a reference to the old structure is kept (for code paths that have cached the pointer). Only p->p_limit is now locked by p->p_mutex, and since the referenced memory will not go away, is only needed if the pointer is to be changed. The contents of 'struct plimit' are all locked by pl_mutex, except that the code doesn't bother to acquire it for reads (which are basically atomic). Add FORK_SHARELIMIT that causes fork1() to share the limits between parent and child, use it for the IRIX_PR_SULIMIT. Fix borked test for both IRIX_PR_SUMASK and IRIX_PR_SDIR being set.
|
1.76 |
| 21-Sep-2007 |
dsl | branches: 1.76.2; Rename members of 'struct plimit' so that the fields are 'pl_xxx' and no longer have the same names as members of 'struct proc'.
|
1.75 |
| 09-Jul-2007 |
ad | branches: 1.75.6; 1.75.8; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.74 |
| 22-Apr-2007 |
dsl | Change the way that emulations locate files within the emulation root to avoid having to allocate space in the 'stackgap' - which is very LWP unfriendly. The additional code for non-emulation namei() is trivial, the reduction for the emulations is massive. The vnode for a processes emulation root is saved in the cwdi structure during process exec. If the emulation root the TRYEMULROOT flag are set, namei() will do an initial search for absolute pathnames in the emulation root, if that fails it will retry from the normal root. ".." at the emulation root will always go to the real root, even in the middle of paths and when expanding symlinks. Absolute symlinks found using absolute paths in the emulation root will be relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links inside the emulation root don't need changing). If the root of the emulation would be returned (for an emulation lookup), then the real root is returned instead (matching the behaviour of emul_lookup, but being a cheap comparison here) so that programs that scan "../.." looking for the root dircetory don't loop forever. The target for symbolic links is no longer mangled (it used to get the CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended). CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding TRYEMULROOT to the flags to NDINIT(). A lot of the emulation system call stubs could now be deleted.
|
1.73 |
| 09-Mar-2007 |
ad | branches: 1.73.2; 1.73.4; - Make the proclist_lock a mutex. The write:read ratio is unfavourable, and mutexes are cheaper use than RW locks. - LOCK_ASSERT -> KASSERT in some places. - Hold proclist_lock/kernel_lock longer in a couple of places.
|
1.72 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.71 |
| 22-Feb-2007 |
thorpej | TRUE -> true, FALSE -> false
|
1.70 |
| 09-Feb-2007 |
ad | branches: 1.70.2; Merge newlock2 to head.
|
1.69 |
| 01-Nov-2006 |
yamt | remove some __unused from function parameters.
|
1.68 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.67 |
| 08-Sep-2006 |
elad | branches: 1.67.2; First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.
- Add a few more actions/sub-actions (requests), and start using them as opposed to the KAUTH_GENERIC_ISSUSER place-holders.
- Introduce a basic set of listeners that implement our "traditional" security model, called "bsd44". This is the default (and only) model we have at the moment.
- Update all relevant documentation.
- Add some code and docs to help folks who want to actually use this stuff:
* There's a sample overlay model, sitting on-top of "bsd44", for fast experimenting with tweaking just a subset of an existing model.
This is pretty cool because it's *really* straightforward to do stuff you had to use ugly hacks for until now...
* And of course, documentation describing how to do the above for quick reference, including code samples.
All of these changes were tested for regressions using a Python-based testsuite that will be (I hope) available soon via pkgsrc. Information about the tests, and how to write new ones, can be found on:
http://kauth.linbsd.org/kauthwiki
NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the following:
- Uses a KAUTH_GENERIC_ISSUSER kauth(9) request, - Checks 'securelevel' directly, - Checks a uid/gid directly.
(or if you feel you have to, contact me first)
This is still work in progress; It's far from being done, but now it'll be a lot easier.
Relevant mailing list threads:
http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html
Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help stablizing kauth(9).
Full credit for the regression tests, making sure these changes didn't break anything, goes to Matt Fleming and Jaime Fournier.
Happy birthday Randi! :)
|
1.66 |
| 23-Jul-2006 |
ad | branches: 1.66.4; Use the LWP cached credentials where sane.
|
1.65 |
| 12-Jun-2006 |
christos | don't allocate statvfs on the stack.
|
1.64 |
| 07-Jun-2006 |
kardel | merge FreeBSD timecounters from branch simonb-timecounters - struct timeval time is gone time.tv_sec -> time_second - struct timeval mono_time is gone mono_time.tv_sec -> time_uptime - access to time via {get,}{micro,nano,bin}time() get* versions are fast but less precise - support NTP nanokernel implementation (NTP API 4) - further reading: Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html
|
1.63 |
| 14-May-2006 |
elad | branches: 1.63.2; integrate kauth.
|
1.62 |
| 11-Dec-2005 |
christos | branches: 1.62.4; 1.62.6; 1.62.8; 1.62.10; 1.62.12; merge ktrace-lwp.
|
1.61 |
| 23-Jun-2005 |
thorpej | branches: 1.61.2; Use ANSI function decls. Apply some static.
|
1.60 |
| 13-Dec-2004 |
yamt | sys_acct: use VOP_SETATTR instead of VOP_TRUNCATE as the latter's filesystem internal. while i'm here, fix vnode locking.
XXX vn_start_write
|
1.59 |
| 13-Nov-2004 |
christos | Truncate the last incomplete accounting record, if the file size is not a multiple of the accounting size structure. This can happen after a system crash when fsck truncates the accounting file.
|
1.58 |
| 17-Sep-2004 |
skrll | There's no need to pass a proc value when using UIO_SYSSPACE with vn_rdwr(9) and uiomove(9).
OK'd by Jason Thorpe
|
1.57 |
| 21-Apr-2004 |
christos | Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
|
1.56 |
| 23-Mar-2004 |
junyoung | Nuke __P().
|
1.55 |
| 07-Aug-2003 |
agc | Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
|
1.54 |
| 29-Jun-2003 |
fvdl | branches: 1.54.2; Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
|
1.53 |
| 28-Jun-2003 |
darrenr | Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
|
1.52 |
| 20-Apr-2003 |
christos | PR/5458: Andrew Brown: acct(2) bug accounting to files marked sappnd
|
1.51 |
| 18-Jan-2003 |
thorpej | Merge the nathanw_sa branch.
|
1.50 |
| 12-Nov-2001 |
lukem | branches: 1.50.4; 1.50.12; add RCSIDs
|
1.49 |
| 08-May-2000 |
thorpej | branches: 1.49.6; 1.49.8; 1.49.10; 1.49.12; Don't reset file size limit to infinity on exit. Instead, temporarily raise the limit to infinity when writing out the accounting file.
From Artur Grabowski <art@stacken.kth.se>.
|
1.48 |
| 10-Mar-2000 |
enami | Create new kernel thread to issue statfs(2) system call to check free disk space rather than doing it in timeout handler. This fixes long standing bug that accounting file can't be put on NFS file system (so, e.g, we couldn't turn on accounting on diskless system).
|
1.47 |
| 04-Aug-1998 |
perry | branches: 1.47.12; Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one. bcopy(x, y, z) -> memcpy(y, x, z) ovbcopy(x, y, z) -> memmove(y, x, z) bcmp(x, y, z) -> memcmp(x, y, z) bzero(x, y) -> memset(x, 0, y)
|
1.46 |
| 31-Jul-1998 |
perry | fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.
|
1.45 |
| 28-Jul-1998 |
thorpej | branches: 1.45.2; Don't cast the null residual pointer passed to vn_rdwr().
|
1.44 |
| 01-Mar-1998 |
fvdl | Merge with Lite2 + local changes
|
1.43 |
| 19-Oct-1997 |
mycroft | Add const where appropriate.
|
1.42 |
| 04-Feb-1996 |
christos | First pass at prototyping
|
1.41 |
| 07-Oct-1995 |
mycroft | Prefix names of system call implementation functions with `sys_'.
|
1.40 |
| 19-Sep-1995 |
thorpej | Make system calls conform to a standard prototype and bring those prototypes into scope.
|
1.39 |
| 21-Mar-1995 |
mycroft | Update to use timer{add,sub}().
|
1.38 |
| 24-Dec-1994 |
cgd | various cleanups for -Wall. some inspired by James Jegers.
|
1.37 |
| 14-Dec-1994 |
mycroft | Remove extra arg to vn_open().
|
1.36 |
| 13-Dec-1994 |
mycroft | LEASE_CHECK -> VOP_LEASE
|
1.35 |
| 11-Dec-1994 |
mycroft | Use __timer{add,sub}(), not timeval{add,sub}(). Remove the latter completely.
|
1.34 |
| 14-Nov-1994 |
christos | added extra argument in vn_open and VOP_OPEN to allow cloning devices
|
1.33 |
| 20-Oct-1994 |
cgd | update for new syscall args description mechanism
|
1.32 |
| 04-Jul-1994 |
mycroft | Revert most of the previous change.
|
1.31 |
| 04-Jul-1994 |
cgd | minor style nits, change VBAD handling
|
1.30 |
| 29-Jun-1994 |
cgd | New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
|
1.29 |
| 19-Jun-1994 |
cgd | replace part of apparently-deleted line
|
1.28 |
| 08-Jun-1994 |
mycroft | Update to 4.4-Lite fs code.
|
1.27 |
| 24-May-1994 |
cgd | very obscure bug fix for acctwatch
|
1.26 |
| 21-May-1994 |
mycroft | Don't go berzerk if acctwatch() happens to be called during an acct_process().
|
1.25 |
| 21-May-1994 |
cgd | oops; if in the wrong place. thanks charles.
|
1.24 |
| 20-May-1994 |
cgd | update with merged versions
|
1.23 |
| 20-May-1994 |
cgd | 4.4-Lite versions
|
1.22 |
| 17-May-1994 |
cgd | copyright foo
|
1.21 |
| 05-May-1994 |
mycroft | Remove now-bogus casts.
|
1.20 |
| 05-May-1994 |
cgd | lots of changes: prototype migration, move lots of variables, definitions, and structure elements around. kill some unnecessary type and macro definitions. standardize clock handling. More changes than you'd want.
|
1.19 |
| 04-May-1994 |
cgd | Rename a lot of process flags.
|
1.18 |
| 29-Apr-1994 |
cgd | kill syscall name aliases. no user-visible changes
|
1.17 |
| 27-Feb-1994 |
cgd | kill XXX's i marked long ago
|
1.16 |
| 18-Dec-1993 |
mycroft | Canonicalize all #includes.
|
1.15 |
| 14-Nov-1993 |
cgd | fix to keep acctwatch() from being called before the vnode is unlocked. from Mark Tinguely <tinguely@plains.nodak.edu>.
|
1.14 |
| 03-Nov-1993 |
cgd | clean up, move some XXX's around, and note that one or two things should be replaced with timeval{add,sub}, and generally be made more sane.
|
1.13 |
| 20-Oct-1993 |
cgd | add some timeout_t typedefs
|
1.12 |
| 20-Oct-1993 |
cgd | knf'ify, clean up some, move sysacct() args out of function declaration.
|
1.11 |
| 20-Oct-1993 |
cgd | delete my '/dev/acct'-style accounting in favor of the version written by Mark Tinguely (tinguely@plains.NoDak.edu). It's the 'standard' way of doing accounting, rather than a wacky one.
|
1.10 |
| 28-Jul-1993 |
cgd | branches: 1.10.2; incorporate changes from 0-9-base to 0-9-ALPHA
|
1.9 |
| 13-Jul-1993 |
cgd | branches: 1.9.2; break args structs out, into syscallname_args structs, so gcc2 doesn't whine so much.
|
1.8 |
| 27-Jun-1993 |
andrew | ANSIfications - removed all implicit function return types and argument definitions. Ensured that all files include "systm.h" to gain access to general prototypes. Casts where necessary.
|
1.7 |
| 22-May-1993 |
cgd | add include of select.h if necessary for protos, or delete if extraneous
|
1.6 |
| 18-May-1993 |
cgd | make kernel select interface be one-stop shopping & clean it all up.
|
1.5 |
| 04-May-1993 |
cgd | oops, forgot a c!
|
1.4 |
| 03-May-1993 |
cgd | fix accidental 2dd, and fix comm handling for debug
|
1.3 |
| 02-May-1993 |
cgd | add starting, elapsed, user, and system times, and clean up a bit
|
1.2 |
| 02-May-1993 |
cgd | add barebones accounting, enabled w/"options ACCOUNTING", via /dev/acct
|
1.1 |
| 21-Mar-1993 |
cgd | branches: 1.1.1; Initial revision
|
1.1.1.3 |
| 01-Mar-1998 |
fvdl | Import 4.4BSD-Lite2
|
1.1.1.2 |
| 01-Mar-1998 |
fvdl | Import 4.4BSD-Lite for reference
|
1.1.1.1 |
| 21-Mar-1993 |
cgd | initial import of 386bsd-0.1 sources
|
1.9.2.1 |
| 21-Jul-1993 |
cgd | add controlling terminal to recorded info. this one was easy...
|
1.10.2.8 |
| 14-Nov-1993 |
cgd | changes from trunk
|
1.10.2.7 |
| 03-Nov-1993 |
mycroft | Merge changes from trunk, and clean up #includes.
|
1.10.2.6 |
| 26-Oct-1993 |
mycroft | Reorder some arithmetic to avoid a multiply. (Can you say `Get a life?')
|
1.10.2.5 |
| 26-Oct-1993 |
mycroft | Forgot one quad change.
|
1.10.2.4 |
| 26-Oct-1993 |
mycroft | Merge changes from trunk.
|
1.10.2.3 |
| 30-Sep-1993 |
mycroft | Must convert stat tick counts to acct tick counts.
|
1.10.2.2 |
| 30-Sep-1993 |
mycroft | Update time calculations for new struct proc.
|
1.10.2.1 |
| 24-Sep-1993 |
mycroft | Make all files using spl*() #include cpu.h. Changes from trunk. init_main.c: New method of pseudo-device of initialization. kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe. softclock() only does callouts. kern_synch.c: Remove spurious declaration of endtsleep(). Adjust uses of averunnable for new struct loadav. subr_prf.c: Allow printf() formats in panic(). tty.c: averunnable changes. vfs_subr.c: va_size and va_bytes are now quads.
|
1.45.2.1 |
| 08-Aug-1998 |
eeh | Revert cdevsw mmap routines to return int.
|
1.47.12.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago
|
1.49.12.1 |
| 12-Nov-2001 |
thorpej | Sync the thorpej-mips-cache branch with -current.
|
1.49.10.2 |
| 13-Oct-2001 |
fvdl | Revert the t_dev -> t_devvp change in struct tty. The way that tty structs are currently used (especially by console ttys) aren't ready for it, and this will require quite a few changes.
|
1.49.10.1 |
| 07-Sep-2001 |
thorpej | Commit my "devvp" changes to the thorpej-devvp branch. This replaces the use of dev_t in most places with a struct vnode *.
This will form the basic infrastructure for real cloning device support (besides being architecurally cleaner -- it'll be good to get away from using numbers to represent objects).
|
1.49.8.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.49.6.4 |
| 12-Jul-2002 |
nathanw | No longer need to pull in lwp.h; proc.h pulls it in for us.
|
1.49.6.3 |
| 29-May-2002 |
nathanw | #include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t now that <sys/param.h> doesn't include <sys/sa.h>.
(Behold the Power of Ed)
|
1.49.6.2 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.49.6.1 |
| 05-Mar-2001 |
nathanw | Initial commit of scheduler activations and lightweight process support.
|
1.50.12.1 |
| 18-Dec-2002 |
gmcgarry | Merge pcred and ucred, and poolify. TBD: check backward compatibility and factor-out some higher-level functionality.
|
1.50.4.1 |
| 11-Mar-2002 |
thorpej | Make acct_lock an adaptive mutex and rename it to acct_mutex.
|
1.54.2.7 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.54.2.6 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.54.2.5 |
| 29-Nov-2004 |
skrll | Sync with HEAD.
|
1.54.2.4 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.54.2.3 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.54.2.2 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.54.2.1 |
| 02-Jul-2003 |
darrenr | Apply the aborted ktrace-lwp changes to a specific branch. This is just for others to review, I'm concerned that patch fuziness may have resulted in some errant code being generated but I'll look at that later by comparing the diff from the base to the branch with the file I attempt to apply to it. This will, at the very least, put the changes in a better context for others to review them and attempt to tinker with removing passing of 'struct lwp' through the kernel.
|
1.61.2.9 |
| 24-Mar-2008 |
yamt | sync with head.
|
1.61.2.8 |
| 04-Feb-2008 |
yamt | sync with head.
|
1.61.2.7 |
| 21-Jan-2008 |
yamt | sync with head
|
1.61.2.6 |
| 07-Dec-2007 |
yamt | sync with head
|
1.61.2.5 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.61.2.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.61.2.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.61.2.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.61.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.62.12.1 |
| 24-May-2006 |
tron | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
|
1.62.10.3 |
| 06-May-2006 |
christos | - Move kauth_cred_t declaration to <sys/types.h> - Cleanup struct ucred; forward declarations that are unused. - Don't include <sys/kauth.h> in any header, but include it in the c files that need it.
Approved by core.
|
1.62.10.2 |
| 10-Mar-2006 |
elad | generic_authorize() -> kauth_authorize_generic().
|
1.62.10.1 |
| 08-Mar-2006 |
elad | Adapt to kernel authorization KPI.
|
1.62.8.4 |
| 14-Sep-2006 |
yamt | sync with head.
|
1.62.8.3 |
| 11-Aug-2006 |
yamt | sync with head
|
1.62.8.2 |
| 26-Jun-2006 |
yamt | sync with head.
|
1.62.8.1 |
| 24-May-2006 |
yamt | sync with head.
|
1.62.6.2 |
| 01-Jun-2006 |
kardel | Sync with head.
|
1.62.6.1 |
| 04-Feb-2006 |
simonb | Adapt for timecounters: mostly use get*time() and use "time_second" instead of "time.tv_sec".
|
1.62.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.63.2.1 |
| 19-Jun-2006 |
chap | Sync with head.
|
1.66.4.10 |
| 05-Feb-2007 |
ad | - When clearing signals dequeue siginfo first and free later, once outside the lock permiter. - Push kernel_lock back in a a couple of places. - Adjust limcopy() to be MP safe (this needs redoing). - Fix a couple of bugs noticed along the way. - Catch up with condvar changes.
|
1.66.4.9 |
| 30-Jan-2007 |
ad | Remove support for SA. Ok core@.
|
1.66.4.8 |
| 28-Jan-2007 |
ad | - Remove the last use of mtsleep() - sched_pause() -> kpause()
|
1.66.4.7 |
| 11-Jan-2007 |
ad | Checkpoint work in progress.
|
1.66.4.6 |
| 29-Dec-2006 |
ad | Checkpoint work in progress.
|
1.66.4.5 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.66.4.4 |
| 17-Nov-2006 |
ad | Checkpoint work in progress.
|
1.66.4.3 |
| 24-Oct-2006 |
ad | - Redo LWP locking slightly and fix some races. - Fix some locking botches. - Make signal mask / stack per-proc for SA processes. - Add _lwp_kill().
|
1.66.4.2 |
| 21-Oct-2006 |
ad | Update for proc_representative_lwp() / calcru() signature change.
|
1.66.4.1 |
| 11-Sep-2006 |
ad | - Convert some lockmgr() locks to mutexes and RW locks. - Acquire proclist_lock and p_crmutex in some obvious places.
|
1.67.2.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.67.2.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.70.2.3 |
| 07-May-2007 |
yamt | sync with head.
|
1.70.2.2 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.70.2.1 |
| 27-Feb-2007 |
yamt | - sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
|
1.73.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.73.2.5 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.73.2.4 |
| 08-Jun-2007 |
ad | Sync with head.
|
1.73.2.3 |
| 13-May-2007 |
ad | - Pass the error number and residual count to biodone(), and let it handle setting error indicators. Prepare to eliminate B_ERROR. - Add a flag argument to brelse() to be set into the buf's flags, instead of doing it directly. Typically used to set B_INVAL. - Add a "struct cpu_info *" argument to kthread_create(), to be used to create bound threads. Change "bool mpsafe" to "int flags". - Allow exit of LWPs in the IDL state when (l != curlwp). - More locking fixes & conversion to the new API.
|
1.73.2.2 |
| 10-Apr-2007 |
ad | Nuke the deferred kthread creation stuff, as it's no longer needed. Pointed out by thorpej@.
|
1.73.2.1 |
| 09-Apr-2007 |
ad | - Add two new arguments to kthread_create1: pri_t pri, bool mpsafe. - Fork kthreads off proc0 as new LWPs, not new processes.
|
1.75.8.3 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.75.8.2 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.75.8.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.75.6.3 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.75.6.2 |
| 27-Nov-2007 |
joerg | Sync with HEAD. amd64 Xen support needs testing.
|
1.75.6.1 |
| 02-Oct-2007 |
joerg | Sync with HEAD.
|
1.76.2.1 |
| 06-Oct-2007 |
yamt | sync with head.
|
1.77.4.3 |
| 18-Feb-2008 |
mjf | Sync with HEAD.
|
1.77.4.2 |
| 27-Dec-2007 |
mjf | Sync with HEAD.
|
1.77.4.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.78.2.1 |
| 26-Dec-2007 |
ad | Sync with head.
|
1.79.4.2 |
| 08-Jan-2008 |
bouyer | Sync with HEAD
|
1.79.4.1 |
| 02-Jan-2008 |
bouyer | Sync with HEAD
|
1.83.6.2 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.83.6.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.84.2.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.86.16.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.86.12.1 |
| 20-May-2011 |
bouyer | Pull up following revision(s) (requested by dholland in ticket #1618): sys/kern/kern_acct.c: revision 1.91 Fix up sign-compare issue checking for free space. Should fix PR 43413 where accounting doesn't suspend properly.
|
1.86.10.1 |
| 03-Mar-2009 |
skrll | Sync with HEAD.
|
1.86.4.2 |
| 14-May-2008 |
wrstuden | Per discussion with ad, remove most of the #include <sys/sa.h> lines as they were including sa.h just for the type(s) needed for syscallargs.h.
Instead, create a new file, sys/satypes.h, which contains just the types needed for syscallargs.h. Yes, there's only one now, but that may change and it's probably more likely to change if it'd be difficult to handle. :-)
Per discussion with matt at n dot o, add an include of satypes.h to sigtypes.h. Upcall handlers are kinda signal handlers, and signalling is the header file that's already included for syscallargs.h that closest matches SA.
This shaves about 3000 lines off of the diff of the branch relative to the base. That also represents about 18% of the total before this checkin.
I think this reduction is very good thing.
|
1.86.4.1 |
| 10-May-2008 |
wrstuden | Initial checkin of re-adding SA. Everything except kern_sa.c compiles in GENERIC for i386. This is still a work-in-progress, but this checkin covers most of the mechanical work (changing signalling to be able to accomidate SA's process-wide signalling and re-adding includes of sys/sa.h and savar.h). Subsequent changes will be much more interesting.
Also, kern_sa.c has received partial cleanup. There's still more to do, though.
|
1.86.2.3 |
| 11-Aug-2010 |
yamt | sync with head.
|
1.86.2.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.86.2.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.88.4.4 |
| 31-May-2011 |
rmind | sync with head
|
1.88.4.3 |
| 21-Apr-2011 |
rmind | sync with head
|
1.88.4.2 |
| 05-Mar-2011 |
rmind | sync with head
|
1.88.4.1 |
| 03-Jul-2010 |
rmind | sync with head
|
1.88.2.1 |
| 17-Aug-2010 |
uebayasi | Sync with HEAD.
|
1.90.2.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.93.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.93.12.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.93.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.93.2.1 |
| 22-May-2014 |
yamt | sync with head.
for a reference, the tree before this commit was tagged as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid a limitation of cvs. ("Protocol error: too many arguments")
|
1.94.6.1 |
| 28-Aug-2017 |
skrll | Sync with HEAD
|
1.95.10.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.97.6.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|