summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Simplify system time accounting for profiling.phk2006-02-0814-72/+49
| | | | | | | | | | 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.
* Fix for an inappropriate bzero of the ICMPv6 stats. The code was zero'ing ↵gnn2006-02-081-1/+1
| | | | | | | | 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
* Teach gbde(8) to use a key file in addition to a passphrase. Thiscperciva2006-02-082-25/+85
| | | | | | | | 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
* Garbage collect a file that no longe is used (replaced by mpi_log_fc.h).mjacob2006-02-081-117/+0
|
* ".Pp before .Sh is redundant, the latter asserts for a vertical spacemarcel2006-02-081-1/+0
| | | | | already." -- ru@
* Acquire vnode lock around call to VOP_GETATTR() in audit_record_write().rwatson2006-02-071-0/+2
| | | | | | | | 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
* Set the MAC address after we just read it at attach time, as it seems needed.cognet2006-02-071-0/+11
|
* Modify the way we account for CPU time spent (step 1)phk2006-02-0716-32/+71
| | | | | | | | | | | | | | | | 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.
* Set m_pkthdr.len and m_pkthdr.rcvif.cognet2006-02-071-1/+4
|
* The code in rn_walktree_from() that checks if we backed up too farqingli2006-02-071-1/+9
| | | | | | | | | | | | 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
* - Add default choice option for --yesno box.jkim2006-02-072-92/+63
| | | | - Reduce trivial code duplications.
* Remove two unnecessary type casts, of which both had a typo inqingli2006-02-071-2/+2
| | | | | | | it anyways. Approved by: andre MFC after: 3 days
* Fixes a crash due to the memory of the newly allocated syncache entryqingli2006-02-071-0/+1
| | | | | | | | 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
* Provide some anti-footshooting. Don't allow the user to set the intervaljhb2006-02-071-2/+23
| | | | | | | | | | 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
* This file isn't GENERIC, so change the headerimp2006-02-072-2/+4
|
* Rather than pull in all the phy, just pull in the lxt phy that we needimp2006-02-071-1/+2
| | | | | | | for this board (although our lxtphy driver isn't claiming it, but that's a different problem). This saves 57k in this kernel.
* Allow one to subset phy. If you want the kitchen sink, use deviceimp2006-02-071-26/+30
| | | | | | | | 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.
* Detach the children before we delete them. This is a little cleanerimp2006-02-071-10/+18
| | | | | | 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.
* INET doesn't belong to opt_inet6.h: INET6 belongs to it.yar2006-02-071-1/+4
|
* Clean up some sysctl descriptions, debug messages etc.brueffer2006-02-071-7/+7
| | | | | Approved by: pjd MFC after: 3 days
* - Add a kthread to periodically call acctwatch() when accounting is activejhb2006-02-071-28/+128
| | | | | | | | | | | | | | | 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
* This commit was generated by cvs2svn to compensate for changes in r155429,harti2006-02-072-0/+25
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor patch: string_get_max() function to return strings with a maximumharti2006-02-072-0/+25
| | | | | | | | SNMP string length.
* | Fix queue drop logic when the queue overflows: decrement queue length.rwatson2006-02-071-0/+1
| | | | | | | | Obtained from: TrustedBSD Project
* | Remove .depend when doing "make cleandir".ru2006-02-071-1/+1
| |
* | Since em(4) taskqueue is a new network context, we need to conditionallyglebius2006-02-071-1/+2
| | | | | | | | | | | | lock Giant here. Submitted by: Andrey V. Elsukov <bu7cher yandex.ru>
* | Fix five years old bug in ip_reass(): if we are using 'full' (i.e. includingoleg2006-02-071-0/+7
| | | | | | | | | | | | | | | | | | | | 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
* | Remove attempts to use mknod.ceri2006-02-073-89/+7
| | | | | | | | Approved by: jhb
* | - No need to WANTPARENT when we're just going to vrele it in a deadlockjeff2006-02-071-4/+1
| | | | | | | | | | | | | | prone way later. Reported by: kkenn MFC After: 3 days
* | When there are no interesting information in output, exit with 0.matteo2006-02-071-3/+3
| | | | | | | | | | | | | | PR: conf/92299 Submitted by: Petr Rehor <prehor@gmail.com> Approved by: philip (mentor) MFC after: 3 days
* | This commit was generated by cvs2svn to compensate for changes in r155420,harti2006-02-071-714/+714
|\ \ | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | Vendor patch: remove the <CR>s that somehow crept in during initial commit.harti2006-02-071-714/+714
| | |
* | | Review and update the processor/chipset specific support. Replace themarcel2006-02-071-57/+14
| | | | | | | | | | | | dead links to the Itanium and Itanium 2 pages on the Intel site.
* | | o Review and update the support for devices on ia64.marcel2006-02-072-36/+28
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Add a HARDWARE section, required for autogeneration of the releasemarcel2006-02-071-0/+18
| | | | | | | | | | | | | | | | | | notes. MFC after: 3 days
* | | Add uart(4).marcel2006-02-071-0/+1
| | | | | | | | | | | | MFC after: 3 days
* | | Use ps_linfo to retrieve LWP info, current it is used to retrievedavidxu2006-02-071-0/+6
| | | | | | | | | | | | signal mask and pending signals.
* | | Use ps_linfo to retrieve LWP info.davidxu2006-02-071-1/+1
| | |
* | | Introduce a new proc service routine ps_linfo() to get LWP info.davidxu2006-02-072-0/+15
| | |
* | | Replace ptrace syscall with ps_lgetgregs to check a LWP's existence.davidxu2006-02-071-2/+2
| | |
* | | Allocate memory for the MCA state information with M_NOWAIT. We canmarcel2006-02-071-1/+1
| | | | | | | | | | | | | | | | | | get a MCA event at any moment and it may not be safe to sleep. MFC after: 3 days
* | | Add support for audit pipe special devices, which allow user spacerwatson2006-02-064-0/+551
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Alphabetize.rwatson2006-02-061-3/+3
| | |
* | | Manage audit record memory with the slab allocator, turningrwatson2006-02-061-100/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | - Call mii_phy_probe() after we allocated an ifp. mii has this evilcognet2006-02-061-2/+4
| | | | | | | | | | | | | | | | | | 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.
* | | Regenerate.rwatson2006-02-061-49/+49
| | |
* | | Assign audit event identifiers to ibcs2 system calls.rwatson2006-02-061-50/+50
| | | | | | | | | | | | Obtained from: TrustedBSD Project
* | | - Always call exec_free_args() in kern_execve() instead of doing it in alljhb2006-02-0610-33/+9
| | | | | | | | | | | | | | | | | | 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.
* | | Add a kern_eaccess() function and use it to implement xenix_eaccess()jhb2006-02-064-7/+21
| | | | | | | | | | | | | | | | | | rather than kern_access(). Suggested by: rwatson
* | | - Move the wakeup() for exiting kthreads out of exit1() and intojhb2006-02-062-6/+12
| | | | | | | | | | | | | | | | | | kthread_exit() as that is cleaner and less obscured. It also does the wakeup sooner. - Add some comments to kthread_exit().
OpenPOWER on IntegriCloud