#
91afe087 |
| 18-Aug-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
A side effect of some debugging: prototypify and deregister.
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
01609114 |
| 29-Jun-2002 |
Alfred Perlstein <alfred@FreeBSD.org> |
more caddr_t removal.
|
#
b4a1d0de |
| 26-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Hide the private parts of timecounter from a couple of places that don't really need to know the gory details.
|
#
e1d970f1 |
| 15-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Improve the implementation of adjtime(2).
Apply the change as a continuous slew rather than as a series of discrete steps and make it possible to adjust arbitraryly huge amounts of time in either di
Improve the implementation of adjtime(2).
Apply the change as a continuous slew rather than as a series of discrete steps and make it possible to adjust arbitraryly huge amounts of time in either direction.
In practice this is done by hooking into the same once-per-second loop as the NTP PLL and setting a suitable frequency offset deducting the amount slewed from the remainder. If the remaining delta is larger than 1 second we slew at 5000PPM (5msec/sec), for a delta less than a second we slew at 500PPM (500usec/sec) and for the last one second period we will slew at whatever rate (less than 500PPM) it takes to eliminate the delta entirely.
The old implementation stepped the clock a number of microseconds every HZ to acheive the same effect, using the same rates of change.
Eliminate the global variables tickadj, tickdelta and timedelta and their various use and initializations.
This removes the most significant obstacle to running timecounter and NTP housekeeping from a timeout rather than hardclock.
show more ...
|
#
7edfb592 |
| 10-Apr-2002 |
John Baldwin <jhb@FreeBSD.org> |
- Change settime() to take a thread as its first argument instead of a proc so it can use td_ucred. - Push Giant down into the end of settime() where we actually set the time on the timecounter a
- Change settime() to take a thread as its first argument instead of a proc so it can use td_ucred. - Push Giant down into the end of settime() where we actually set the time on the timecounter and time of day clock. - Remove Giant from clock_settime(). - Push Giant down in settimeofday() to just protect the 'tz' global variable.
show more ...
|
#
44731cab |
| 01-Apr-2002 |
John Baldwin <jhb@FreeBSD.org> |
Change the suser() API to take advantage of td_ucred as well as do a general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes
Change the suser() API to take advantage of td_ucred as well as do a general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag.
Discussed on: smp@
show more ...
|
#
4d77a549 |
| 19-Mar-2002 |
Alfred Perlstein <alfred@FreeBSD.org> |
Remove __P.
|
#
21dcdb38 |
| 18-Feb-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Take the common case of gettimeofday(&tv, NULL) out from under Giant.
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
d501d04b |
| 26-Sep-2001 |
Robert Watson <rwatson@FreeBSD.org> |
o Modify static settime() to accept the proc * for the process requesting a time change, and callers so that they provide td->td_proc. o Modify settime() to use securevel_gt() for securelevel check
o Modify static settime() to accept the proc * for the process requesting a time change, and callers so that they provide td->td_proc. o Modify settime() to use securevel_gt() for securelevel checking.
Obtained from: TrustedBSD Project
show more ...
|
#
b40ce416 |
| 12-Sep-2001 |
Julian Elischer <julian@FreeBSD.org> |
KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is fu
KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org, dillon@freebsd.org
X-MFC after: ha ha ha ha
show more ...
|
#
fb99ab88 |
| 01-Sep-2001 |
Matthew Dillon <dillon@FreeBSD.org> |
Giant Pushdown
clock_gettime() clock_settime() nanosleep() settimeofday() adjtime() getitimer() setitimer() __sysctl() ogetkerninfo() sigaction() osigaction() sigpending() osigpending() osigvec() os
Giant Pushdown
clock_gettime() clock_settime() nanosleep() settimeofday() adjtime() getitimer() setitimer() __sysctl() ogetkerninfo() sigaction() osigaction() sigpending() osigpending() osigvec() osigblock() osigsetmask() sigsuspend() osigsuspend() osigstack() sigaltstack() kill() okillpg() trapsignal() nosys()
show more ...
|
#
fb919e4d |
| 01-May-2001 |
Mark Murray <markm@FreeBSD.org> |
Undo part of the tangle of having sys/lock.h and sys/mutex.h included in other "system" header files.
Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys
Undo part of the tangle of having sys/lock.h and sys/mutex.h included in other "system" header files.
Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files.
Sort sys/*.h includes where possible in affected files.
OK'ed by: bde (with reservations)
show more ...
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
37824023 |
| 07-Mar-2001 |
John Baldwin <jhb@FreeBSD.org> |
Lock the process while sending it SIGARLM and updating p_realtimer.
|
#
4f559836 |
| 27-Nov-2000 |
Jake Burkholder <jake@FreeBSD.org> |
Use callout_reset instead of timeout(9). Most callouts are statically allocated, 2 have been added to struct proc for setitimer and sleep.
Reviewed by: jhb, jlemon
|
Revision tags: release/4.2.0, release/4.1.1_cvs, release/4.1.0, release/3.5.0_cvs |
|
#
ed6aff73 |
| 18-Apr-2000 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove unneeded <sys/buf.h> includes.
Due to some interesting cpp tricks in lockmgr, the LINT kernel shrinks by 924 bytes.
|
#
91266b96 |
| 20-Mar-2000 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Isolate the Timecounter internals in their own two files.
Make the public interface more systematically named.
Remove the alternate method, it doesn't do any good, only ruins performance.
Add coun
Isolate the Timecounter internals in their own two files.
Make the public interface more systematically named.
Remove the alternate method, it doesn't do any good, only ruins performance.
Add counters to profile the usage of the 8 access functions.
Apply the beer-ware to my code.
The weird +/- counts are caused by two repocopies behind the scenes: kern/kern_clock.c -> kern/kern_tc.c sys/time.h -> sys/timetc.h (thanks peter!)
show more ...
|
Revision tags: release/4.0.0_cvs, release/3.4.0_cvs |
|
#
02c58685 |
| 30-Oct-1999 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the "rw" argument, rather than hijacking B_{READ|WRITE}.
Fix two bugs (physio & cam) resulting by the confusion caused by this.
Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the "rw" argument, rather than hijacking B_{READ|WRITE}.
Fix two bugs (physio & cam) resulting by the confusion caused by this.
Submitted by: Tor.Egge@fast.no Reviewed by: alc, ken (partly)
show more ...
|
Revision tags: release/3.3.0_cvs |
|
#
c3aac50f |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
#
e96c1fdc |
| 27-Jun-1999 |
Peter Wemm <peter@FreeBSD.org> |
Minor tweaks to make sure (new) prerequisites for <sys/buf.h> (mostly splbio()/splx()) are #included in time.
|
Revision tags: release/3.2.0 |
|
#
f711d546 |
| 27-Apr-1999 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Suser() simplification:
1: s/suser/suser_xxx/
2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>.
3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/
Th
Suser() simplification:
1: s/suser/suser_xxx/
2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>.
3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/
The remaining suser_xxx() calls will be scrutinized and dealt with later.
There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce.
More changes to the suser() API will come along with the "jail" code.
show more ...
|
#
c0bd94a7 |
| 07-Apr-1999 |
Nick Sayer <nsayer@FreeBSD.org> |
More secure clock management. Allow positive steps only once per second for as much as one second, but no more. Allows a miscreant to double-time march the clock, but no worse.
XXX Unlike putting ne
More secure clock management. Allow positive steps only once per second for as much as one second, but no more. Allows a miscreant to double-time march the clock, but no worse.
XXX Unlike putting negative deltas in a while(1), performing small positive steps inside of a while(1) will return EPERM for the unpermitted ones. Repeated negative deltas are clamped without error (but the kernel does log a notice).
show more ...
|
#
3f92429a |
| 07-Apr-1999 |
Matt Jacob <mjacob@FreeBSD.org> |
Fix last delta so file would compile again- I think I got it right. Add a clarifying (to me at least) comment. Some formatting fixes.
|
#
fcae3aa6 |
| 07-Apr-1999 |
Nick Sayer <nsayer@FreeBSD.org> |
If securelevel>1, allow the clock to be adjusted negatively only up to 1 second prior to the highest the clock has run so far. This allows time adjusters like xntpd to do their work, but the worst a
If securelevel>1, allow the clock to be adjusted negatively only up to 1 second prior to the highest the clock has run so far. This allows time adjusters like xntpd to do their work, but the worst a miscreant can do is "freeze" the clock, not go back in time.
We still need to decide on an algorithm to clamp positive adjustments. As it stands, it is possible to achieve arbitrary negative adjustments by "wrapping" time around.
PR: 10361
show more ...
|
#
a5c9bce7 |
| 25-Feb-1999 |
Bruce Evans <bde@FreeBSD.org> |
Added a used #include (don't depend on "vnode_if.h" including <sys/buf.h>).
|
Revision tags: release/3.1.0 |
|
#
d254af07 |
| 27-Jan-1999 |
Matthew Dillon <dillon@FreeBSD.org> |
Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile
|