]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years agoSpelling fixes.
joel [Mon, 2 Aug 2010 16:01:45 +0000 (16:01 +0000)]
Spelling fixes.

13 years agoFix case for library macros
uqs [Mon, 2 Aug 2010 15:33:16 +0000 (15:33 +0000)]
Fix case for library macros

13 years agomdoc policing: use consistent section ordering, fix quotes and trailing
uqs [Mon, 2 Aug 2010 15:15:24 +0000 (15:15 +0000)]
mdoc policing: use consistent section ordering, fix quotes and trailing
whitespace

Approved by: rpaulo

13 years agoMFV OpenSolaris DTrace userland bits.
rpaulo [Mon, 2 Aug 2010 13:40:53 +0000 (13:40 +0000)]
MFV OpenSolaris DTrace userland bits.

13 years agoFix the calltree top view that incorrectly filter out some nodes.
fabient [Mon, 2 Aug 2010 13:40:19 +0000 (13:40 +0000)]
Fix the calltree top view that incorrectly filter out some nodes.

MFC after: 1 week

13 years agomdoc: remove unbalanced quotes
uqs [Mon, 2 Aug 2010 13:11:41 +0000 (13:11 +0000)]
mdoc: remove unbalanced quotes

13 years agomdoc: make sure to pass at least one argument to quotation macros
uqs [Mon, 2 Aug 2010 13:11:35 +0000 (13:11 +0000)]
mdoc: make sure to pass at least one argument to quotation macros

13 years agomdoc: remove unused/empty macros
uqs [Mon, 2 Aug 2010 13:11:27 +0000 (13:11 +0000)]
mdoc: remove unused/empty macros

13 years agoProperly warp around more code under COMPILE_ONLY to recover from build
rpaulo [Mon, 2 Aug 2010 13:05:12 +0000 (13:05 +0000)]
Properly warp around more code under COMPILE_ONLY to recover from build
errors.

13 years agogrdc(6): fix timekeeping for user-supplied value n
uqs [Mon, 2 Aug 2010 12:15:22 +0000 (12:15 +0000)]
grdc(6): fix timekeeping for user-supplied value n

- Keep timespec 'now' and 'delay' separate to avoid confusion
- Increase user-supplied n to run _at least_ n seconds, not max n

PR:            bin/149130 (based on)
Submitted by:  Andy Farkas
MFC after:     2 weeks

13 years agoUpdate DTrace userland code to the latest available.
rpaulo [Mon, 2 Aug 2010 12:13:33 +0000 (12:13 +0000)]
Update DTrace userland code to the latest available.

Summary of changes:

- libdtrace

changeset:   12902:3bb859a7330c
user:        Bryan Cantrill <Bryan.Cantrill@Sun.COM>
date:        Fri Jul 23 17:34:02 2010 -0700
summary:     6679140 asymmetric alloc/dealloc activity can induce dynamic variable drops

changeset:   12692:4341b447c069
user:        Ali Bahrami <Ali.Bahrami@Oracle.COM>
date:        Thu Jun 24 18:16:42 2010 -0600
summary:     6916796 OSnet mapfiles should use version 2 link-editor syntax

changeset:   12507:501806a754d2
user:        Alan Maguire <Alan.Maguire@Sun.COM>
date:        Thu May 27 17:29:51 2010 -0400
summary:     PSARC 2010/106 DTrace TCP and UDP providers

changeset:   11798:1e7f1f154004
user:        Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date:        Sun Feb 28 18:42:20 2010 -0800
summary:     PSARC 2009/657 delete obsolete system call traps

changeset:   11466:d60272412fb0
user:        Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date:        Mon Jan 11 17:42:13 2010 -0800
summary:     6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads

changeset:   11237:0d23e47ed228
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 03 13:39:19 2009 +0000
summary:     6795386 macro arguments and globbing in DTrace probe descriptions don't mix

changeset:   10791:944abfb5b345
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Wed Oct 14 11:25:23 2009 +0100
summary:     6886953 large symbols lead to stack exhaustion

changeset:   10326:8e3fbeec2d76
user:        Siddheshwar Mahesh <Siddheshwar.Mahesh@Sun.COM>
date:        Mon Aug 17 13:26:49 2009 -0500
summary:     6868411 NFS provider generates error on ci_remote on RDMA operations

changeset:   10207:87c40ea3fc4b
user:        jmcp <James.McPherson@Sun.COM>
date:        Wed Jul 29 16:56:03 2009 -0700
summary:     6864230 hiho, hiho, it'ch chtime for CH to go

changeset:   10044:2643c1cd9e2a
user:        Priya Krishnan <Priya.Krishnan@Sun.COM>
date:        Mon Jul 06 21:19:41 2009 -0400
summary:     6855027 iscsit.d breaks dtrace in osol based on snv_117

changeset:   9900:1b86d65a4f9e
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Thu Jun 18 13:16:39 2009 -0600
summary:     6851224 elf_getshnum() and elf_getshstrndx() incompatible with 2002 ELF gABI agreement

changeset:   9885:a3d5e9d9e779
user:        Robert Mastors <Robert.Mastors@Sun.COM>
date:        Tue Jun 16 15:25:25 2009 -0500
summary:     6711844 assert: vp->v_shrlocks == 0L, file: ../../common/fs/vnode.c, line: 2333

changeset:   9881:741c9e4e094c
user:        Charles Ting <Charles.Ting@Sun.COM>
date:        Tue Jun 16 14:51:40 2009 -0400
summary:     6849606 SRP DTrace Probe for xfer-done misses completion of READ transfers

