| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
Rename struct thread's td_sticks to td_pticks, we will need the
other name for more appropriately named use shortly. Reduce it
from uint64_t to u_int.
Clear td_pticks whenever we enter the kernel instead of recording
its value as reference for userret(). Use the absolute value of
td->pticks in userret() and eliminate third argument.
|
|
|
|
|
|
|
|
| |
the wrong structure member but setting the correct one.
Submitted by: James dot Juran at baesystems dot com
Reviewed by: gnn
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
makes it practical to use GBDE for "something you have plus something
you know" security together with a USB flash drive.
Reviewed by: phk
MFC after: 7 days
|
| |
|
|
|
|
|
| |
already."
-- ru@
|
|
|
|
|
|
|
|
| |
In the future, we may want to acquire the lock early in the function and
hold it across calls to vn_rdwr(), etc, to avoid multiple acquires.
Spotted by: kris (bugmagnet)
Obtained from: TrustedBSD Project
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Keep track of time spent by the cpu in various contexts in units of
"cputicks" and scale to real-world microsec^H^H^H^H^H^H^H^Hclock_t
only when somebody wants to inspect the numbers.
For now "cputicks" are still derived from the current timecounter
and therefore things should by definition remain sensible also on
SMP machines. (The main reason for this first milestone commit is
to verify that hypothesis.)
On slower machines, the avoided multiplications to normalize timestams
at every context switch, comes out as a 5-7% better score on the
unixbench/context1 microbenchmark. On more modern hardware no change
in performance is seen.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
did not stop at the right node. Change the backtracking check from
smaller-than to smaller-or-equal to prevent this from happening.
While here fix one additional problem where the insertion of the
default route traversed the entire tree.
PR: kern/38752
Submitted by: qingli (before I became committer)
Reviewed by: andre
MFC after: 3 days
|
|
|
|
| |
- Reduce trivial code duplications.
|
|
|
|
|
|
|
| |
it anyways.
Approved by: andre
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
in syncache_lookup() is not cleared and may lead to an arbitrary and
bogus rtentry pointer which later gets free'd.
Reviewed by: andre
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
| |
for acctwatch() runs to be negative or zero as this could result in either
a possible hang (or panic if INVARIANTS is on). Previously the accounting
code handled the <= 0 case by calling acctwatch on every clock tick (eww!)
due to an implementation detail of callout_reset(). (Tick counts of
<= 0 are converted to 1).
MFC after: 3 days
|
| |
|
|
|
|
|
|
|
| |
for this board (although our lxtphy driver isn't claiming it, but that's
a different problem).
This saves 57k in this kernel.
|
|
|
|
|
|
|
|
| |
miibus (like today). If you want a subset, choose device mii and zero
or more phy to include. We always include unkphy. We make use of
the | functionality that ruslan recently added to config.
This allowed me to trim 57k from my KB9202 kernel.
|
|
|
|
|
|
| |
than just deleting them. Also add comments about why we do this.
Given the current behavior of delete_child, I don't think this changes
anything. It just feels cleaner.
|
| |
|
|
|
|
|
| |
Approved by: pjd
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
instead of calling acctwatch() from softclock. The acctwatch() function
needs to hold an sx lock and also makes a VFS call, and neither of these
are good things (or safe) to do from a callout. The kthread only exists
and is running when accounting is turned on; it is started and stopped
as needed. I didn't run acctwatch() via the thread taskqueue at Robert's
request as he was worried that if the accounting file was over NFS the
VFS_STAT() calls might stall other work on the taskqueue.
- Add an acct_disable() function to take care of closing the accounting
vnode and cleaning up so we don't duplicate the same code in two
different places.
MFC after: 3 days
|
|\
| |
| |
| | |
which included commits to RCS files with non-trunk default branches.
|
| |
| |
| |
| | |
SNMP string length.
|
| |
| |
| |
| | |
Obtained from: TrustedBSD Project
|
| | |
|
| |
| |
| |
| |
| |
| | |
lock Giant here.
Submitted by: Andrey V. Elsukov <bu7cher yandex.ru>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
pseudo header) hardware rx checksum offloading ip_reass() fails to calculate
TCP/UDP checksum for reassembled packet correctly. This also should fix
recent 'NFS over UDP over bge' issue exposed by if_bge.c rev. 1.123
Reviewed by: sam (earlier version), bde
Approved by: glebius (mentor)
MFC after: 2 weeks
|
| |
| |
| |
| | |
Approved by: jhb
|
| |
| |
| |
| |
| |
| |
| | |
prone way later.
Reported by: kkenn
MFC After: 3 days
|
| |
| |
| |
| |
| |
| |
| | |
PR: conf/92299
Submitted by: Petr Rehor <prehor@gmail.com>
Approved by: philip (mentor)
MFC after: 3 days
|
|\ \
| | |
| | |
| | | |
which included commits to RCS files with non-trunk default branches.
|
| | | |
|
| | |
| | |
| | |
| | | |
dead links to the Itanium and Itanium 2 pages on the Intel site.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
o Add uart(4).
o Remove sab(4) and zs(4) (sparc64 only), as their functionality
has been takien over by uart(4).
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | |
| | | |
notes.
MFC after: 3 days
|
| | |
| | |
| | |
| | | |
MFC after: 3 days
|
| | |
| | |
| | |
| | | |
signal mask and pending signals.
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
get a MCA event at any moment and it may not be safe to sleep.
MFC after: 3 days
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
applications to insert a "tee" in the live audit event stream. Records
are inserted into a per-clone queue so that user processes can pull
discreet records out of the queue. Unlike delivery to disk, audit pipes
are "lossy", dropping records in low memory conditions or when the
process falls behind real-time events. This mechanism is appropriate
for use by live monitoring systems, host-based intrusion detection, etc,
and avoids applications having to dig through active on-disk trails that
are owned by the audit daemon.
Obtained from: TrustedBSD Project
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
initialization routines into a ctor, tear-down to a dtor, cleaning
up, etc. This will allow audit records to be allocated from
per-cpu caches.
On recent FreeBSD, dropping the audit_mtx around freeing to UMA is
no longer required (at one point it was possible to acquire Giant
on that path), so a mutex-free thread-local drain is no longer
required.
Obtained from: TrustedBSD Project
|
| | |
| | |
| | |
| | |
| | |
| | | |
hack where it assumes the first field of the driver softc is the struct
ifnet, and it copies its value in mii_phy_probe().
- In the interrupt handler, set the mbuf m_len field on packet receive.
|
| | | |
|
| | |
| | |
| | |
| | | |
Obtained from: TrustedBSD Project
|
| | |
| | |
| | |
| | |
| | |
| | | |
the callers if the exec either succeeds or fails early.
- Move the code to call exit1() if the exec fails after the vmspace is
gone to the bottom of kern_execve() to cut down on some code duplication.
|
| | |
| | |
| | |
| | |
| | |
| | | |
rather than kern_access().
Suggested by: rwatson
|
| | |
| | |
| | |
| | |
| | |
| | | |
kthread_exit() as that is cleaner and less obscured. It also does the
wakeup sooner.
- Add some comments to kthread_exit().
|