summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Various style.Makefile(5) improvements.pjd2004-05-203-11/+15
| | | | Provoked by: ru
* Update the date.pjd2004-05-201-1/+1
| | | | Requested by: ru
* Remove unneeded lseek(2) hack to position past the 2GB point,hmp2004-05-201-18/+9
| | | | | | | | | use fseeko(3) instead. This commit fixes breakage when `lastcomm matchstring` is run. PR: bin/66765, bin/64568 Submitted by: Dan Nelson <dnelson at allantgroup.com>
* Update the document date.alc2004-05-201-1/+1
| | | | Reminded by: ru@
* In cpu_sched_exit(), we must check vm_refcnt against 0, not 1, sincetmm2004-05-201-1/+1
| | | | exit1() decrements the reference count before calling this function.
* Added "rescue".ru2004-05-201-2/+2
| | | | Submitted by: Kent Hauser <kent.hauser@verizon.net>
* Fixed printf format errors which helped break GUPROF for arches withbde2004-05-201-2/+2
| | | | 64-bit function pointers.
* Initialize the history counter type field in struct gmonparam asbde2004-05-201-0/+4
| | | | | | | threatened in rev.1.10 of usr.sbin/kgmon/kgmon.c more than 2 years ago. kgmon has been recovering from the missing initialization for too long, but the fixup there is ifdefed for i386's and shouldn't be needed for other arches.
* Clean up language.ru2004-05-201-261/+293
| | | | Reviewed by: rik
* MFi386 (1.37: GUPROF calibration macros; only routine adjustments needed).bde2004-05-201-0/+19
|
* Moved i386 asms to an i386 header. The asms are for calibration ofbde2004-05-202-19/+22
| | | | | | | | | | | | | | | | | | | | | | | | high resolution kernel profiling (options GUPROF. "U" in GUPROF stands for microseconds resolution, but the resolution is now smaller than 1 nanosecond on multi-GHz machines and the accuracy is heading towards 1 nanosecond too). Arches that support GUPROF must now provide certain macros for the calibration. GUPROF is now only supported for i386's, so the absence of the new macros for other arches doesn't break anything that wasn't already broken. amd64's have uncommitted support for GUPROF, and sparc64's have support that seems to be complete except here (there was an #error for non-i386 cases; now there are undefined macros). Changed the asms a little: - declare them as __volatile. They must not be moved, and exporting a label across asms is technically incorrect, so try harder to stop gcc moving them. - don't put the non-clobbered register "bx" in the clobber list. The clobber lists are still more conservative than necessary. - drop the non-support for gcc-1. It just gave a better error message, and this is not useful since compiling with gcc-1 would cause thousands of worse error messages. - drop the support for aout.
* Really remove the return statement this time. Thanks tomtm2004-05-201-1/+0
| | | | ru for noticing.
* Whitespace cleanupdes2004-05-201-16/+16
|
* Whitespace cleanup.des2004-05-201-22/+22
|
* Fix supposed compilation problem, using LIBDIR here can confuse core/pjd2004-05-203-2/+3
| | | | compilation.
* Whitespace cleanup.des2004-05-201-29/+29
|
* The err routine requires two arguments: an exit value and a string.mtm2004-05-202-4/+3
| | | | | Additionaly, it will exit the script so an return statements after calling it are superflous.
* - Add missing 'the'.pjd2004-05-201-1/+14
| | | | | | - Document /usr/include/geom/ directory and its subdirectories. Requested by: ru
* Merge updated patch from vendor branch (1.1.1.17)des2004-05-201-2/+40
|
* Add myself as maintainer for geom_nop, geom_stripe and geom(8).pjd2004-05-201-0/+3
|
* Make libthr async-signal-safe without costly signal masking. The guidlines Imtm2004-05-2015-622/+320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | followed are: Only 3 functions (pthread_cancel, pthread_setcancelstate, pthread_setcanceltype) are required to be async-signal-safe by POSIX. None of the rest of the pthread api is required to be async-signal-safe. This means that only the three mentioned functions are safe to use from inside signal handlers. However, there are certain system/libc calls that are cancellation points that a caller may call from within a signal handler, and since they are cancellation points calls have to be made into libthr to test for cancellation and exit the thread if necessary. So, the cancellation test and thread exit code paths must be async-signal-safe as well. A summary of the changes follows: o Almost all of the code paths that masked signals, as well as locking the pthread structure now lock only the pthread structure. o Signals are masked (and left that way) as soon as a thread enters pthread_exit(). o The active and dead threads locks now explicitly require that signals are masked. o Access to the isdead field of the pthread structure is protected by both the active and dead list locks for writing. Either one is sufficient for reading. o The thread state and type fields have been combined into one three-state switch to make it easier to read without requiring a lock. It doesn't need a lock for writing (and therefore for reading either) because only the current thread can write to it and it is an integer value. o The thread state field of the pthread structure has been eliminated. It was an unnecessary field that mostly duplicated the flags field, but required additional locking that would make a lot more code paths require signal masking. Any truly unique values (such as PS_DEAD) have been reborn as separate members of the pthread structure. o Since the mutex and condvar pthread functions are not async-signal-safe there is no need to muck about with the wait queues when handling a signal ... o ... which also removes the need for wrapping signal handlers and sigaction(2). o The condvar and mutex async-cancellation code had to be revised as a result of some of these changes, which resulted in semi-unrelated changes which would have been difficult to work on as a separate commit, so they are included as well. The only part of the changes I am worried about is related to locking for the pthread joining fields. But, I will take a closer look at them once this mega-patch is committed.
* Forced commit for rev. 1.26mtm2004-05-200-0/+0
| | | | | | | Bugfix: recursive mutex reference counting. Noticed by:Michael Bretterklieber <mbretter@inode.at> Partl Submitted by: deischen
* q§mtm2004-05-201-7/+5
|
* Stylistic changes around the previous commit:yar2004-05-201-3/+5
| | | | | | | - since the number of supported capabilities is growing, set bits in if_cap* in a consistent way; - unexpand(1) leading SPACE characters.
* Inform hier(7) manual page about /lib/geom/ directory.pjd2004-05-201-0/+7
| | | | Reminded by: ru
* Set the VLAN bits in if_capenable as well as in if_capabilitiesyar2004-05-201-0/+1
| | | | | | | | | because VLAN hardware features are enabled in em(4) by default. Note: Currently vlan(4) has a bug that it consults if_capabilities, not if_capenable. This will be fixed after all the network drivers set VLAN bits in if_capenable properly.
* - Teach CONCAT class how to talk with geom(8).pjd2004-05-202-102/+157
| | | | | | | - Remove provider if any disk was lost. - Dump CONCAT version. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* - Connect geom(8) and its libraries to the build.pjd2004-05-205-1/+9
| | | | | | | | - Connect geom_stripe and geom_nop modules to the build. - Connect STRIPE and NOP classes to the LINT build. - Disconnect gconcat(8) from the build. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* - Install includes used by STRIPE and NOP GEOM classes.pjd2004-05-203-1/+7
| | | | | | - Create needed directories. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Modules Makefiles for geom_stripe and geom_nop.pjd2004-05-202-0/+16
| | | | Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Introduce geom(8)-specific shared libraries for CONCAT, STRIPE and NOPpjd2004-05-206-0/+515
| | | | | | | GEOM classes. CONCAT should be 100% compatible with existing gconcat(8) utility, which is going to be removed. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Introduce STRIPE GEOM class. It implements RAID0 transformation and itpjd2004-05-202-0/+1016
| | | | | | | is intend to be fast. Just like CONCAT class it provides manual and auto configuration methods. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Update copyright years.den2004-05-201-0/+1
|
* Introduce NOP GEOM class. This is totally transparent GEOM class, butpjd2004-05-202-0/+478
| | | | | | | | | it is very useful for tests. One is able to destroy its provider forcibly if wants to test how other class handle such events. One is also able to specify failure probability to check how other classes handle I/O errors. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Bring in geom(8) utility. It is an universal utility for operating onpjd2004-05-209-0/+1146
| | | | | | | | | | | | GEOM classes. It works by loading a shared library via dlopen(3) mechanism with class-specific code, it is also responsible for communicating with GEOM via libgeom(3). Per-class shared libraries are going to be stored in /lib/geom/ directory. It provides also few standard commands like 'list', 'load' and 'unload' for existing classes which aren't aware of geom(8). More info will be send on freebsd-current@ mailing list. Supported by: Wheel - Open Technologies - http://www.wheel.pl
* Forgot to bump the document date, *blush*.ru2004-05-201-1/+1
|
* Document mbuf tags based on the OpenBSD manpage.ru2004-05-203-1/+263
| | | | Submitted by: Gleb Smirnoff
* Added forgotten quotes for citations.schweikh2004-05-201-6/+6
|
* Typos and nits.dannyboy2004-05-201-19/+19
|
* When checking for possible port theft, skip over a TCP inpcbyar2004-05-201-7/+3
| | | | | | | | | | | | | | unless it's in the closed or listening state (remote address == INADDR_ANY). If a TCP inpcb is in any other state, it's impossible to steal its local port or use it for port theft. And if there are both closed/listening and connected TCP inpcbs on the same localIP:port couple, the call to in_pcblookup_local() will find the former due to the design of that function. No objections raised in: -net, -arch MFC after: 1 month
* Nits fixed.kientzle2004-05-201-4/+4
| | | | Pointed out by: Daniel Harris
* Document security.jail.getfsstatroot_only sysctl.pjd2004-05-201-0/+14
| | | | | Obtained from: rwatson's commit log Approved by: rwatson
* Fix sysctl name: security.jail.getfsstate_getfsstatroot_only ->pjd2004-05-201-1/+1
| | | | | | security.jail.getfsstatroot_only. Approved by: rwatson
* More research, more shuffling and clarification.kientzle2004-05-201-119/+149
|
* Like on i386, clear the last three entries in the pml4 page when doing apeter2004-05-191-2/+7
| | | | pmap_release(), and put it the free queue marked as already zeroed.
* Fix a couple of warnings:dwmalone2004-05-192-2/+6
| | | | | | | | 1) Missing include for declaration of time conversion functions. 2) Avoid a couple of alignment warnings on 64 bit arches by memcpying the things pointed to by caddrs into variables of the right type. Bump WARNS to 6 while I'm here.
* Add missing %s so that all of the usage message gets printed.dwmalone2004-05-192-1/+2
| | | | Bump WARNS to 6 while I'm here.
* Send RADIUS gigaword data when OctetsIn or OctetsOut go over UINT32_MAX.dds2004-05-191-2/+5
| | | | | | PR: bin/61294 Submitted by: Boris Kovalenko MFC after: 3 weeks
* Add a man page for the kernel part of bpf. I made some edits to thedwmalone2004-05-193-1/+231
| | | | | | | man page after Orla, so the mistakes are probably mine. Leave a note on the door welcoming the mdoc police. Submitted by: Orla McGann <orly@cnri.dit.ie>
* Implement crashdump decoding for AMD64 as well, now that I have finallypeter2004-05-191-28/+63
| | | | got a sample to test against.
OpenPOWER on IntegriCloud