changeset:   9829:e8059fcaee97
user:        Charles Ting <Charles.Ting@Sun.COM>
date:        Tue Jun 09 10:11:35 2009 -0400
summary:     6804431 Add Dtrace probes to SRPT

changeset:   9812:a2990074321f
user:        Priya Krishnan <Priya.Krishnan@Sun.COM>
date:        Mon Jun 08 09:49:48 2009 -0400
summary:     6847237 The iscsit.d DTrace translator should include iscsi.d for the definition of iscsiinfo_t

changeset:   9721:4f7e194c7c37
user:        Priya Krishnan <Priya.Krishnan@Sun.COM>
date:        Tue May 26 10:40:43 2009 -0400
summary:     6809997 COMSTAR iscsi target DTrace Provider needed

changeset:   9625:8aa5731291b4
user:        Sam Cramer <Sam.Cramer@Sun.COM>
date:        Wed May 13 17:10:06 2009 -0700
summary:     6840354 "/usr/lib/dtrace/fc.d", line 59: syntax error near "fct_local_port_t"

changeset:   9609:8874cc8d5e3f
user:        Sam Cramer <Sam.Cramer@Sun.COM>
date:        Mon May 11 21:02:27 2009 -0700
summary:     6809580 fct DTrace providers needed for qlt

changeset:   9578:c4b38ec17f4e
user:        Sam Cramer <Sam.Cramer@Sun.COM>
date:        Fri May 08 12:12:40 2009 -0700
summary:     6809580 fct DTrace providers needed for qlt

changeset:   9531:dc8924ef7839
user:        Rafael Vanoni <rafael.vanoni@sun.com>
date:        Mon May 04 11:48:15 2009 -0700
summary:     6730130 dtrace missing printf handler for stdev

changeset:   9389:750ed3471e90
user:        Vamsi Nagineni <Vamsi.Krishna@Sun.COM>
date:        Fri Apr 17 06:26:47 2009 -0700
summary:     6812050 dtrace should translate curpsinfo->pr_contract

changeset:   9085:ff7eb0bace56
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Wed Mar 18 13:28:28 2009 -0600
summary:     6813909 generalize eh_frame support to non-amd64 platforms

changeset:   8803:8c01b39012c9
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Fri Feb 13 07:13:13 2009 +0000
summary:     PSARC 2008/480 DTrace CPC Provider

changeset:   8744:03d5725cda56
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Tue Feb 10 09:38:02 2009 -0700
summary:     6798660 Cadmium .NOT file processing problem with CWD relative file paths

changeset:   8337:079ecc003ca6
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 11 11:26:47 2008 +0000
summary:     6750659 drti.o crashes app due to corrupt environment

changeset:   7991:d3b751ef3d85
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Mon Nov 03 10:26:23 2008 +0000
summary:     6738982 Representative thread after DTrace stop() action is incorrect

changeset:   7208:568549b138d8
user:        vv149972
date:        Mon Jul 28 23:14:31 2008 -0700
summary:     6696397 NFS v3 provider reports all UDP clients as 0.0.0.0

changeset:   6878:360e73ea6b0c
user:        brendan
date:        Fri Jun 13 19:06:55 2008 -0700
summary:     PSARC 2008/302 DTrace IP Provider

changeset:   6554:b5817e112852
user:        ahl
date:        Mon May 05 14:38:24 2008 -0700
summary:     6677812 race between dtrace activities in non-local zones

----

- ctf tools:

changeset:   12177:800b7f847f1e
user:        Surya Prakki <Surya.Prakki@Sun.COM>
date:        Sun Apr 18 23:59:57 2010 -0700
summary:     6941452 ctfconvert fails on VLAs with code generated by SS12u1

changeset:   11432:c1c450bf62f2
user:        John Levon <john.levon@sun.com>
date:        Tue Jan 05 06:57:53 2010 -0800
summary:     6905711 anonymous and empty SOUs crash ctfconvert

changeset:   11227:cd2ac59c39f2
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Wed Dec 02 15:37:55 2009 -0700
summary:     6900241 ld should track SHT_GROUP sections by symbol name, not section name

changeset:   10380:5394a7172e1f
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Tue Aug 25 13:51:43 2009 -0600
summary:     6866605 SUNWonbld ELF analysis tools need overhaul (fix ctfmerge/libc dependency)

changeset:   10207:87c40ea3fc4b
user:        jmcp <James.McPherson@Sun.COM>
date:        Wed Jul 29 16:56:03 2009 -0700
summary:     6864230 hiho, hiho, it'ch chtime for CH to go

changeset:   10206:51f52702df72
user:        John Levon <john.levon@sun.com>
date:        Wed Jul 29 14:36:30 2009 -0700
summary:     6854065 CTF tools should error out given 1024+-member structures

changeset:   7230:429b4f7acf1a
user:        sn199410
date:        Wed Jul 30 16:10:30 2008 -0700
summary:     6575435 ctf tools cannot handle C99 VLAs ("variable length arrays")

changeset:   6936:72189fcd99e4
user:        sommerfe
date:        Sun Jun 22 09:13:44 2008 -0700
summary:     6716983 left-for-dead ctfmerge worker threads awake to take out maker

----

- dtrace command utility:

changeset:   12507:501806a754d2
user:        Alan Maguire <Alan.Maguire@Sun.COM>
date:        Thu May 27 17:29:51 2010 -0400
summary:     PSARC 2010/106 DTrace TCP and UDP providers

changeset:   11838:32bb5d254240
user:        Liane Praza <Liane.Praza@Sun.COM>
date:        Tue Mar 02 19:29:26 2010 -0700
summary:     PSARC 2010/067 Interim modernization updates

