summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* When f[w]printf() is called on an unbuffered file like stdout, itdas2009-01-172-14/+23
| | | | | | | | | | | | | | | | sets up a fake buffered FILE and then effectively calls itself recursively. Unfortunately, gcc doesn't know how to do tail call elimination in this case, and actually makes things worse by inlining __sbprintf(). This means that f[w]printf() to stderr was allocating about 5k of stack on 64-bit platforms, much of which was never used. I've reorganized things to eliminate the waste. In addition to saving some stack space, this improves performance in my tests by anywhere from 5% to 17% (depending on the test) when -fstack-protector is enabled. I found no statistically significant performance difference when stack protection is turned off. (The tests redirected stderr to /dev/null.)
* Convert battery capacity/rate from mA to mW only when summary is requested.mav2009-01-171-1/+1
| | | | | | Unconditional conversion causes incorrect rate units reported by acpiconf. MFC after: 2 weeks
* Allow experimental libteken features to be tested without changing code.ed2009-01-176-57/+63
| | | | | | | | | | | | | The teken library already supports UTF-8 handling and xterm emulation, but we have reasons to disable this right now. Because we should make it easy and interesting for people to experiment with these features, allow them to be set in kernel configuration files. Before this commit we had a flag called `TEKEN_CONS25' to enable cons25-style emulation. I'm calling it the opposite now, `TEKEN_XTERM', because we want to enable it in kernel configuration files explicitly. Requested by: kib
* Fix handling of pts(4) device names in comsat(8). Also catch fork() errors.ed2009-01-171-6/+17
| | | | | | | | | | | | | | | | | Pseudo-terminals allocated with posix_openpt(2) will have more slashes in their path names than comsat(8) allows, so allow slashes when the character device name starts with "pts/". This patch is loosely based on NetBSD's changes, revision 1.33. Because it also included the changes to fork(), I imported them here as well. Maybe we could import even more fixes from the other BSD's? Original commit message from the NetBSD folks: PR/30170: Markus W Kilbinger: src/libexec/comsat complains about: '/' in "/dev/pts/1" Reported by: Robert Huff <roberthuff rcn com>
* s,unmount 8,umount 8, it is unmount(2) which I did not mean.bz2009-01-171-2/+2
| | | | | Submitted by: pluknet@gmail.com MFC after: 1 week
* The FTP_TIMEOUT and HTTP_TIMEOUT environment variables were ignored becausedes2009-01-171-3/+4
| | | | | | | | T_secs already had a non-zero default. Unbreak by moving the default to ftp_timeout / http_timeout. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> MFC after: 2 weeks
* Bail on ENXIO, you won't get any further any way.phk2009-01-171-1/+4
| | | | Submitted by: tobez
* - Add a new source configuration menu option that allows hiding andjeff2009-01-171-4/+173
| | | | | | | displaying sources. - Add functions to the main SchedGraph to facilitate source hiding. The source is simply moved off screen and all other sources are moved to compensate.
* - Rewrite the parser to support the new generic schedgraph interface.jeff2009-01-171-1002/+608
| | | | | | | | | | | | | | | | | | | This no longer requires any custom classes or parsers to support new event types. - Add an optional command line argument for specifying the clock frequency in ghz. This is useful for traces that do not include KTR_SCHED. Sponsored by: Nokia - Add support for sorting rows by clicking and dragging them to their new position. - Add support for configuring the cpu background colors. - Improve the scaling so a better center is maintained as you zoom. This is not perfect due to precision loss with floats used in the window views. - Add new colors and a random assignment for unknown event types. A table is used for known event types. This is the only event specific information.
* - Implement generic macros for producing KTR records that are compatiblejeff2009-01-178-51/+233
| | | | | | | | | | | | with src/tools/sched/schedgraph.py. This allows developers to quickly create a graphical view of ktr data for any resource in the system. - Add sched_tdname() and the pcpu field 'name' for quickly and uniformly identifying records associated with a thread or cpu. - Reimplement the KTR_SCHED traces using the new generic facility. Obtained from: attilio Discussed with: jhb Sponsored by: Nokia
* Simplify printf's inlined output buffering routines. On amd64, thisdas2009-01-171-18/+18
| | | | reduces the code size by about 10% and improves performance slightly.
* Disable decoding of BARs by devices before we trash the value in the BARjhb2009-01-161-0/+18
| | | | | | | | | | | | | by writing all 1's to it to determine its length. This fixes issues with MCFG on at least some machines where a trashed BAR claimed subsequent attempts at PCI config transactions because the addresses in the MCFG window fell in the decoding range of the BAR. In general it is a bad idea to leave the BARs enabled while we are frobbing with them in this manner. Sleuthing by: tegge MFC after: 1 week
* Correct the sense of the "use32" terenary operator so that it usesjhb2009-01-161-5/+1
| | | | | | | | 'lib32' for 32-bit binaries on amd64 and 'lib' for 64-bit binaries. Remove an #ifdef __i386__ that defined use32 to the wrong value on i386 to workaround the bug in the terenary operator. MFC after: 1 month
* export PSB frequenciessam2009-01-161-4/+13
|
* revert r187343sam2009-01-161-1/+1
|
* add FCC4 SKU to expose Public Safety Band (PSB) frequencies; this issam2009-01-162-1/+67
| | | | modeled after the Atheros SKU of the same name
* Fix 1/2 and 1/4 width channel handling for non-GSM operation:sam2009-01-161-3/+17
| | | | | | o correct typo that caused random channel selection o explicitly add 1/2 and 1/4 width channels because channel lookups match flags that include IEEE80211_CHANNEL_HALF and IEEE80211_CHANNEL_QUARTER
* Update URL.marius2009-01-161-2/+2
|
* Remove a duplicate #include.cognet2009-01-161-1/+0
|
* Add some information in SYNOPSIS, HARDWARE and BUGS sections.mav2009-01-161-4/+38
|
* Be more Solaris-friendly.pjd2009-01-162-4/+8
| | | | Submitted by: Milan Cermak <Milan.Cermak@Sun.COM>
* Allow jot(1) regression tests to be checked out on Windows filesystems.ed2009-01-162-1/+1
| | | | | | | | The jot(1) regression tests directory contained two tests named `wx' and `wX', which doesn't work on case insensitive filesystems. Rename `wX' to `wX1'. MFC after: 1 month
* Rename mail(1)'s aux.c to util.c.ed2009-01-162-2/+2
| | | | | | | | The name `aux' is reserved on Windows file systems. aux.c in the mail(1) directory contains some random utility functions. I'm renaming this file to util.c to make it possible to check out this directory on Windows. MFC after: 1 month
* Remove unused files from the digi(4) driver.ed2009-01-164-14961/+0
| | | | | | | | | | | | The digi(4) driver directory contains some files that cannot be checked out on Windows filesystems. This isn't a big deal, but the files aren't used anyway. There are still some other places where checkouts on Windows don't work, such as VFS_MOUNT.9/vfs_mount.9. This should already be a small improvement. MFC after: 1 month
* The RTF_LLINFO was revived unconditionally, but within the kernel theqingli2009-01-161-5/+1
| | | | | | | | | check on the sysctl argument value being RTF_LLINFO is conditioned on the COMPAT_ROUTE_FLAGS kernel option. This mismatch caused the L2 table retrieval failure, and the arp/ndp -an command displays empty L2 tables. Reviewed by: pjd
* Eliminate the PMAP_INLINE macro. It isn't really used here. If weimp2009-01-161-8/+2
| | | | need to bring it back, we can.
* Remove unused variable.imp2009-01-161-14/+4
| | | | Minor style nits.
* Add hardware MAC statistics support. Also added some reservedyongari2009-01-162-9/+354
| | | | | | statistics register definition. Users can get current MAC statistics from dev.msk.%d.stats sysctl node(%d is unit number of a device).
* add athrd tool that dumps ath hal regulatory info; note this is soon tosam2009-01-156-4/+2106
| | | | obsolete but commit now so it's available for anyone that's interested
* Revert revision 186833 and try a different strategy to allow this device tonwhitehorn2009-01-151-2/+6
| | | | | | | | | | | work when the bus attaches its own children. Instead of hardcoding a unit number and returning BUS_PROBE_NOWILDCARD, which will break multiple iicbus systems, check in the probe routine whether the device address is 0. Real I2C devices will never have this address, but devices added with BUS_ADD_CHILD() will. Requested by: jhb Reviewed by: jhb
* - pmap_track_modified was retired in r178606. Reintroducing it was a mistake.gonzo2009-01-151-21/+1
| | | | Spotted by: alc@
* Reflect newly added PCI IDs to bce(4).delphij2009-01-151-1/+21
| | | | MFC after: 2 months
* Changes to match "Marketing Description" from Broadcom for HP servers.delphij2009-01-151-12/+14
| | | | | Submitted by: davidch MFC after: 2 months
* Don't cross-reference gem(4) and hme(4); maybe this made some sensemarius2009-01-152-4/+2
| | | | | | | back when these two were the only two NIC drivers working on sparc64 but it no longer does nowadays. MFC after: 3 days
* Sync the description of jumbo frame support with reality as of r185812;marius2009-01-151-2/+2
| | | | | | | | it's also supported with BCM5702 (matched by BGE_ASICREV_BCM5703) but bge(4) currently doesn't with neither BCM5714 nor BCM5780. Prodded by: scf MFC after: 3 days
* Change dstp to be const and remove bogus cast.rdivacky2009-01-151-2/+3
| | | | | Submitted by: christoph.mallon at gmx.de Approved by: kib (mentor)
* Reduce diffs to p4 that were the result of a mismerge on my part.imp2009-01-151-2/+5
|
* Silent userland warnings about missing prototypes.piso2009-01-153-0/+3
| | | | Submitted by: Roman Divacky <rdivacky@freebsd.org>
* Introduce a local variable and use it instead of passed in parameterrdivacky2009-01-155-6/+16
| | | | | | | | to get rid of restrict qualifier discarding. This lets libc compile cleanly in gnu99 mode. Suggested by: kib, christoph.mallon at gmx.de Approved by: kib (mentor)
* MFp4:gonzo2009-01-152-19/+37
| | | | | | | | | - Add debug output - Fix pmap_zero_page and related places: use uncached segments and invalidate cache after zeroing memory. - Do not test for modified bit if it's not neccessary (merged from mips-juniper p4 branch) - Some #includes reorganization
* Name the items of xfer array.takawata2009-01-151-33/+46
|
* Lock the semaphore identifier lock during semaphore initialization tokib2009-01-151-0/+4
| | | | | | | | | guarantee atomicity of the operation for other semaphore consumers. In particular, this should guard against access to the semaphore with not done or partially done MAC label assignment. Reviewed by: rwatson MFC after: 1 month
* MFi386: 187144nyan2009-01-151-2/+8
| | | | | | | Documentation-only change: - add a reference to the config(5) manpage; - hopefully clarify the format of the 'env FILENAME' directive.
* MFp4:imp2009-01-151-7/+2
| | | | | Remove Maxmem. It isn't used elsewhere in the system at this point... realmem is used instead.
* Call platform_reset() instead of looping forever on reboot.imp2009-01-151-3/+3
| | | | | # We likely need to have a default one of these that jumps to the rom boot # address that's defined in the MIPS ISA.
* Reverse order of dumpsys and cpu_idle_wakeup to reduce diffs to p4.imp2009-01-151-6/+6
|
* MFp4:imp2009-01-151-117/+0
| | | | Remove #if'd 0 code. It is interfering with other diffs.
* fix a ehci's bug that it's occurred when the xfers are aborted underweongyo2009-01-151-1/+1
| | | | | | | | | heavy loads or working. It looks this bug exists since r158869 so needs to revert a part of the previous. Reviewed by: imp Tested by: sam MFC after: 3 weeks
* Revert previous change, since revision 187103 fixed the problem.rodrigc2009-01-151-2/+2
| | | | | | | | | | | | | So now, if you: - specify "makeoptions DEBUG=-g" in your kernel config - make buildkernel WITH_CTF=1, then "-g" will be added to CTFFLAGS. However, "-g" will still not be added to CTFFLAGS when building kernel modules, if the above steps are performed. This needs to be fixed. Noticed by: thompsa
* Add TCP Appropriate Byte Counting (RFC 3465) support to kernel.lstewart2009-01-157-11/+75
| | | | | | | | | | | | | The new behaviour is on by default, and can be disabled by setting the net.inet.tcp.rfc3465 sysctl to 0 to obtain previous behaviour. The patch changes struct tcpcb in sys/netinet/tcp_var.h which breaks the ABI. Bump __FreeBSD_version to 800061 accordingly. User space tools that rely on the size of struct tcpcb (e.g. sockstat) need to be recompiled. Reviewed by: rpaulo, gnn Approved by: gnn, kmacy (mentors) Sponsored by: FreeBSD Foundation
OpenPOWER on IntegriCloud