summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* dhclient-script relied on incorrect behavior of SIOCAIFADDR ioctl,glebius2011-12-131-1/+1
| | | | | | | | | | | | that changed 0.0.0.0/0.0.0.0 prefix to 0.0.0.0/255.0.0.0. In the r228313 this behavior was fixed, and since dhclient-script got broken. I'm not sure this fix is a perfect one, it just changes dhclient-script to set 0.0.0.0/255.0.0.0 explicitly. PR: kern/163206
* - Fix different variable types use in different files after r121184,mav2011-12-131-6/+6
| | | | | | | causing problems on amd64. - s/%lud/%lu/. MFC after: 1 month
* Fix few bugs in isp(4) target mode support:mav2011-12-131-11/+15
| | | | | | | | | | | | | | - in destroy_lun_state() assert hold == 1 instead of 0, as it should receive hold taken by the create_lun_state() or get_lun_statep() before; - fix hold count leak inside rls_lun_statep() that also fired above assert; - in destroy_lun_state() use SIM bus number instead of SIM path id for ISP_GET_PC_ADDR(), as it was before r196008; - make isp_disable_lun() to set status in CCB; - make isp_target_mark_aborted() set status into the proper CCB. Reviewed by: mjacob Sponsored by: iXsystems, inc. MFC after: 1 month
* Staticify dumpfs.ed2011-12-131-20/+20
| | | | | | This tool only consists of a single C file, so we can simply mark everything except main() static. This seems to shave off about 8% of the binary size.
* The "inet" keyword in the "ifconfig_IF_aliasN" is mandatory forru2011-12-131-3/+7
| | | | | | IPv4 aliases to work since network.subr@197139. MFC after: 3 days
* Some cleanup of BOOTP code. Initially I wanted to just change the ifioctl()glebius2011-12-131-236/+177
| | | | | | | | | | | | | usage, but end up with more changes. - Use SIOCAIFADDR instead of old rusty SIOCSIFADDR, SIOCSIFBRDADDR and SIOCSIFNETMASK. - Use queue(9) instead of hand made stailq. - Use one socket for all ifioctl() and send/receive operations. - Use __func__ instead of cut-n-paste in logging and panics. - Axe some dead or strange code. Tested by: gonzo, Stefan Bethke <stb lassitu.de>
* Belatedly catch up with r151555. in_scrubprefix() also needs this fix. Weglebius2011-12-131-8/+16
| | | | | should compare not only addresses, but their masks, too, when searching for matching prefix.
* Style(9) changes.adrian2011-12-133-126/+133
|
* Document a large number of currently undocumented sysctls. While hereeadler2011-12-137-121/+83
| | | | | | | | | | | | fix some style(9) issues and reduce redundancy. PR: kern/155491 PR: kern/155490 PR: kern/155489 Submitted by: Galimov Albert <wtfcrap@mail.ru> Approved by: bde Reviewed by: jhb MFC after: 1 week
* Revert the approach for skipping lockstat_probe_func call when doingattilio2011-12-123-14/+9
| | | | | | | | | | | | | lock_success/lock_failure, introduced in r228424, by directly skipping in dtrace_probe. This mainly helps in avoiding namespace pollution and thus lockstat.h dependency by systm.h. As an added bonus, this also helps in MFC case. Reviewed by: avg MFC after: 3 months (or never) X-MFC: r228424
* Make 64-bit procstat output ELF auxiliary vectors for 32-bit processes.trociny2011-12-121-16/+87
| | | | | Reviewed by: kib MFC after: 1 week
* Make procstat -l output similar to the output of limits(1).trociny2011-12-121-10/+51
| | | | | Suggested by: jhb MFC after: 1 week
* - Add support for ASCII art splash screens in TheDraw formateadler2011-12-124-1/+170
| | | | | | | | | PR: kern/143370 Submitted by: Antony Mawer <antony@mawer.org> Reviewed by: gjb (doc) Reviewed by: des (style) Approved by: ed MFC after: 1 month
* - Define true and false in sys/types.h for _KERNEL consumers, andmdf2011-12-123-1/+13
| | | | | | | | | | | | | | | | typedef bool. Due to macro expansion it seemed better to use a typedef for kernel consumers (specifically ofed won't compile without more changes if a define is used). - <stdbool.h> should also not re-define bool/true/false if they are defined by <sys/types.h>. It would probably be a programming error to define _KERNEL for user-space code, but downstream consumers like Isilon have already been including <stdbool.h> in kernel sources, and this protects that usage. - sizeof(_Bool) is not necessarily the same as sizeof(int), so kernel modules should be rebuild with this change. Bump __FreeBSD_version. MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
* Do not define bool/true/false if the symbols already exist.mdf2011-12-126-1/+13
| | | | | MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
* Do not use the sometimes-reserved work 'bool' for a variable name.mdf2011-12-121-5/+5
| | | | | MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
* Consistently use types in e1000 driver code:mdf2011-12-123-6/+10
| | | | | | | | | | | | - Two struct members eee_disable are used in a function that expects an int *, so declare them int, not bool. - igb_tx_ctx_setup() returns a boolean value, so declare it bool, not int. - igb_header_split is passed to TUNABLE_INT, so delcare it int, not bool. - igb_tso_setup() returns a bool, so declare it bool, not boolean_t. - Do not re-define bool/true/false if the symbols already exist. MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
* Consistently use types in ixgbe driver code:mdf2011-12-123-8/+10
| | | | | | | | | | | | | - {ixgbe,ixv}_header_split is passed to TUNABLE_INT, so delcare it int, not bool. - {ixgbe,ixv}_tx_ctx_setup() returns a boolean value, so declare it bool, not int. - {ixgbe,ixv}_tso_setup() returns a bool, so declare it bool, not boolean_t. - {ixgbe,ixv}_txeof() returns a bool, so declare it bool, not boolean_t. - Do not re-define bool if the symbol already exists. MFC after: 2 weeks Sponsored by: Isilon Systems, LLC
* There's a small set of events on Nehalem, that are not supported infabient2011-12-121-1/+12
| | | | | | | | | processors with CPUID signature 06_1AH, 06_1EH, and 06_1FH. Refuse to allocate them on unsupported model. Submitted by: Davide Italiano <davide.italiano@gmail.com> MFC after: 1 month
* Add missing static and const keywords to kbdcontrol.ed2011-12-121-63/+64
| | | | | | None of the symbols provided by kbdcontrol.c are used by other source files of this binary. Slightly reduce the binary size and make much more symbols read-only by adding proper static and const keywords.
* Add VIA microde update support to cpuctl(4) and cpucontrol(8).fabient2011-12-125-2/+368
| | | | | | Support have been tested with X2 CPU and QuadCore CPU. MFC after: 1 month
* Add support for STT_GNU_IFUNC and R_MACHINE_IRELATIVE GNU extensions tokib2011-12-1210-36/+335
| | | | | | | | | | | | | | | | | rtld on 386 and amd64. This adds runtime bits neccessary for the use of the dispatch functions from the dynamically-linked executables and shared libraries. To allow use of external references from the dispatch function, resolution of the R_MACHINE_IRESOLVE relocations in PLT is postponed until GOT entries for PLT are prepared, and normal resolution of the GOT entries is finished. Similar to how it is done by GNU, IRELATIVE relocations are resolved in advance, instead of normal lazy handling for PLT. Move the init_pltgot() call before the relocations for the object are processed. MFC after: 3 weeks
* Add definitions for GNU-specific STT_GNU_IFUNC symbol type,kib2011-12-121-0/+3
| | | | | | and R_{386,X86_64}_IRELATIVE relocations. MFC after: 3 weeks
* put sys/systm.h at its proper place or add it if missingavg2011-12-124-3/+4
| | | | | | | Reported by: lstewart, tinderbox Pointyhat to: avg, attilio MFC after: 1 week MFC with: r228430
* Fix printf.kib2011-12-121-1/+1
| | | | | Submitted by: az MFC after: 1 week
* Add watchdog support for VIA south bridge chipset.fabient2011-12-1210-0/+457
| | | | | | | Tested on VT8251, VX900 but CX700, VX800, VX855 should works. MFC after: 1 month Sponsored by: NETASQ
* kern_racct: move sys/systm.h inclusion to its proper placeavg2011-12-121-2/+1
| | | | | | | | This should fix the build failure introduced with r228424. Also remove duplicate inclusion of sys/param.h. Pointyhat to: avg MFC after: 1 week
* syscons: make sc_puts static as it is used only privatelyavg2011-12-112-2/+2
| | | | | | | Perhaps sc_puts should also be renamed to scputs to follow the implied naming conventions in the file... MFC after: 2 weeks
* Add static keywords to vidcontrol(1).ed2011-12-111-13/+11
| | | | | | While there, remove the false optimisation of the colors array. It seems that changing it to an array of pointers instead of a 16x16 array does not cause any increase in binary size at all.
* panic: add a switch and infrastructure for stopping other CPUs in SMP caseavg2011-12-1113-25/+205
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historical behavior of letting other CPUs merily go on is a default for time being. The new behavior can be switched on via kern.stop_scheduler_on_panic tunable and sysctl. Stopping of the CPUs has (at least) the following benefits: - more of the system state at panic time is preserved intact - threads and interrupts do not interfere with dumping of the system state Only one thread runs uninterrupted after panic if stop_scheduler_on_panic is set. That thread might call code that is also used in normal context and that code might use locks to prevent concurrent execution of certain parts. Those locks might be held by the stopped threads and would never be released. To work around this issue, it was decided that instead of explicit checks for panic context, we would rather put those checks inside the locking primitives. This change has substantial portions written and re-written by attilio and kib at various times. Other changes are heavily based on the ideas and patches submitted by jhb and mdf. bde has provided many insights into the details and history of the current code. The new behavior may cause problems for systems that use a USB keyboard for interfacing with system console. This is because of some unusual locking patterns in the ukbd code which have to be used because on one hand ukbd is below syscons, but on the other hand it has to interface with other usb code that uses regular mutexes/Giant for its concurrency protection. Dumping to USB-connected disks may also be affected. PR: amd64/139614 (at least) In cooperation with: attilio, jhb, kib, mdf Discussed with: arch@, bde Tested by: Eugene Grosbein <eugen@grosbein.net>, gnn, Steven Hartland <killing@multiplay.co.uk>, glebius, Andrew Boyer <aboyer@averesystems.com> (various versions of the patch) MFC after: 3 months (or never)
* Add static keywords to chio(1).ed2011-12-111-3/+3
| | | | | All other global variables are already marked static, so for consistency sake, add them to these three arrays as well.
* Add more static keywords to rcorder(8).ed2011-12-111-48/+47
| | | | | | The global variables and functions provided by rcorder.c are not used in the other C files, as the other C files only provide memory allocation and hash functions. This reduces the binary size by 10%.
* Minor whitespace cleanup to make.conf(5).gjb2011-12-111-2/+2
| | | | | MFC after: 1 week X-MFC-With: 228418
* Document the SVN variable needs to be set in make.conf(5) when SVN_UPDATEgjb2011-12-111-1/+7
| | | | | | | | | is set. PR: 163162 Submitted by: Oliver Hartmann <ohartman!zedat.fu-berlin.de> Patch by: Benjamin Kaduk <kaduk!mit.edu> (original) MFC after: 1 week
* Add missing static keyword.ed2011-12-111-1/+1
| | | | | All global variables and functions are marked static. Simply because this is an enum, doesn't mean we can't do so as well.
* Add missing static keyword.ed2011-12-111-1/+1
| | | | | All global variables and functions in powerd are marked static, except this array of strings. Add the keyword, for consistency.
* Last change still had an issue, one more time...jfv2011-12-112-6/+6
|
* Increase the available virtual address space for user programs on PowerPCnwhitehorn2011-12-111-7/+12
| | | | | | AIM systems to 4 GB on 32-bit systems and 2^64 bytes on 64-bit systems. VM_MAXUSER_ADDRESS remains at 2 GB on pending Book-E, pending review of an increase to 3 GB by those more familiar with Book-E.
* Keep track of PVO entries in each pmap, which allows much fasternwhitehorn2011-12-113-26/+60
| | | | | | | pmap_remove() for large sparse requests. This can prevent pmap_remove() operations on 64-bit process destruction or swapout that would take several hundred times the lifetime of the universe to complete. This behavior is largely indistinguishable from a hang.
* Include sys/queue.h: snmpmod.h uses TAILQ.trociny2011-12-111-0/+1
| | | | | PR: bin/153153 MFC after: 2 weeks
* Add more files to cleanup with 'make delete-old' when WITHOUT_CLANG isdim2011-12-111-0/+35
| | | | | | in effect. MFC after: 1 week
* Let reboot(8) use getprogname() to compare the program name.ed2011-12-111-3/+3
| | | | | While there, mark the global variable dohalt static, as reboot(8) only consists of a single C file.
* Add missing static keywords to global variables in camcontrol.ed2011-12-112-13/+13
| | | | | While there, make the vendor list const and add appropriate keywords to functions that use this list.
* Move 3.5 KB from the data segment to the text segment.ed2011-12-111-5/+5
| | | | | The `struct modes' are only used by the getter-functions in the same file, so we can safely mark them static and const.
* Correct LINT build issues in the ioctl code.jfv2011-12-112-7/+11
|
* - fix typoeadler2011-12-101-1/+1
| | | | Approved by: kib@
* Avoid the possibility of integer overflow in the calculation ofalc2011-12-101-3/+4
| | | | | | | | | VM_KMEM_SIZE_MAX. Specifically, if the user/kernel address space split was changed such that the kernel address space was greater than or equal to 2 GB, then overflow would occur. PR: 161721 MFC after: 3 weeks
* Make comsat(8) approximately 15% smaller.ed2011-12-101-10/+10
| | | | | This program only consists of a single C file, so simply mark everything except main() static.
* Add more static keywords to truss(1) source code.ed2011-12-104-5/+5
| | | | | | There are some tables in the source code that are only used by the individual source files themselves. Therefore there is no need to export them.
* Add missing "static const" to long options table.ed2011-12-101-1/+1
| | | | | This table is only used in this C file and passed to getopt_long(), so we can safely add static and const to it.
OpenPOWER on IntegriCloud