changeset:   11270:47a962fe7b45
user:        Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date:        Mon Dec 07 13:47:36 2009 -0800
summary:     6907170 fix for 6875656 left out updates to DTrace test suite

changeset:   11237:0d23e47ed228
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 03 13:39:19 2009 +0000
summary:     6795386 macro arguments and globbing in DTrace probe descriptions don't mix

changeset:   11153:dec430d20576
user:        Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date:        Sun Nov 22 19:22:26 2009 -0800
summary:     6875656 xdt needs to support more XenTrace probes

changeset:   11102:b91faef0c984
user:        Gavin Maltby <Gavin.Maltby@Sun.COM>
date:        Thu Nov 19 15:28:11 2009 +1100
summary:     PSARC/2009/554 door_xcreate - extended door creation interface for private doors

changeset:   11066:cebb50cbe4f9
user:        Rafael Vanoni <rafael.vanoni@sun.com>
date:        Fri Nov 13 01:32:32 2009 -0800
summary:     PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling

changeset:   10791:944abfb5b345
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Wed Oct 14 11:25:23 2009 +0100
summary:     6886953 large symbols lead to stack exhaustion

changeset:   10207:87c40ea3fc4b
user:        jmcp <James.McPherson@Sun.COM>
date:        Wed Jul 29 16:56:03 2009 -0700
summary:     6864230 hiho, hiho, it'ch chtime for CH to go

changeset:   9531:dc8924ef7839
user:        Rafael Vanoni <rafael.vanoni@sun.com>
date:        Mon May 04 11:48:15 2009 -0700
summary:     6730130 dtrace missing printf handler for stdev

changeset:   9397:e667d620a75c
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Mon Apr 20 07:58:44 2009 +0100
summary:     6806023 cpc provider event name validation needs to be a bit tighter

changeset:   8803:8c01b39012c9
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Fri Feb 13 07:13:13 2009 +0000
summary:     PSARC 2008/480 DTrace CPC Provider

changeset:   8605:0189cb9c5358
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Jan 22 12:09:13 2009 +0000
summary:     6749441 intrstat(1M) shows zeroed values after suspend/resume

changeset:   8337:079ecc003ca6
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 11 11:26:47 2008 +0000
summary:     6750659 drti.o crashes app due to corrupt environment

changeset:   8287:771477e4b843
user:        John Sonnenschein <John.Sonnenschein@Sun.COM>
date:        Fri Dec 05 19:08:38 2008 -0800
summary:     PSARC 2005/462 Removal of Perl 5.6.1 from Solaris 11

changeset:   7991:d3b751ef3d85
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Mon Nov 03 10:26:23 2008 +0000
summary:     6738982 Representative thread after DTrace stop() action is incorrect

changeset:   7502:da077e5d991e
user:        Aruna Ramakrishna <aruna@cs.umn.edu>
date:        Sat Sep 06 05:36:02 2008 -0400
summary:     6706947 tcp_trace should be replaced with dtrace probes.

changeset:   7484:a48e950bad22
user:        Tom Erickson <tomee@eng.sun.com>
date:        Wed Sep 03 15:14:25 2008 -0700
summary:     6737926 getAggregate() method fails to specify anonymous aggregation explicitly

changeset:   7299:d9a056040774
user:        John Beck <John.Beck@Sun.COM>
date:        Thu Aug 07 12:44:26 2008 -0700
summary:     6734627 protocmp complains about opt/SUNWdtrt/README after TW -> Hg switch

changeset:   6998:58787ea78303
user:        brendan
date:        Tue Jul 01 18:28:22 2008 -0700
summary:     6721426 tst.sdtargs.d passes despite dtrace "invalid address" error

changeset:   6878:360e73ea6b0c
user:        brendan
date:        Fri Jun 13 19:06:55 2008 -0700
summary:     PSARC 2008/302 DTrace IP Provider

changeset:   6670:1961a43f2335
user:        tariq
date:        Tue May 20 15:08:16 2008 -0700
summary:     6685348 Hypervisor event provider for DTrace

changeset:   6554:b5817e112852
user:        ahl
date:        Mon May 05 14:38:24 2008 -0700
summary:     6677812 race between dtrace activities in non-local zones

changeset:   6543:465433824d87
user:        rie
date:        Fri May 02 15:01:06 2008 -0700
summary:     6683064 check_rtime could do with some spring cleaning

13 years agoDocument the new argument parser for sleep(1) and SIGINFO behaviour.
kib [Mon, 2 Aug 2010 10:59:23 +0000 (10:59 +0000)]
Document the new argument parser for sleep(1) and SIGINFO behaviour.
Remove higlight for the unportability notice.

MFC after: 3 weeks

13 years agoSimplify argument parser by using sscanf(); simplify usage() by not
kib [Mon, 2 Aug 2010 10:57:56 +0000 (10:57 +0000)]
Simplify argument parser by using sscanf(); simplify usage() by not
refusing to use stdio.
Reduce nesting level in the sleep loop by returning earlier for negative
timeouts.
Limit the maximum timeout to INT_MAX seconds.

Submitted by: bde
MFC after: 3 weeks

13 years agoForward ioctl requests to original geom.
ae [Mon, 2 Aug 2010 10:30:49 +0000 (10:30 +0000)]
Forward ioctl requests to original geom.

PR: 148540
Silence from: luigi
Reviewed by: pjd
Approved by: mav (mentor)
MFC after: 2 weeks

13 years agoRelease access for consumers that are opened, but will be destroyed
ae [Mon, 2 Aug 2010 10:26:15 +0000 (10:26 +0000)]
Release access for consumers that are opened, but will be destroyed
indirectly by orphan method.

