summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a function to list symbols in a file and their values at thejb2007-11-183-0/+29
| | | | | same time rather than having to list the symbols and then go back and look each one up by name.
* Use variable types which match the function prototypes.jb2007-11-172-2/+4
|
* Fix a compiler warning by using a printf format matching the variablejb2007-11-171-1/+1
| | | | type.
* Use uintptr_t to cast a pointer to an integer to avoid compiler warningsjb2007-11-172-2/+2
| | | | on processors where sizeof(void *) > sizeof(int).
* Use printf formats which match the variable types without casts so wejb2007-11-171-4/+4
| | | | can go back to using -Werror in higher WARNS levels.
* Prevent the leakage of wired pages in the following circumstances:alc2007-11-1712-1/+241
| | | | | | | | | | | | | | | | | | | | | | First, a file is mmap(2)ed and then mlock(2)ed. Later, it is truncated. Under "normal" circumstances, i.e., when the file is not mlock(2)ed, the pages beyond the EOF are unmapped and freed. However, when the file is mlock(2)ed, the pages beyond the EOF are unmapped but not freed because they have a non-zero wire count. This can be a mistake. Specifically, it is a mistake if the sole reason why the pages are wired is because of wired, managed mappings. Previously, unmapping the pages destroys these wired, managed mappings, but does not reduce the pages' wire count. Consequently, when the file is unmapped, the pages are not unwired because the wired mapping has been destroyed. Moreover, when the vm object is finally destroyed, the pages are leaked because they are still wired. The fix is to reduce the pages' wired count by the number of wired, managed mappings destroyed. To do this, I introduce a new pmap function pmap_page_wired_mappings() that returns the number of managed mappings to the given physical page that are wired, and I use this function in vm_object_page_remove(). Reviewed by: tegge MFC after: 6 weeks
* - New sysctl variable: net.inet.ip.dummynet.io_fastoleg2007-11-172-4/+25
| | | | | | | | | | | | | | If it is set to zero value (default) dummynet module will try to emulate real link as close as possible (bandwidth & latency): packet will not leave pipe faster than it should be on real link with given bandwidth. (This is original behaviour of dummynet which was altered in previous commit) If it is set to non-zero value only bandwidth is enforced: packet's latency can be lower comparing to real link with given bandwidth. - Document recently introduced dummynet(4) sysctl variables. Requested by: luigi, julian MFC after: 3 month
* Add thread support for arm.cognet2007-11-174-5/+40
| | | | MFC After: 1 week
* Build libthread_db for arm as well.cognet2007-11-171-5/+1
| | | | MFC after: 1 week
* Add arm support in libthread_db.cognet2007-11-171-0/+116
|
* Express in the usage() and SYNOPSIS that -F depends on -s, andru2007-11-172-4/+8
| | | | that -f and -i are exclusive.
* Swap "source"/"target" where appropriate, to match documentation.ru2007-11-171-38/+38
|
* There's no reason why we couldn't attach to a live process on arm.cognet2007-11-171-0/+3
| | | | MFC After: 1 week
* Add a trailing \0 to the read error string so that read errors don't printjhb2007-11-171-1/+1
| | | | | | out two error messages. MFC after: 3 days
* Add a kernel config file for the Hot-e HL200 (AT91RM92 based).cognet2007-11-171-0/+151
| | | | Many thanks to John Nicholls from Thinklinx for sending sample hardware.
* o Mask maximum file permissions we get from mount_ntfs -mmaxim2007-11-172-2/+6
| | | | | | | | | with ACCESSPERMS. Document in mount_ntfs(8) only the nine low-order bits of mask are used (taken from mount_msdosfs(8)). PR: kern/114856 Submitted by: Ighighi MFC after: 1 month
* o Fix a typo in the comment.maxim2007-11-171-1/+1
|
* Move the priv check before the malloc call for so_pcb.bz2007-11-161-6/+6
| | | | | | | | In case attach fails because of the priv check we leaked the memory and left so_pcb as fodder for invariants. Reported by: Pawel Worach Reviewed by: rwatson
* Mention less v415 updatedelphij2007-11-161-0/+3
|
* This commit was generated by cvs2svn to compensate for changes in r173686,delphij2007-11-161-58/+0
| | | | which included commits to RCS files with non-trunk default branches.
* Resolve conflicts; Update defines.h to reflect latest change.delphij2007-11-166-82/+184
|
* This commit was generated by cvs2svn to compensate for changes in r173682,delphij2007-11-1625-60/+447
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Virgin import of less v415.delphij2007-11-1630-142/+622
| |
* | Teach kgdb how to handle double fault frames on i386:jhb2007-11-163-1/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | - Save td_oncpu in 'struct kthr' so the i386 target code can see which CPU a thread is running on. - Add a new frame unwinder for double fault frames. This unwinder is used when "dblfault_handler" is encountered in the stack. It uses the CPU of the current thread to lookup the base address of the TSS used for the double fault from the GDT. It then fetches the various registers out of the TSS similar to how the current trapframe unwinder fetches registers out of the trapframe. MFC after: 3 days
* | Remove empty setup and cleanup functions for the pfkey test.bz2007-11-164-6/+268
| | | | | | | | | | | | | | | | | | | | | | Add regression tests for privileged and supposedly unprivileged IP_IPSEC_POLICY,IPV6_IPSEC_POLICY setsockopt cases. We may need to review the current 'good' results to make sure they reflect what we really want. Discussed with: rwatson Reviewed by: rwatson
* | Make VPD register access more robust:jkim2007-11-161-69/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | - Implement timing out of VPD register access.[1] - Fix an off-by-one error of freeing malloc'd space when checksum is invalid. - Fix style(9) bugs, i.e., sizeof cannot be followed by space. - Retire now obsolete 'hw.pci.enable_vpd' tunable. Submitted by: cokane (initial revision)[1] Reviewed by: marius (intermediate revision) Silence from: jhb, jmg, rwatson Tested by: cokane, jkim MFC after: 3 days
* | o s/resiserfs_sb/reiserfs_sb/.maxim2007-11-161-1/+1
| | | | | | | | Submitted by: Ighighi
* | Fix exit code when using -l on a non-existent md(4) device.flz2007-11-161-3/+9
| | | | | | | | | | | | PR: conf/116177 Submitted by: Remi Guyomarch <rguyom@pobox.com> MFC after: 3 days
* | Do not report MAC, TX, and RX stats via sysctl(8) with BCM5705+.jkim2007-11-161-7/+6
| | | | | | | | | | | | | | | | | | The register layout is little different from memory-mapped stats in the previous generation chips. In fact, it is bad because registers in this range are cleared after reading them. Reviewed by: scottl MFC after: 3 days
* | use the private task q thread instead of the shared system threadsam2007-11-161-6/+5
| | | | | | | | | | Reviewed by: yongari MFC after: 1 week
* | Fix bug in handling SDP continuation state.emax2007-11-161-5/+5
| | | | | | | | | | Reported by: Eric Millbrandt emillbrandt at coldhaus dot com MFC after: 3 days
* | Add change missing from previous commit: Remove temporary file.cperciva2007-11-161-1/+1
| |
* | Fix "freebsd-update rollback" applied to minor-version upgrades: Oldcperciva2007-11-161-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | shared object files which have the same name as currently-installed shared object files should be reinstalled after binaries are rolled back. The order for rolling back updates is therefore 1. Install any old shared object files which can be installed without overwriting a new shared object file. 2. Rollback everything which isn't a shared object or kernel file. 3. Rollback any shared object files which we didn't deal with in (1). 4. Rollback to the old kernel. Bug reported by: Jan Henrik Sylvester MFC after: 3 days
* | The i386 disc1 size wandered above what fits on 650Mb media which has beenkensmith2007-11-161-0/+1
| | | | | | | | | | our target previously. So i386 joins the others that have switched over to a separate livefs iso image.
* | MFP4(128855, 129015):avatar2007-11-162-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Trying to eliminate another racing by replacing the timeout(9) with callout APIs. In addition to that, the callout_drain() in an_detach() help us to avoid a possible panic-on-free due to the callout API tries to lock a destroyed mutex. - In an_stats_update(), check the return value of an_read_record(). This should reduce the chance of device removal(PCCARD) panic [2]. - Adding a comment to state the fact that an_stats_update() is now called via callout(9) with a lock held [2]. Submitted by: jhb [1], ambrisko [2] Reviewed by: jhb, ambrisko Reported by: dhw Tested by: dhw MFC after: 3 days
* | Reset autonegotation timer if media option is not IFM_AUTO.yongari2007-11-161-1/+5
| | | | | | | | | | Make mii_ticks advance, autonegiation is retried every mii_anegticks seconds.
* | Read MII_ANAR register and get common denominator ability.yongari2007-11-161-1/+6
| | | | | | | | PR: 92599
* | IEEE 802.3 Annex 28B.3 explicitly specifies the following relativeyongari2007-11-167-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | priorities of the technologies supported by 802.3 Selector Field value. 1000BASE-T full duplex 1000BASE-T 100BASE-T2 full duplex 100BASE-TX full duplex 100BASE-T2 100BASE-T4 100BASE-TX 10BASE-T full duplex 10BAST-T However PHY drivers didn't honor the order such that 100BASE-T4 had higher priority than 100BASE-TX full duplex. Fix that long standing bugs such that have PHY drivers choose the highest common denominator ability. Fix a bug in dcphy which inadvertently aceepts 100BASE-T4. PR: 92599
* | Catch up to changes in rescue on ia64.marcel2007-11-161-0/+6
| |
* | Add PCI device support for Intel S7000FC4UR in usb and ichwd, systemsjfv2007-11-154-0/+26
| | | | | | | | | | | | | | will not install without the usb changes in the install kernel, so I would like to MFC this in time for 7.0 RC MFC: 3 days
* | Fix bad rule and bad dependency for nsparser.h that canru2007-11-151-6/+3
| | | | | | | | | | | | | | | | | | | | | | cause the build to fail because y.tab.c can have a more recent modification time than y.tab.h, and the bad rule relied on the opposite. (The last write to y.tab.c by yacc(1) happens after the last write to y.tab.h, according to truss(1).) Reported by: kensmith
* | Add support for cross double fault frames in stack traces:jhb2007-11-154-5/+26
| | | | | | | | | | | | | | | | - Populate the register values for the trapframe put on the stack by the double fault handler. - Teach DDB's trace routine to treat a double fault like other trap frames. MFC after: 3 days
* | Acquire the process mutex and spin locks before calling thread_exit() injhb2007-11-151-1/+8
| | | | | | | | kthread_exit() to fix panics when using INVARIANTS.
* | Fix a change in the previous commit that was actually a type-o.scottl2007-11-151-1/+1
| |
* | Add ttys lines for pts/0-pts/255.rwatson2007-11-156-0/+1536
| | | | | | | | MFC after: 3 days
* | - Adds event handlers for process_ctor,process_dtor, process_init,rrs2007-11-152-2/+23
| | | | | | | | | | | | process_fini, thread_ctor, thread_dtor, thread_init, thread_fini. This will allow us to extend dynamically areas in proc/thread for dtrace ;-) Reviewed by: rwatson
* | Fix build.glebius2007-11-151-1/+1
| |
* | Adds an event handler for:rrs2007-11-151-2/+6
| | | | | | | | | | | | | | | | | | - process_ctor,dtor, init and fini - thread_ctor,dtor, init and fini This allows the ability to add on additional things during construction/destruction of threads and processes. Reviewed by: rwatson
* | Fix (uncritical) potential buffer overflow: the length of "buf" was notse2007-11-151-1/+1
| | | | | | | | | | extended when "jaiL" was added to fmt_flags(). MFC after: 1 week
* | This time REALLY copy the name from the proc to the thread as a default.julian2007-11-153-1/+2
| |
OpenPOWER on IntegriCloud