summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Do not allow the SNPSTTY ioctl for the snoop device that has a ttykib2007-12-031-0/+3
| | | | | | | | attached. Otherwise, the snp->snp_tty would be overwritten, while the tty line discipline still set to the snpdisc. Then snplwrite() causes panic because ttytosnp() cannot find the snp. MFC after: 1 week
* Restore the branding of the ELF executables. The structure was optimized out.kib2007-12-031-1/+1
| | | | MFC after: 3 days
* Catch up pc98 for i386 stack(9) changes:rwatson2007-12-032-0/+7
| | | | | | | | Add stub stack.h for pc98 that includes i386 pc98. Add i386 stack_machdep.c to files.pc98. Spotted by: tinderbox
* Add callchain parsing to -lpmc.jkoshy2007-12-032-4/+36
| | | | Sponsored by: FreeBSD Foundation and Google Inc.
* Add userland definitions for parsing callchain records.jkoshy2007-12-032-5/+34
| | | | Sponsored by: FreeBSD Foundation and Google Inc.
* Replace a spurious cross-reference to hwpmc(4) with correct text.jkoshy2007-12-031-4/+2
|
* zic(8) should exit the loop when the end of the string is reached duekevlo2007-12-031-1/+4
| | | | | | to the call to error(). The problem found by doing fuzz testing. MFC after: 3 days
* When printing the contents of a HWPMC log in human readable form:jkoshy2007-12-031-3/+8
| | | | | | | | | - Print a warning if the version number recorded in the log is not what the tool expects. - Print a tidier error message when an unrecognized event is encountered in the log. - Don't print a spurious 'Unknown error: 0' when exiting after a parse error.
* This commit was generated by cvs2svn to compensate for changes in r174206,dougb2007-12-031-1/+23
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Update this file so that BIND on ARM can actually work. I quote:dougb2007-12-031-1/+23
| | | | | | | | | | | | | | | | | | | | The problem was, isc_atomic_cmpxchg() is almost like our atomic_cmpset_32(), except it expects the old value to be returned, whereas our atomic_cmpset_32 returns 1 on success, or 0 on failure. So I re-implemented something suitable. Submitted by: cognet Reviewed by: bsdimp
| * These files are not part of the distribution.dougb2007-12-022-187/+0
| | | | | | | | Brought to you by: PEBCAK
| * This file is no longer in BIND 9.4.2dougb2007-12-021-3136/+0
| |
* | Tests for rounding, and for the leading 0's bug.das2007-12-031-1/+13
| |
* | In scanf, round according to the current rounding mode.das2007-12-037-8/+20
| |
* | Always honor promiscuous flag prior to programming Rx multicastyongari2007-12-031-2/+6
| | | | | | | | | | | | | | filter. This fixes a regression introduced in rev 1.89. PR: 114632 MFC after: 3 days
* | Connect procstat(1) to the build.rwatson2007-12-021-0/+1
| |
* | Add procstat(1), a process inspection utility. This provides both somerwatson2007-12-0212-0/+1459
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the missing functionality from procfs(4) and new functionality for monitoring and debugging specific processes. procstat(1) operates in the following modes: -b Display binary information for the process. -c Display command line arguments for the process. -f Display file descriptor information for the process. -k Display the stacks of kernel threads in the process. -s Display security credential information for the process. -t Display thread information for the process. -v Display virtual memory mappings for the process. Further revision and modes are expected. Testing, ideas, etc: cognet, sam, Skip Ford <skip at menantico dot com> Wesley Shields <wxs at atarininja dot org>
* | One more glue update for BIND 9.4.2dougb2007-12-021-0/+1
| |
* | Add another new sysctl in support of the forthcoming procstat(1) torwatson2007-12-023-0/+126
| | | | | | | | | | | | | | | | | | | | | | | | | | | | support its -k argument: kern.proc.kstack - dump the kernel stack of a process, if debugging is permitted. This sysctl is present if either "options DDB" or "options STACK" is compiled into the kernel. Having support for tracing the kernel stacks of processes from user space makes it much easier to debug (or understand) specific wmesg's while avoiding the need to enter DDB in order to determine the path by which a process came to be blocked on a particular wait channel or lock.
* | Remove duplicate $FreeBSD$ tag.rwatson2007-12-021-2/+0
| |
* | Break out stack(9) from ddb(4):rwatson2007-12-0240-232/+883
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Introduce per-architecture stack_machdep.c to hold stack_save(9). - Introduce per-architecture machine/stack.h to capture any common definitions required between db_trace.c and stack_machdep.c. - Add new kernel option "options STACK"; we will build in stack(9) if it is defined, or also if "options DDB" is defined to provide compatibility with existing users of stack(9). Add new stack_save_td(9) function, which allows the capture of a stacktrace of another thread rather than the current thread, which the existing stack_save(9) was limited to. It requires that the thread be neither swapped out nor running, which is the responsibility of the consumer to enforce. Update stack(9) man page. Build tested: amd64, arm, i386, ia64, powerpc, sparc64, sun4v Runtime tested: amd64 (rwatson), arm (cognet), i386 (rwatson)
* | Provide unqiue malloc types instead of using M_DEVBUF.scottl2007-12-022-26/+29
| |
* | Refactor completion handlers so that they can be combined into a singlescottl2007-12-021-76/+29
| | | | | | | | function. Add missing locking.
* | This commit was generated by cvs2svn to compensate for changes in r174190,dougb2007-12-021-3136/+0
| | | | | | | | which included commits to RCS files with non-trunk default branches.
* | Update glue for BIND 9.4.2dougb2007-12-027-9/+34
| |
* | This commit was generated by cvs2svn to compensate for changes in r174187,dougb2007-12-02202-9381/+24133
|\ \ | |/ | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor import of BIND 9.4.2dougb2007-12-02204-9396/+24257
| |
* | Make a pass at style.9 compliancescottl2007-12-021-440/+477
| |
* | Fix a typo that was hidden by AMR_DEBUG.scottl2007-12-021-1/+1
| |
* | Fix printf format bugs that where hidden by AMR_DEBUG.scottl2007-12-021-3/+3
| |
* | The AR_SCSI_PASSTHROUGH conditional no longer exists, remove it from thescottl2007-12-021-1/+0
| | | | | | | | makefile.
* | Headphone / speakers automute fixup for Acer Aspire 4710 @ ALC268 laptop.ariff2007-12-021-0/+3
| | | | | | | | Tested by: Liyu, She
* | Fix a potential bug in pmap :cognet2007-12-021-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | We used to allocate the domains 0-14 for userland, and leave the domain 15 for the kernel. Now supersections requires the use of domain 0, so we switched the kernel domain to 0, and use 1-15 for userland. How it's done currently, the kernel domain could be allocated for a userland process. So switch back to the previous way we did things, set the first available domain to 0, and just add 1 to get the real domain number in the struct pmap. Reported by: Mark Tinguely <tinguely AT casselton DOT net> MFC After: 3 days
* | Move the strongarm-specific files from conf/files.arm to sa11x0/files.sa11xO.cognet2007-12-022-2/+2
| | | | | | | | Submitted by: Rafal Jaworowski <raj AT semihalf DOT com>
* | Cleanup : make nexus standard, as it is mandatory anyway.cognet2007-12-0212-328/+1
| | | | | | | | | | | | Garbage-collect unused nexus_io.c and nexus_io_asm.S Submitted by: Rafal Jaworowski <raj AT semihalf DOT com>
* | Consider the following situation:guido2007-12-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. A packet comes in that is to be forwarded 2. The destination of the packet is rewritten by some firewall code 3. The next link's MTU is too small 4. The packet has the DF bit set Then the current code is such that instead of setting the next link's MTU in the ICMP error, ip_next_mtu() is called and a guess is sent as to which MTU is supposed to be tried next. This is because in this case ip_forward() is called with srcrt set to 1. In that case the ia pointer remains NULL but it is needed to get the MTU of the interface the packet is to be sent out from. Thus, we always set ia to the outgoing interface. MFC after: 2 weeks
* | Close a race.cognet2007-12-022-19/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RAS implementation would set the end address, then the start address. These were used by the kernel to restart a RAS sequence if it was interrupted. When the thread switching code ran, it would check these values and adjust the PC and clear them if it did. However, there's a small flaw in this scheme. Thread T1, sets the end address and gets preempted. Thread T2 runs and also does a RAS operation. This resets end to zero. Thread T1 now runs again and sets start and then begins the RAS sequence, but is preempted before the RAS sequence executes its last instruction. The kernel code that would ordinarily restart the RAS sequence doesn't because the PC isn't between start and 0, so the PC isn't set to the start of the sequence. So when T1 is resumed again, it is at the wrong location for RAS to produce the correct results. This causes the wrong results for the atomic sequence. The window for the first race is 3 instructions. The window for the second race is 5-10 instructions depending on the atomic operation. This makes this failure fairly rare and hard to reproduce. Mutexs are implemented in libthr using atomic operations. When the above race would occur, a lock could get stuck locked, causing many downstream problems, as you might expect. Also, make sure to reset the start and end address when doing a syscall, or a malicious process could set them before doing a syscall. Reviewed by: imp, ups (thanks guys) Pointy hat to: cognet MFC After: 3 days
* | Add two new sysctls in support of the forthcoming procstat(1) to supportrwatson2007-12-024-3/+434
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | its -f and -v arguments: kern.proc.filedesc - dump file descriptor information for a process, if debugging is permitted, including socket addresses, open flags, file offsets, file paths, etc. kern.proc.vmmap - dump virtual memory mapping information for a process, if debugging is permitted, including layout and information on underlying objects, such as the type of object and path. These provide a superset of the information historically available through the now-deprecated procfs(4), and are intended to be exported in an ABI-robust form.
* | Hide a debug printf, NDIS_DEBUG is always defined and we test the sysctl.thompsa2007-12-021-3/+5
| | | | | | | | MFC after: 3 days
* | Correct the calculation for the number of 100ns intervals sincethompsa2007-12-023-13/+8
| | | | | | | | | | | | | | January 1, 1601. The 1601 - 1970 period was in seconds rather than 100ns units. Remove duplication by having NdisGetCurrentSystemTime call ntoskrnl_time.
* | Correct a comment.alc2007-12-021-1/+1
| |
* | Correct the nwbx_ies field type in struct ndis_wlan_bssid_ex.thompsa2007-12-021-1/+1
| | | | | | | | | | PR: kern/118369 Submitted by: Weongyo Jeong
* | Eliminate vfs_page_set_valid()'s unused argument.alc2007-12-021-5/+5
| |
* | Add extra visibility definitions.jb2007-12-021-0/+3
| | | | | | | | | | | | See: <http://groups.google.com/group/generic-abi/browse_thread/thread/1a84adc15666164> These are already in OpenSolaris and DTrace uses STV_ELIMINATE.
* | Modify stack(9) stack_print() and stack_sbuf_print() routines to use newrwatson2007-12-016-31/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | linker interfaces for looking up function names and offsets from instruction pointers. Create two variants of each call: one that is "DDB-safe" and avoids locking in the linker, and one that is safe for use in live kernels, by virtue of observing locking, and in particular safe when kernel modules are being loaded and unloaded simultaneous to their use. This will allow them to be used outside of debugging contexts. Modify two of three current stack(9) consumers to use the DDB-safe interfaces, as they run in low-level debugging contexts, such as inside lockmgr(9) and the kernel memory allocator. Update man page.
* | Based in info gleaned from the web and other drivers (including the Linuxpeter2007-12-011-0/+23
| | | | | | | | | | | | sx driver), change a magic value in the PLX bridge chip. Apparently later builds of the PCI cards had corrected values in the configuration eeprom. This change supposedly fixes some pci bus problems.
* | Remove XRPU driver, after asking all the users.phk2007-12-015-310/+0
| |
* | Fix a non-fatal off-by-one error in the previous revision.marius2007-12-011-1/+1
| |
* | Only protect the prototypes with #ifndef _ASSERT_H_, the standardsphk2007-12-011-3/+2
| | | | | | | | specifically allow changes to the NDEBUG macro between #includes of assert.h
* | The kernel linker includes a number of utility functions to look up symbolrwatson2007-12-012-13/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | information in support of DDB(4); these functions bypass normal linker locking as they may run in contexts where locking is unsafe (such as the kernel debugger). Add a new interface linker_ddb_search_symbol_name(), which looks up a symbol name and offset given an address, and also linker_search_symbol_name() which does the same but *does* follow the locking conventions of the linker. Unlike existing functions, these functions place the name in a caller-provided buffer, which is stable even after linker locks have been released. These functions will be used in upcoming revisions to stack(9) to support kernel stack trace generation in contexts as part of a live, rather than suspended, kernel.
OpenPOWER on IntegriCloud