PR: 148688
Silence from: marcel
Approved by: mav (mentor)
MFC after:  2 weeks

13 years agosh: Add a test for a corner case in eval that already works correctly.
jilles [Sun, 1 Aug 2010 22:39:07 +0000 (22:39 +0000)]
sh: Add a test for a corner case in eval that already works correctly.

13 years agoCorrect function name.
pjd [Sun, 1 Aug 2010 21:54:25 +0000 (21:54 +0000)]
Correct function name.

MFC after: 3 days

13 years agosh: Do not enter consecutive duplicates into the history.
jilles [Sun, 1 Aug 2010 16:37:51 +0000 (16:37 +0000)]
sh: Do not enter consecutive duplicates into the history.

This simply sets a flag in libedit. It has a shortcoming in that it does not
apply to multi-line commands.

Note that a configuration option for this is not going to happen, but always
having this seems better than not having it. NetBSD has done the same.

PR: bin/54683
Obtained from: NetBSD
MFC after: 1 month

13 years agoAllow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not
jilles [Sun, 1 Aug 2010 15:41:00 +0000 (15:41 +0000)]
Allow starting /etc/rc.d/ipmon if ipnat is enabled but ipfilter is not
(in /etc/rc.conf).

This fixes an apparent confusion between test(1) and sh(1) syntax for
AND/OR.

PR: conf/149036
Submitted by: pluknet
MFC after: 1 week

13 years agoDisable all warnings when building gdtoa. This allows building libc with
rpaulo [Sun, 1 Aug 2010 12:35:01 +0000 (12:35 +0000)]
Disable all warnings when building gdtoa. This allows building libc with
clang.
The general idea is that the vendor will not accept our compilation
patches and so disabling the warnings is the best way to go as it makes
future imports bearable.

Submitted by: Dimitry Andric <dimitry at andric.com>
Discussed with: das

13 years agoUse CFLAGS and LDFLAGS when compiling mkmagic. This ensures that all the
rpaulo [Sun, 1 Aug 2010 12:10:32 +0000 (12:10 +0000)]
Use CFLAGS and LDFLAGS when compiling mkmagic. This ensures that all the
correct flags are being used (esp. NO_WERROR wrt clang).

Submitted by: Dimitry Andric <dimitry at andric.com>
Reviewed by: ru

13 years agoSpelling fixes.
joel [Sun, 1 Aug 2010 09:37:36 +0000 (09:37 +0000)]
Spelling fixes.

13 years agoFix typos.
joel [Sun, 1 Aug 2010 09:10:09 +0000 (09:10 +0000)]
Fix typos.

13 years agoMFV of r210716, tzdata2010k
edwin [Sun, 1 Aug 2010 09:03:10 +0000 (09:03 +0000)]
MFV of r210716, tzdata2010k

- Daylight Saving Time will not be used in Egypt during Ramadan.
- Proper names for Pacific/Pohnpei and Pacific/Chuuk
- Fix historical information for Finland for 1981 and 1982
- No leap-second for December 2010.
- Fix historical information for Ontario (Canada)

13 years agoCleanup code.
tuexen [Sun, 1 Aug 2010 08:06:59 +0000 (08:06 +0000)]
Cleanup code.

MFC after: 2 weeks

13 years agoImprove hash coverage for kernel page table entries by modifying the kernel
nwhitehorn [Sat, 31 Jul 2010 21:35:15 +0000 (21:35 +0000)]
Improve hash coverage for kernel page table entries by modifying the kernel
ESID -> VSID map function. This makes ZFS run stably on PowerPC under
heavy loads (repeated simultaneous SVN checkouts and updates).

13 years agoDocument the mandatory argument to the arptimer() and
bz [Sat, 31 Jul 2010 21:33:18 +0000 (21:33 +0000)]
Document the mandatory argument to the arptimer() and
nd6_llinfo_timer() functions with a KASSERT().
Note: there is no need to return after panic.

In the legacy IP case, only assign the arg after the check,
in the IPv6 case, remove the extra checks for the table and
interface as they have to be there unless we freed and forgot
to cancel the timer.  It doesn't matter anyway as we would
panic on the NULL pointer deref immediately and the bug is
elsewhere.
This unifies the code of both address families to some extend.

Reviewed by: rwatson
MFC after: 6 days

13 years agoSpelling fixes.
joel [Sat, 31 Jul 2010 21:09:49 +0000 (21:09 +0000)]
Spelling fixes.

13 years agoFixes a bug when installing with a ZFS on root (/) and UFS /boot
imp [Sat, 31 Jul 2010 19:27:43 +0000 (19:27 +0000)]
Fixes a bug when installing with a ZFS on root (/) and UFS /boot
partition. Don't stamp the zfs boot-loader in this case.

Submitted by: kris moore

13 years agoAdds the async option for journaled file systems (UFS + journaling)
imp [Sat, 31 Jul 2010 19:25:51 +0000 (19:25 +0000)]
Adds the async option for journaled file systems (UFS + journaling)

Submitted by: kris moore (kris at pcbsd org)

13 years agoUse PTR_ADDU to change sp, so that it works for n64 too.
jchandra [Sat, 31 Jul 2010 19:13:08 +0000 (19:13 +0000)]
Use PTR_ADDU to change sp, so that it works for n64 too.

13 years agoUse fuword32() to fetch instructions, this will work on both 32 and 64 bit
jchandra [Sat, 31 Jul 2010 19:11:38 +0000 (19:11 +0000)]
Use fuword32() to fetch instructions, this will work on both 32 and 64 bit
compilation.

