summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for displaying a process' current working directory, rootmarcus2008-02-094-6/+82
| | | | | | | | | | | | | | | | | | | | | | | | directory, and jail directory within procstat. While this functionality is available already in fstat, encapsulating it in the kern.proc.filedesc sysctl makes it accessible without using kvm and thus without needing elevated permissions. The new procstat output looks like: PID COMM FD T V FLAGS REF OFFSET PRO NAME 76792 tcsh cwd v d -------- - - - /usr/src 76792 tcsh root v d -------- - - - / 76792 tcsh 15 v c rw------ 16 9130 - - 76792 tcsh 16 v c rw------ 16 9130 - - 76792 tcsh 17 v c rw------ 16 9130 - - 76792 tcsh 18 v c rw------ 16 9130 - - 76792 tcsh 19 v c rw------ 16 9130 - - I am also bumping __FreeBSD_version for this as this new feature will be used in at least one port. Reviewed by: rwatson Approved by: rwatson
* Lock cache vnode when VOP_FSYNC() is called on a Coda vnode.rwatson2008-02-091-2/+5
| | | | MFC after: 1 month
* Make all calls to vn_lock() in Coda, including recently added ones,rwatson2008-02-092-7/+7
| | | | | | | use LK_RETRY, since failure is undesirable (and not handled). MFC after: 1 month Pointed out by: kib
* The Coda module was originally ported to NetBSD from Mach by rvb, andrwatson2008-02-086-13/+16
| | | | | | | | | | then later to FreeBSD. Update various NetBSD-related comments: in some cases delete them because they don't appply, in others update to say FreeBSD as they still apply but in FreeBSD (and might for that matter no longer apply on NetBSD), and flag one case where I'm not sure whether it applies. MFC after: 1 month
* Fix truncation of lines at LINE_MAX characters by dynamicallyghelmer2008-02-081-15/+61
| | | | | | extending line buffers. PR: bin/76578
* Before invoking vnode operations on cache vnodes, acquire the vnoderwatson2008-02-081-1/+9
| | | | | | | | | | | | | | | | | | locks of those vnodes. Probably, Coda should do the same lock sharing/ pass-through that is done for nullfs, but in the mean time this ensures that locks are adequately held to prevent corruption of data structures in the cache file system. Assuming most operations came from the top layer of Coda and weren't performed directly on the cache vnodes, in practice this corruption was relatively unlikely as the Coda vnode locks were ensuring exclusive access for most consumers. This causes WITNESS to squeal like a pig immediately when Coda is used, rather than waiting until file close; I noticed these problems because of the lack of said squealing. MFC after: 1 month
* Remove undefined coda excluded by #if 1 #else, which previously protectedrwatson2008-02-081-12/+0
| | | | | | | vget() calls using inode numbers to query the root of /coda, which is not needed since we now cache the root vnode with the mountpoint. MFC after: 1 month
* Conver all explicit instances to VOP_ISLOCKED(arg, NULL) intoattilio2008-02-085-12/+13
| | | | | | | | VOP_ISLOCKED(arg, curthread). Now, VOP_ISLOCKED() and lockstatus() should only acquire curthread as argument; this will lead in axing the additional argument from both functions, making the code cleaner. Reviewed by: jeff, kib
* Note m_collapse addition.sam2008-02-081-0/+4
|
* belated bump for the addition of m_collapsesam2008-02-081-1/+1
|
* Introduce -i to SYNOPSIS, forgotten by krion@.ru2008-02-081-1/+1
|
* WARNS fixes: mainly constness and avoid comparing signed withdwmalone2008-02-086-14/+19
| | | | | unsigned by making array indicies unsigned. Also note one or two unused parameters.
* WARNS fixes: remove two unused variables and add some constness.dwmalone2008-02-081-4/+3
|
* Use memcpy(3) instead of the BSD-specific bcopy(3).des2008-02-083-6/+6
| | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 2 weeks
* s/MAXPATHLEN/PATH_MAX/ to reflect five-year old change to the code :)des2008-02-081-1/+1
| | | | | Submitted by: Joerg Sonnenberger <joerg@britannica.bec.de> MFC after: 2 weeks
* Fix a bug in lazy deallocation that was introduced whenjasone2008-02-081-7/+10
| | | | | | | | arena_dalloc_lazy_hard() was split out of arena_dalloc_lazy() in revision 1.162. Reduce thundering herd problems in lazy deallocation by randomly varying how many probes a thread does before taking the slow path.
* Fix truncl() when the result should be -0.0L. When the result is +-0.0L,bde2008-02-081-1/+2
| | | | | it must have the same sign as the arg in all rounding modes, but it was always +0.0L.
* Oops, fix the fix in rev.1.10. logb() and logbf() were broken onbde2008-02-081-5/+4
| | | | | | | denormals, and logb() remained broken after 1.10 because the fix for logbf() was incompletely translated. Convert to __FBSDID().
* Clean up manipulation of chunk page map elements to remove some tenuousjasone2008-02-081-362/+357
| | | | | | | | | | | assumptions about whether bits are set at various times. This makes adding other flags safe. Reorganize functions in order to inline i{m,c,p,s,re}alloc(). This allows the entire fast-path call chains for malloc() and free() to be inlined. [1] Suggested by: [1] Stuart Parmenter <stuart@mozilla.com>
* Fix netname() [1] and routename() on big-endian LP64 archs.marius2008-02-072-8/+7
| | | | | Submitted by: Yuri Pankov [1] MFC after: 3 days
* The previous commit message was wrong. It should have read:rink2008-02-070-0/+0
| | | | | | | | | | | | "Fix bootparamd on 64 bit platforms - at least amd64 was broken due to the code believing long == 32 bits and using it to store/compare IPv4 addresses." Note the "== 32 bits" - the previous commit message stated 64 bits, which is plain wrong. PR: bin/112163 Pointed out by: obrien Approved by: imp (mentor, implicit)
* style(9) (verifed no-change in .o's)obrien2008-02-071-14/+13
|
* Don't reset DST computed by strptime() (when e.g. setting theru2008-02-071-6/+3
| | | | | | | date via -f %s). Reported by: Eugene Grosbein Diagnosed by: Miguel Lopes Santos Ramos
* If the vhid already present, return EEXIST instead ofglebius2008-02-071-1/+1
| | | | non-informative EINVAL.
* Remove unused structure member from struct in_ifadown_arg.glebius2008-02-071-2/+1
|
* Use rtalloc1() instead of rtalloc_ign(). It returns a lockedglebius2008-02-071-24/+17
| | | | | | rtentry. We quickly copy the fields of interest, and then RTFREE_LOCKED(). This should be faster then lock & unlock the rtentry twice.
* Add a note that ipfw states do not implicitly match ICMP error messages.yar2008-02-071-0/+6
|
* Use a better method of scaling by 2**k. Instead of adding to thebde2008-02-072-26/+16
| | | | | | | | | | | | | | | | | | | | | | | | exponent bits of the reduced result, construct 2**k (hopefully in parallel with the construction of the reduced result) and multiply by it. This tends to be much faster if the construction of 2**k is actually in parallel, and might be faster even with no parallelism since adjustment of the exponent requires a read-modify-wrtite at an unfortunate time for pipelines. In some cases involving exp2* on amd64 (A64), this change saves about 40 cycles or 30%. I think it is inherently only about 12 cycles faster in these cases and the rest of the speedup is from partly-accidentally avoiding compiler pessimizations (the construction of 2**k is now manually scheduled for good results, and -O2 doesn't always mess this up). In most cases on amd64 (A64) and i386 (A64) the speedup is about 20 cycles. The worst case that I found is expf on ia64 where this change is a pessimization of about 10 cycles or 5%. The manual scheduling for plain exp[f] is harder and not as tuned. Details specific to expm1*: - the saving is closer to 12 cycles than to 40 for expm1* on i386 (A64). For some reason it is much larger for negative args. - also convert to __FBSDID().
* - Add THREAD_LOCKPTR_ASSERT() to assert that the thread's lock points atjeff2008-02-073-8/+19
| | | | | | | | | | the provided lock or &blocked_lock. The thread may be temporarily assigned to the blocked_lock by the scheduler so a direct comparison can not always be made. - Use THREAD_LOCKPTR_ASSERT() in the primary consumers of the scheduling interfaces. The schedulers themselves still use more explicit asserts. Sponsored by: Nokia
* From the 4 February 2008 update:dougb2008-02-071-3/+8
| | | | IPv6 addresses for 6 of the root name servers!
* - In rw_wunlock_hard prefer to wakeup writers if there are both readersjeff2008-02-071-4/+4
| | | | | | | and writers available. Doing otherwise can cause deadlocks as no read locks can proceed while there are write waiters. Sponsored by: Nokia
* Change shm_dotruncate() so that it correctly handles cached pages that spanalc2008-02-071-0/+4
| | | | | | | the end of the object. (This change is analogous to revision 1.237 of vm/vnode_pager.c.) Discussed with: jhb
* Use a better method of scaling by 2**k. Instead of adding to thebde2008-02-076-55/+57
| | | | | | | | | | | | | | | | | | | | | exponent bits of the reduced result, construct 2**k (hopefully in parallel with the construction of the reduced result) and multiply by it. This tends to be much faster if the construction of 2**k is actually in parallel, and might be faster even with no parallelism since adjustment of the exponent requires a read-modify-wrtite at an unfortunate time for pipelines. In some cases involving exp2* on amd64 (A64), this change saves about 40 cycles or 30%. I think it is inherently only about 12 cycles faster in these cases and the rest of the speedup is from partly-accidentally avoiding compiler pessimizations (the construction of 2**k is now manually scheduled for good results, and -O2 doesn't always mess this up). In most cases on amd64 (A64) and i386 (A64) the speedup is about 20 cycles. The worst case that I found is expf on ia64 where this change is a pessimization of about 10 cycles or 5%. The manual scheduling for plain exp[f] is harder and not as tuned. This change ld128/s_exp2l.c has not been tested.
* Add missing #includedes2008-02-061-0/+1
| | | | | | Spotted by: tinderbox Submitted by: Pietro Cerutti <gahr@gahr.ch> Pointy hat to: des
* Fix the Xlist so it actually works with 'tar -X', and update the upgradedes2008-02-062-11/+10
| | | | instructions accordingly.
* As per discussion, commit experimental metadata for my contrib packages.des2008-02-062-0/+16
| | | | | The idea is to have a FREEBSD-vendor file for every third-party package in the tree.
* Make the openfirmware getchar entry point non-blocking. This catches upgrehan2008-02-061-4/+4
| | | | | | with jhb's 2005/05/27 loader multiple-console change. Tested by: marius/sparc64, grehan/ofwppc
* Yet another pointy hat: when I zapped FBSDprivate_1.1, I forgot to movedes2008-02-061-0/+1
| | | | its contents to FBSDprivate_1.0.
* Add pthread_mutex_isowned_np() here as well; libthr and libkse are supposeddes2008-02-062-0/+15
| | | | | | to have identical functionality. MFC after: 2 weeks
* Remove unnecessary prototype.des2008-02-061-1/+0
|
* Add pthread_mutex_isowned_np() so there is no need for an additionaldes2008-02-062-0/+2
| | | | | | prototype next to the implementation. MFC after: 2 weeks
* Do not use bcmp() to compare two bytes with constants.mav2008-02-062-4/+4
|
* Previous commit had a typo that resulted in symbol versioning beingdes2008-02-061-1/+1
| | | | | | (silently) disabled for libkse... Pointy hat to: des
* Give libkse the same treatment as libthr re. symbol versioning.des2008-02-062-8/+2
| | | | MFC after: 2 weeks
* Convert pthread.map to the format expected by version_gen.awk, and modifydes2008-02-062-11/+3
| | | | | | the Makefile accordingly; libthr now explicitly uses libc's Versions.def. MFC after: 2 weeks
* Remove incorrectly added FBSDprivate_1.1 namespace, and move symbols whichdes2008-02-061-12/+4
| | | | are new in FreeBSD 8 to the appropriate namespace.
* Revert rev. 1.128, we have a hard link generated from newdelphij2008-02-061-2/+0
| | | | | | | hptrr(4) to rr232x. Pointed out by: bruffer Pointy hat to: delphij
* mutex_islocked_np -> mutex_isowned_npdes2008-02-062-9/+9
|
* Per discussion on -threads, rename _islocked_np() to _isowned_np().des2008-02-063-6/+6
|
* The man page of ofwdump(8) is installed as usr/share/man/man8/ofwdump.8.gzmarcel2008-02-061-0/+2
| | | | | again on powerpc and sparc64. Un-obsolete it for these two so that we don't remove it right after installing it.
OpenPOWER on IntegriCloud