summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge from contrib/openbsm to bring the kernel audit bits up to date with ↵brueffer2015-12-2013-19/+1
| | | | | | | OpenBSM 1.2 alpha 4: - remove $P4$ - fix a comment
* libc: Use namespace.h in a few more files.jilles2015-12-204-11/+19
| | | | | libc now no longer calls fstat(), socketpair() and wait(), only the underscore-prefixed versions (_waitpid() instead of wait()).
* Tidy up mips ofw_machdep.h. Don't include openfirm.h because openfirm.hian2015-12-201-3/+0
| | | | | | is what includes machine/ofw_machdep.h. Don't declare OF_decode_addr(); it isn't implemented yet on mips and the declaration for it is about to be commonized into openfirm.h.
* Don't assume checksums will be calculated later when fastfoward iscy2015-12-201-2/+2
| | | | | | | enabled (by default in r290383). PR: 72210 MFC after: 1 week
* sh/mknodes: Close files and check for errors when writing.jilles2015-12-201-5/+15
| | | | | | | This is a build tool only and does not affect run time. PR: 204951 MFC after: 1 week
* libthr: Don't use both __sys_open() and __sys_openat().jilles2015-12-202-2/+1
|
* loader.efi: refresh size in GetMemoryMap retry loopemaste2015-12-201-67/+55
| | | | | | | | | | | | | | | | | | | | If ExitBootServices fails due to a changed efi_mapkey then GetMemoryMap must be called again. In this case it is also possible for the memory map to grow, so repeat the initial GetMemoryMap call to fetch the new size. Also roll bi_add_efi_data_and_exit into bi_load_efi_data as there's no need for it to be a separate function. PR: 202455 Reported by: Berislav Purgar <bpurgar@gmail.com> Tested by: Berislav Purgar <bpurgar@gmail.com> Reviewed by: kib MFC after: 1 week MFC with: r292338 Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D4621
* addrinfo.ai_family is an address family, not a protocol family.ume2015-12-202-9/+9
| | | | | PR: 162434 MFC after: 1 week
* clock_gettime(2),gettimeofday(2): Remove [EFAULT] error.jilles2015-12-202-8/+2
| | | | | | | | | | | Depending on system configuration and parameters, clock_gettime() and gettimeofday() may not be system calls. If so, passing an invalid pointer will cause a signal and not an [EFAULT] error. From a standards perspective, this is OK since passing an invalid pointer is undefined behaviour. MFC after: 1 week
* Restore a day of the week in date(1) output for Japanese locales.ume2015-12-204-6/+17
| | | | It was lost by recent locale change.
* Fix lockf(3) cancellation behaviour.kib2015-12-201-3/+8
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Clean up Kyuafile.tmp, not Kyuafile.auto.tmpngie2015-12-201-1/+1
| | | | | | | MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Document LOCALBASE in the bsd.test.mk sectionngie2015-12-201-0/+4
| | | | | | | MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* - Use LOCALBASE instead of KYUA_PREFIX for the --prefix to kyua(1)ngie2015-12-203-9/+5
| | | | | | | | | - Use LOCALBASE instead of hardcoding /usr/local for perl MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Deal with another hardcoded reference to Kyuafile in the KYUAFILE == autongie2015-12-201-1/+1
| | | | | | | | case Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Always expose LOCALBASE, not just when CROSS_TOOLCHAIN is definedngie2015-12-201-2/+3
| | | | | | | | | | Instead of using which(1) to look for doxygen, look for it in <LOCALBASE>/bin . $PATH gets mangled by make buildenv, etc so it's better to just be explicit about the path if someone uses that for instance. Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Fix typo in r292500 by adding missing conditional statementngie2015-12-201-0/+1
| | | | | | | | MFC after: 1 week X-MFC with: r292500 Pointyhat to: ngie Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Sponsored by: EMC / Isilon Storage Division
* Simplify Kyuafile generation logic with KYUAFILE == auto andngie2015-12-201-14/+10
| | | | | | | | | related complexity with variables MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D4406 (part of a larger diff) Reviewed by: emaste, Evan Cramer <eccramer@gmail.com> Sponsored by: EMC / Isilon Storage Division
* Bump __FreeBSD_version for r292469.markj2015-12-201-1/+1
|
* Integrate the remaining tools/regression/lib/msun testcases into thengie2015-12-2013-55/+7
| | | | | | | | FreeBSD test suite under lib/msun/tests MFC after: 3 weeks X-MFC with: r292328 Sponsored by: EMC / Isilon Storage Division
* Skip the testcases on i386 (all the assertions fail) [*]ngie2015-12-201-2/+25
| | | | | | | | | | | Also, don't compile the ldexpl(3) testcases on platforms that don't support the libcall (technically only x86 right now). This makes this test buildable on arm*/mips*/powerpc* PR: 205449 [*] MFC after: 1 week Tested on: stable/10 (amd64/i386), head (amd64/i386) Sponsored by: EMC / Isilon Storage Division
* Initialize j so it doesn't print out a garbage indexngie2015-12-201-1/+3
| | | | | | | | Use it consistently instead of i in the first loop MFC after: 3 days X-MFC with: 292492 Sponsored by: EMC / Isilon Storage Division
* Skip infinities testcases that fail assertions on amd64 only on CURRENTngie2015-12-201-0/+5
| | | | | | PR: 205448 MFC after: never Sponsored by: EMC / Isilon Storage Division
* Don't run test-fma on i386ngie2015-12-201-0/+6
| | | | | | | | | It completely fails all assertions on i386 on both stable/9 and stable/10 PR: 205448 MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* - Use nitems instead of handrolling the macrongie2015-12-201-10/+17
| | | | | | | | - Use a separate variable for tracking the testcase count instead of hardcoding the offset for the testcases MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Disable test-ctrig.t testcases which fail assertions on i386 [*]ngie2015-12-201-1/+12
| | | | | | | | | | | | Also, don't compile the exp2l(3) testcases on platforms that don't support the libcall (technically only x86 right now). This makes this test buildable on arm*/mips*/powerpc* Tested on: stable/10 (amd64/i386), head (amd64/i386) PR: 205446 [*] MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* Disable test-ctrig.t testcases which fail assertions on i386ngie2015-12-201-0/+2
| | | | | | | | Tested on: stable/10 (amd64/i386), head (amd64/i386) PR: 205446 MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* x86: Detect feature flags "AVX512DQ", "AVX512IFMA", "AVX512BW", "AVX512VBMI"cem2015-12-201-0/+4
| | | | | | | Documented in Intel Architecture Set Extensions Programming Reference (319433-023). Sponsored by: EMC / Isilon Storage Division
* Update the test list after r292328ngie2015-12-201-2/+2
| | | | | | Add test-invtrig to the list of tests Sponsored by: EMC / Isilon Storage Division
* Add missing smbios.h #include to mute a -Wimplicit-function-declaration warningngie2015-12-201-0/+1
| | | | | | | after r279222 Reported by: Jenkins Sponsored by: EMC / Isilon Storage Division
* Add missing return statement to atf/printf_test to make the examplengie2015-12-201-0/+2
| | | | | | | | complete and correct, and mute a compiler warning from clang MFC after: 3 days Reported by: Jenkins Sponsored by: EMC / Isilon Storage Division
* Add a safety net to reclaim mbufs when one of the mbuf zones becomejtl2015-12-206-5/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exhausted. It is possible for a bug in the code (or, theoretically, even unusual network conditions) to exhaust all possible mbufs or mbuf clusters. When this occurs, things can grind to a halt fairly quickly. However, we currently do not call mb_reclaim() unless the entire system is experiencing a low-memory condition. While it is best to try to prevent exhaustion of one of the mbuf zones, it would also be useful to have a mechanism to attempt to recover from these situations by freeing "expendable" mbufs. This patch makes two changes: a) The patch adds a generic API to the UMA zone allocator to set a function that should be called when an allocation fails because the zone limit has been reached. Because of the way this function can be called, it really should do minimal work. b) The patch uses this API to try to free mbufs when an allocation fails from one of the mbuf zones because the zone limit has been reached. The function schedules a callout to run mb_reclaim(). Differential Revision: https://reviews.freebsd.org/D3864 Reviewed by: gnn Comments by: rrs, glebius MFC after: 2 weeks Sponsored by: Juniper Networks
* Add dev.fb.X.resync sysctl to resync ARM framebuffer with VideoCoregonzo2015-12-201-57/+127
| | | | | | | | | | Some applications (e.g. Kodi) use tvservice APIs to manage HDMI modes, power state, EDID etc. directly through VideoCore. After these manipulations VideoCore may loose its state and needs to be resynced with ARM. Under Linux this problem is worked around using fbset utility that recreates framebuffer. Since there is no fbset utility in FreeBSD we provide sysctl for userland apps to get system back into normal mode.
* Fix whitespace issues in BSD.usr.dist introduced in r291455ngie2015-12-191-2/+2
| | | | Sponsored by: EMC / Isilon Storage Division
* x86: Detect feature flags "CLWB" and "PCOMMIT"cem2015-12-191-0/+2
| | | | | | | | | | | | | | | | "The availability of CLWB instruction is indicated by the presence of the CPUID feature flag CLWB (bit 24 of the EBX register)." CLWB is similar to CLFLUSHOPT, except that it is not required to discard cacheline contents. "On processors that supports PCOMMIT, PCOMMIT is enumerated through CPUID (CPUID.7.0.EBX[22]) only when the feature is enabled by BIOS." PCOMMIT is used to cause store-to-memory operations to become persistent (protected from power failure). Sponsored by: EMC / Isilon Storage Division
* Move some MIPS specific flags to be more congruent with otherimp2015-12-193-2/+3
| | | | architectures.
* Create libstand version of uuid_from_string and uuid_to_string. Theimp2015-12-193-1/+244
| | | | | | | | | | | normal libc versions of these functions use asprintf and sscanf, both of which aren't available in the libstand world. It's easier to rewrite these than to try to claw those functions into libstand. Also include uuid_create_nil, since it's safe to include. These were written from scratch, except for bits of comments that I got from the libc version, which are acknowledged in the source. Differential Revision: https://reviews.freebsd.org/D4540
* Save the physical address passed into the kernel of the UEFI systemimp2015-12-192-0/+10
| | | | table.
* Pass the UEFI system table into the kernel from the boot loader viaimp2015-12-191-0/+3
| | | | | the FW_HANDLE metadata item. The kernel can get the rest of what it needs from this.
* Introduce a new mechanism for relocating virtual pages to a new physicalalc2015-12-1914-266/+846
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | address and use this mechanism when: 1. kmem_alloc_{attr,contig}() can't find suitable free pages in the physical memory allocator's free page lists. This replaces the long-standing approach of scanning the inactive and inactive queues, converting clean pages into PG_CACHED pages and laundering dirty pages. In contrast, the new mechanism does not use PG_CACHED pages nor does it trigger a large number of I/O operations. 2. on 32-bit MIPS processors, uma_small_alloc() and the pmap can't find free pages in the physical memory allocator's free page lists that are covered by the direct map. Tested by: adrian 3. ttm_bo_global_init() and ttm_vm_page_alloc_dma32() can't find suitable free pages in the physical memory allocator's free page lists. In the coming months, I expect that this new mechanism will be applied in other places. For example, balloon drivers should use relocation to minimize fragmentation of the guest physical address space. Make vm_phys_alloc_contig() a little smarter (and more efficient in some cases). Specifically, use vm_phys_segs[] earlier to avoid scanning free page lists that can't possibly contain suitable pages. Reviewed by: kib, markj Glanced at: jhb Discussed with: jeff Sponsored by: EMC / Isilon Storage Division Differential Revision: https://reviews.freebsd.org/D4444
* Fix indentation to make the script more readablebapt2015-12-191-37/+37
|
* Initialize SRCOUT3 as it may be used unitilizard for certains types of localesbapt2015-12-191-1/+1
|
* Use :E instead of regex in ctypedef Makefilesbapt2015-12-192-2/+2
|
* Fix indent after r292333.ume2015-12-191-16/+16
|
* Provide link state reporting so that ifconfig_llan0="DHCP" works. Thenwhitehorn2015-12-191-0/+38
| | | | | | | reported link state is fictional (always up) since the hypervisor does not provide this information. MFC after: 1 week
* ed(1): Prevent possible string overflowspfg2015-12-181-4/+4
| | | | | | | | Use strlcpy instead of strncpy to guarantee NULL termination. Pointed out by: imp CID: 1007252 X-MFC with: r292454
* ed(1): Prevent possible string overflowspfg2015-12-181-4/+6
| | | | | CID: 1007252 MFC after: 2 weeks
* Simplify the locale generated Makefiles by using bmake multi variables for loopsbapt2015-12-188-824/+826
|
* Add AI_V4MAPPED and AI_ALL support for getaddrinfo(3).ume2015-12-181-1/+1
| | | | | | | We need to change netdb.h to make it actually enabled. PR: 198092 MFC after: 1 week
* Use _map_v4v6_address().ume2015-12-181-4/+3
| | | | | Suggested by: hrs MFC after: 1 week
OpenPOWER on IntegriCloud