13 years agolockstat(1) now depends on libutil and librtld_db.
rpaulo [Sat, 31 Jul 2010 17:58:44 +0000 (17:58 +0000)]
lockstat(1) now depends on libutil and librtld_db.

Sponsored by: The FreeBSD Foundation

13 years agoDeal with proper format for printing time_t.
kib [Sat, 31 Jul 2010 17:41:58 +0000 (17:41 +0000)]
Deal with proper format for printing time_t.

Reported by: ache
MFC after: 3 weeks

13 years agoproc_wait() was replaced by proc_wstatus(). Right now this call is
rpaulo [Sat, 31 Jul 2010 17:23:37 +0000 (17:23 +0000)]
proc_wait() was replaced by proc_wstatus(). Right now this call is
useless because userland support is not working on HEAD, but this makes
libdtrace compile again.

Sponsored by: The FreeBSD Foundation

13 years agoRevert SHLIB_MAJOR to 2.
rpaulo [Sat, 31 Jul 2010 17:14:54 +0000 (17:14 +0000)]
Revert SHLIB_MAJOR to 2.

As discussed with kan@, since DTrace is the only consumer of libproc
right now, there's no need for a major shlib bump.

13 years agolibdtrace, dtrace(1) and lockstat(1) are for i386 and amd64 only right
rpaulo [Sat, 31 Jul 2010 17:13:14 +0000 (17:13 +0000)]
libdtrace, dtrace(1) and lockstat(1) are for i386 and amd64 only right
now.

Sponsored by: The FreeBSD Foundation

13 years agoUpdate to the new proc_detach() function.
rpaulo [Sat, 31 Jul 2010 17:10:55 +0000 (17:10 +0000)]
Update to the new proc_detach() function.

Sponsored by: The FreeBSD Foundation

13 years agodtrace(1) now depends on libutil and librtld_db.
rpaulo [Sat, 31 Jul 2010 17:09:37 +0000 (17:09 +0000)]
dtrace(1) now depends on libutil and librtld_db.

Sponsored by: The FreeBSD Foundation

13 years agoBuild librtld_db.
rpaulo [Sat, 31 Jul 2010 16:12:47 +0000 (16:12 +0000)]
Build librtld_db.

Sponsored by: The FreeBSD Foundation

13 years agoBump the shared library major version due to ABI conflicts.
rpaulo [Sat, 31 Jul 2010 16:11:11 +0000 (16:11 +0000)]
Bump the shared library major version due to ABI conflicts.

Sponsored by: The FreeBSD Foundation

13 years agoNew version of libproc. Changes are:
rpaulo [Sat, 31 Jul 2010 16:10:20 +0000 (16:10 +0000)]
New version of libproc. Changes are:
* breakpoint setup support
* register query
* symbol to address mapping and vice-versa
* more misc utility functions based on their Solaris counterpart

Also, I've written some test cases.

Sponsored by: The FreeBSD Foundation

13 years agoMFp4 @181628:
bz [Sat, 31 Jul 2010 15:31:23 +0000 (15:31 +0000)]
MFp4 @181628:

Free the rtentry after we diconnected it from the FIB and are counting
it as rttrash.  There might still be a chance we leak it from a different
code path but there is nothing we can do about this here.

Sponsored by: ISPsystem (in February)
Reviewed by: julian (in February)
MFC after: 2 weeks

13 years agoAdd libproc.
rpaulo [Sat, 31 Jul 2010 14:57:33 +0000 (14:57 +0000)]
Add libproc.

Sponsored by: The FreeBSD Foundation

13 years agoSimplify the Makefile. The i386 and amd64 sections are equal.
rpaulo [Sat, 31 Jul 2010 14:53:43 +0000 (14:53 +0000)]
Simplify the Makefile. The i386 and amd64 sections are equal.

Sponsored by: The FreeBSD Foundation

13 years agolibproc is going to be i386/amd64 only with the next update.
rpaulo [Sat, 31 Jul 2010 14:52:29 +0000 (14:52 +0000)]
libproc is going to be i386/amd64 only with the next update.

Sponsored by: The FreeBSD Foundation

13 years agoAdd librtld_db.
rpaulo [Sat, 31 Jul 2010 14:36:34 +0000 (14:36 +0000)]
Add librtld_db.

Sponsored by: The FreeBSD Foundation

13 years agoAdd LIBRTLD_DB.
rpaulo [Sat, 31 Jul 2010 14:32:54 +0000 (14:32 +0000)]
Add LIBRTLD_DB.

Sponsored by: The FreeBSD Foundation

13 years agoReport the time left for the sleep on SIGINFO.
kib [Sat, 31 Jul 2010 14:30:11 +0000 (14:30 +0000)]
Report the time left for the sleep on SIGINFO.
Be stricter in the checking of interval specification.

PR: bin/139345
MFC after: 3 weeks

13 years agoImport the librtld_db library. This is needed by userland DTrace.
rpaulo [Sat, 31 Jul 2010 14:26:10 +0000 (14:26 +0000)]
Import the librtld_db library. This is needed by userland DTrace.
This is not yet enabled in the build because I also need to import a new
version of libproc.

Sponsored by: The FreeBSD Foundation

13 years agoAdd support for the IBM Full-System Simulator (Mambo). This code has been
nwhitehorn [Sat, 31 Jul 2010 13:22:34 +0000 (13:22 +0000)]
Add support for the IBM Full-System Simulator (Mambo). This code has been
developed against the 970 and Cell simulators.

13 years agoFix a bunch of typos and spelling mistakes.
joel [Sat, 31 Jul 2010 12:14:28 +0000 (12:14 +0000)]
Fix a bunch of typos and spelling mistakes.

13 years agoSpelling fixes.
joel [Sat, 31 Jul 2010 10:01:15 +0000 (10:01 +0000)]
Spelling fixes.

13 years agopci_if.h is required to build atacore.
rpaulo [Sat, 31 Jul 2010 00:08:18 +0000 (00:08 +0000)]
pci_if.h is required to build atacore.

13 years agoFix a bug in syncache where the initial CWND for new incoming connections
andre [Fri, 30 Jul 2010 21:45:53 +0000 (21:45 +0000)]
Fix a bug in syncache where the initial CWND for new incoming connections
was limited to one segment under the faulty assumption of a retransmit.
Due to this the opportunity to initialize the increased congestion window
according to RFC3390 was missed.

Support for RFC3465 introduced in r187289 uncovered the bug as the ACK
to SYN/ACK no longer caused snd_cwnd increase by MSS (actually, this
increase shouldn't happen as it's explicitly forbidden by RFC3390, but
it's another issue).  Snd_cwnd remains really small (1*MSS + 1) and this
causes really bad interaction with delayed acks on other side.

The variable name sc_rxmits is a bit misleading as it counts all transmits,
not just retransmits.

Submitted by: Maxim Dounin <mdounin-at-mdounin-dot-ru>
MFC after: 10 days

13 years agoIn rdmsr_safe, use zero extend (by doing a 32-bit movl over
delphij [Fri, 30 Jul 2010 21:39:28 +0000 (21:39 +0000)]
In rdmsr_safe, use zero extend (by doing a 32-bit movl over
eax to itself) instead of a sign extend.

Discussed with: stas
MFC after: 1 month

13 years agoAdd MALLOC_DEBUG_MAXZONES=8 to powerpc64 GENERIC configuration file.
mdf [Fri, 30 Jul 2010 20:25:04 +0000 (20:25 +0000)]
Add MALLOC_DEBUG_MAXZONES=8 to powerpc64 GENERIC configuration file.

Requested by:    nwhitehorn
Approved by:     zml (mentor)

13 years agoFix indention of attribution line for some recent additions.
uqs [Fri, 30 Jul 2010 20:20:14 +0000 (20:20 +0000)]
Fix indention of attribution line for some recent additions.

MFC after: 3 days

13 years agoChange copyright holder to author. We prefer using a real legal
delphij [Fri, 30 Jul 2010 17:51:22 +0000 (17:51 +0000)]
Change copyright holder to author.  We prefer using a real legal
entity for copyright holders.

Approved by: sephe
MFC after: 3 days

13 years agoAdd missing escape characthers.
rpaulo [Fri, 30 Jul 2010 15:25:57 +0000 (15:25 +0000)]
Add missing escape characthers.

Pointed out by: b.f.

13 years agoFix spelling.
joel [Fri, 30 Jul 2010 14:05:20 +0000 (14:05 +0000)]
Fix spelling.

13 years agoA simple test harness to help debug problems with the ZFS boot code.
dfr [Fri, 30 Jul 2010 13:54:15 +0000 (13:54 +0000)]
A simple test harness to help debug problems with the ZFS boot code.

13 years agogsched(8) was first released with FreeBSD 8.1
uqs [Fri, 30 Jul 2010 12:56:34 +0000 (12:56 +0000)]
gsched(8) was first released with FreeBSD 8.1

MFC after: 3 days

13 years agon64 support - enable UX bit in STATUS for kernel and userspace.
jchandra [Fri, 30 Jul 2010 12:45:00 +0000 (12:45 +0000)]
n64 support - enable UX bit in STATUS for kernel and userspace.

- enable UX in kernel start, and kernel entry
- keep UX flag in cpu_fork and cpu_set_upcall
- enable UX for userspace

13 years agoFix a couple of typos.
uqs [Fri, 30 Jul 2010 11:58:18 +0000 (11:58 +0000)]
Fix a couple of typos.

PR: docs/148891
Submitted by: olgeni
MFC after: 1 week

13 years ago- Add Ukranian catalog
gabor [Fri, 30 Jul 2010 11:07:24 +0000 (11:07 +0000)]
- Add Ukranian catalog

Submitted by: Alex Kozlov <spam@rm-rf.kiev.ua>

13 years agoMIPS n64 support - support kstack in XKSEG.
jchandra [Fri, 30 Jul 2010 09:38:47 +0000 (09:38 +0000)]
MIPS n64 support - support kstack in XKSEG.
- enable KX on entry from user-space, we need KX set to save to XKSEG
  addresses.
- add MIPS_XKSEG_START to genassym.c
- Add n64 case for swth.S

13 years agoFix typo in pom(6) manpage
uqs [Fri, 30 Jul 2010 09:34:40 +0000 (09:34 +0000)]
Fix typo in pom(6) manpage

PR: docs/148825
Submitted by: Anatoly Borodin
MFC after: 1 week

13 years agoFix previous commit: I forgot to include parenthesis.
rpaulo [Fri, 30 Jul 2010 08:52:19 +0000 (08:52 +0000)]
Fix previous commit: I forgot to include parenthesis.

Submitted by: anonymous

13 years agoConsistently check header type after reading PCIR_HDRTYPE register.
yongari [Thu, 29 Jul 2010 20:42:38 +0000 (20:42 +0000)]
Consistently check header type after reading PCIR_HDRTYPE register.
While I'm here use defined macro instead of using magic numbers for
header type.

Reviewed by: jhb

13 years agoAdd compat32 shims for opencrypto(4).
kib [Thu, 29 Jul 2010 20:42:20 +0000 (20:42 +0000)]
Add compat32 shims for opencrypto(4).

Reviewed by: bz
MFC after: 3 weeks

13 years agoUpdate rge driver for 64 bit kernel.
jchandra [Thu, 29 Jul 2010 20:41:40 +0000 (20:41 +0000)]
Update rge driver for 64 bit kernel.
- stored virtual addresses should be 64bit
- physical memory can be directly accessed using XKPHYS pointers in 64 bit.
- no need to enable KX

13 years ago64 bit support for MIPS rtld.
jchandra [Thu, 29 Jul 2010 20:18:52 +0000 (20:18 +0000)]
64 bit support for MIPS rtld.

- Handle the case where pltgot[1] is 64 bit.
- use 'ifdef __mips_n64' instead of 'ELFSIZE == 64' to detect 64 bit compile.

13 years agoFix typo.
pjd [Thu, 29 Jul 2010 20:16:12 +0000 (20:16 +0000)]
Fix typo.

PR: docs/149033
Submitted by: Kolar <hsn@sendmail.cz>
MFC after: 3 days

13 years agoPrepare for 3 level page tables for MIPS.
jchandra [Thu, 29 Jul 2010 20:02:56 +0000 (20:02 +0000)]
Prepare for 3 level page tables for MIPS.

- Move page table second level shift and mask to param.h
- rename SEGOFSET to SEGMASK
- fix values for 64 bit maximum kernel and user addresses.

13 years agoAdd fuiword() in n64 for completeness.
jchandra [Thu, 29 Jul 2010 19:47:15 +0000 (19:47 +0000)]
Add fuiword() in n64 for completeness.

13 years agoMIPS 64 bit support. Define fuword64() for n64 compilation, fuword() should
jchandra [Thu, 29 Jul 2010 19:14:06 +0000 (19:14 +0000)]
MIPS 64 bit support. Define fuword64() for n64 compilation, fuword() should
be fuword64() in 64 bit.

13 years agoImprove cputemp(4) driver wrt newer Intel processors, especially
delphij [Thu, 29 Jul 2010 19:08:22 +0000 (19:08 +0000)]
Improve cputemp(4) driver wrt newer Intel processors, especially
Xeon 5500/5600 series:

 - Utilize IA32_TEMPERATURE_TARGET, a.k.a. Tj(target) in place
   of Tj(max) when a sane value is available, as documented
   in Intel whitepaper "CPU Monitoring With DTS/PECI"; (By sane
   value we mean 70C - 100C for now);
 - Print the probe results when booting verbose;
 - Replace cpu_mask with cpu_stepping;
 - Use CPUID_* macros instead of rolling our own.

Approved by: rpaulo
MFC after: 1 month

13 years agoMark the __curthread() functions as __pure2 and remove the volatile keyword
jhb [Thu, 29 Jul 2010 18:44:10 +0000 (18:44 +0000)]
Mark the __curthread() functions as __pure2 and remove the volatile keyword
from the inline assembly.  This allows the compiler to cache invocations of
curthread since it's value does not change within a thread context.

Submitted by: zec (i386)
MFC after: 1 week

13 years ago- Some minor changes to the messages to increase usefulness of error msgs
gabor [Thu, 29 Jul 2010 18:02:57 +0000 (18:02 +0000)]
- Some minor changes to the messages to increase usefulness of error msgs

Reviewed by: hrs (Japanese catalogs),
pluknet <pluknet at gmail dot com> (Russian catalog)
Approved by: delphij (mentor)

13 years agoMake sure that we clear the correct bits when we turn off
gnn [Thu, 29 Jul 2010 17:52:23 +0000 (17:52 +0000)]
Make sure that we clear the correct bits when we turn off
a PMC.  It was possible that we could have turned a bit on but
never cleared it.

Extend the calls to rdmsr() to all necessary functions, not
just those which previously caused a panic.

Pointed out by: jhb@
MFC after: 1 week

13 years agoWhen performing a sanity check on the SRAT table to ensure that each
jhb [Thu, 29 Jul 2010 17:37:35 +0000 (17:37 +0000)]
When performing a sanity check on the SRAT table to ensure that each
memory domain has an assigned CPU, ignore disabled CPUs.  Previously
disabled CPUs were counted as being in domain 0.

Reported by: mdf

13 years agoMFamd64: r210615
jkim [Thu, 29 Jul 2010 17:00:41 +0000 (17:00 +0000)]
MFamd64: r210615

Fix another fallout from r208833.  savectx() is used to save CPU context
for crash dump (dumppcb) and kdb (stoppcbs).  For both cases, we cannot
have a valid pointer in pcb_save.  This should restore the previous
behaviour.

13 years agoFix another fallout from r208833. savectx() is used to save CPU context
jkim [Thu, 29 Jul 2010 16:49:20 +0000 (16:49 +0000)]
Fix another fallout from r208833.  savectx() is used to save CPU context
for crash dump (dumppcb) and kdb (stoppcbs).  For both cases, there cannot
have a valid pointer in pcb_save.  This should restore the previous
behaviour.

13 years agoRename PCB_USER_FPU to PCB_USERFPU not to clash with a macro from fpu.h.
jkim [Thu, 29 Jul 2010 16:41:21 +0000 (16:41 +0000)]
Rename PCB_USER_FPU to PCB_USERFPU not to clash with a macro from fpu.h.

13 years agokill: Stop processing if a syntactically invalid pid is encountered.
jilles [Thu, 29 Jul 2010 16:40:45 +0000 (16:40 +0000)]
kill: Stop processing if a syntactically invalid pid is encountered.

So a command like
  kill _HUP 1
now fails without sending SIGTERM to init.

The behaviour when kill(2) fails remains unchanged: processing continues.
This matches other implementations and POSIX and is useful for killing
multiple processes at once when some of them may already be gone.

PR: bin/40282

13 years agoWhen building WITH_CTF=1, print the ctf executable that's going to be
rpaulo [Thu, 29 Jul 2010 16:30:27 +0000 (16:30 +0000)]
When building WITH_CTF=1, print the ctf executable that's going to be
run. This makes the 'ctfconvert' and 'ctfmerge' programs show up during
a build when compiling a kernel, a library or a program.

Sponsored by: The FreeBSD Foundation

13 years agoBump the witness pendlist to 768 to accomodate the increased number of
rpaulo [Thu, 29 Jul 2010 16:13:26 +0000 (16:13 +0000)]
Bump the witness pendlist to 768 to accomodate the increased number of
spinlocks.

13 years ago- Avoid calling the copy constructor when it is not necessary.
lulf [Thu, 29 Jul 2010 16:06:40 +0000 (16:06 +0000)]
- Avoid calling the copy constructor when it is not necessary.

13 years ago- Remove unused instance of string.
lulf [Thu, 29 Jul 2010 16:01:10 +0000 (16:01 +0000)]
- Remove unused instance of string.

13 years agoUpdate MIPS _stdint.h for 64 bit. Initial 64 bit changes for profile.h.
jchandra [Thu, 29 Jul 2010 14:04:29 +0000 (14:04 +0000)]
Update MIPS _stdint.h for 64 bit. Initial 64 bit changes for profile.h.

13 years agoFix RQB_FFS for 64 bit, we need to use ffsl() for 64bit.
jchandra [Thu, 29 Jul 2010 13:52:46 +0000 (13:52 +0000)]
Fix RQB_FFS for 64 bit, we need to use ffsl() for 64bit.

Use 'ifdef __mips_n64' instead of 'if defined' to be consistant with other
usage.

13 years agoFix test for double-nul characters that terminate the string table at
jhb [Thu, 29 Jul 2010 13:46:37 +0000 (13:46 +0000)]
Fix test for double-nul characters that terminate the string table at
the end of each SMBIOS/DMI structure.

Submitted by: Dmitrij Tejblum @ yandex.ru
MFC after: 3 days

13 years agoAdapt sparc64 and sun4v timer code for the new event timers infrastructure.
mav [Thu, 29 Jul 2010 12:08:46 +0000 (12:08 +0000)]
Adapt sparc64 and sun4v timer code for the new event timers infrastructure.

Reviewed by: marius@

13 years agoFix the comment block that has the nice
rrs [Thu, 29 Jul 2010 12:01:59 +0000 (12:01 +0000)]
Fix the comment block that has the nice
table to really have the nice table :-)

MFC after: 1 month

13 years agoPR SCTP Bugs. Basically a full sized frame of
rrs [Thu, 29 Jul 2010 11:37:04 +0000 (11:37 +0000)]
PR SCTP Bugs. Basically a full sized frame of
PR SCTP FWD-TSN's would not be sent and thus
cause a stalled connection. Also the rwnd
Calculation was also off on the receiver side for
PR-SCTP.
MFC after: 1 month

13 years agoFix 'pciconf -a' by providing an implementation of PCIOCATTACHED.
neel [Thu, 29 Jul 2010 06:27:41 +0000 (06:27 +0000)]
Fix 'pciconf -a' by providing an implementation of PCIOCATTACHED.

Reviewed by: imp
MFC after: 1 week
Pointed out by: Heymian Wong (heymian at mit.alum.edu)
Sponsored by: NetApp

13 years agoFix build for o32 kernels.
neel [Thu, 29 Jul 2010 05:14:59 +0000 (05:14 +0000)]
Fix build for o32 kernels.

The emulation of 'ld' and 'sd' instructions only works for ABIs that support
64-bit registers and the instructions 'ldl' and 'ldr' that operate on those
registers.

Reviewed by: jmallett

13 years agoo) Subtract 64K from the default userland stack pointer. GCC generate code
jmallett [Thu, 29 Jul 2010 02:32:21 +0000 (02:32 +0000)]
o) Subtract 64K from the default userland stack pointer.  GCC generate code
   that with a 32-bit ABI on a system with 64-bit registers can attempt to
   access an invalid (well, kernel) memory address rather than the intended
   user address for stack-relative loads and stores.  Lowering the stack
   pointer works around this. [1]
o) Make TRAP_DEBUG code conditional on the trap_debug variable.  Make
   trap_debug default to 0 instead of 1 now but make it possible to change it
   at runtime using sysctl.
o) Kill programs that attempt an unaligned access of a kernel address.  Note
   that with some ABIs, calling useracc() is not sufficient since the register
   may be 64-bit but vm_offset_t is 32-bit so a kernel address could be
   truncated to what looks like a valid user address, allowing the user to
   crash the kernel.
o) Clean up unaligned access emulation to support unaligned 16-bit and 64-bit
   accesses.  (For 16-bit accesses it was checking for user access to too much
   memory (4 bytes) and there was no 64-bit support.)  This still lacks support
   for unaligned load-linked and store-conditional.

Reviewed by: [1] gonzo

13 years ago- Add Japanese NLS catalogs
gabor [Thu, 29 Jul 2010 01:15:26 +0000 (01:15 +0000)]
- Add Japanese NLS catalogs

Submitted by: hrs
Approved by: delphij (mentor)