]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoMFC: merge -P flag for displaying per-cpu %user/%system/%idle states.
peter [Wed, 9 Apr 2008 19:08:43 +0000 (19:08 +0000)]
MFC: merge -P flag for displaying per-cpu %user/%system/%idle states.

16 years agoMFC: add -P flag etc for displaying per-cpu stats.
peter [Wed, 9 Apr 2008 19:07:34 +0000 (19:07 +0000)]
MFC: add -P flag etc for displaying per-cpu stats.

16 years agoMFC: collect per-cpu stats for %user, %system, %idle etc. Counters are
peter [Wed, 9 Apr 2008 19:05:59 +0000 (19:05 +0000)]
MFC: collect per-cpu stats for %user, %system, %idle etc.  Counters are
stored in pcpu area and merged at collection time rather than a common
set being manipulated with atomic ops.

16 years agoMFC: Add an '-a' option which maps to '-RpP'.
jhb [Wed, 9 Apr 2008 16:17:50 +0000 (16:17 +0000)]
MFC: Add an '-a' option which maps to '-RpP'.

16 years agoMFC: Hitch fifolog tools into build
phk [Wed, 9 Apr 2008 16:01:07 +0000 (16:01 +0000)]
MFC: Hitch fifolog tools into build

16 years agoMFC: the fifolog tools.
phk [Wed, 9 Apr 2008 10:01:08 +0000 (10:01 +0000)]
MFC: the fifolog tools.

(Will be connected to build after a make universe check)

16 years agoMFC if_lagg.c r1.26-27, ieee8023ad_lacp.c r1.13-15, ieee8023ad_lacp.h r1.9-11
thompsa [Wed, 9 Apr 2008 00:47:41 +0000 (00:47 +0000)]
MFC if_lagg.c r1.26-27, ieee8023ad_lacp.c r1.13-15, ieee8023ad_lacp.h r1.9-11
 - Pass any unmatched slowprotocols frames up the stack
 - Switch the LACP state machine over to its own mutex

16 years agoMFC r1.68
thompsa [Wed, 9 Apr 2008 00:38:32 +0000 (00:38 +0000)]
MFC r1.68

  Improve EtherIP interaction with the bridge
  Submitted by:   Eugene Grosbein

16 years agoMFC revisions 1.56 and 1.57:
trhodes [Tue, 8 Apr 2008 17:33:57 +0000 (17:33 +0000)]
MFC revisions 1.56 and 1.57:

Bring the DIAGNOSTICS section in ed.4 closer to reality by removing missing
diagnostic messages and adding a few found in the code.

PR: 51891

Properly Xref device.hints(5).

16 years agoMFC r1.11:
rpaulo [Tue, 8 Apr 2008 16:39:00 +0000 (16:39 +0000)]
MFC r1.11:
  Add Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported
  devices.

16 years agoMFC:
rpaulo [Tue, 8 Apr 2008 16:36:49 +0000 (16:36 +0000)]
MFC:
  Add Qualcomm ZTE CMDMA MSM modem to the list of supported modems.

16 years agoMFC: Explicitly bypass bpf(4) for media test packets during attach.
jhb [Tue, 8 Apr 2008 14:23:23 +0000 (14:23 +0000)]
MFC: Explicitly bypass bpf(4) for media test packets during attach.

16 years agoMFi386: revision 1.474.2.5
nyan [Tue, 8 Apr 2008 13:15:56 +0000 (13:15 +0000)]
MFi386: revision 1.474.2.5

  Add USB->RS232 devices to the GENERIC kernel.

16 years agoMFC r1.97:
rpaulo [Tue, 8 Apr 2008 12:35:56 +0000 (12:35 +0000)]
MFC r1.97:
  Sync with rev 1.63 of NetBSD's ums.c:
       If a mouse has both a wheel and a Z direction we report both.
       XXX Due to tradition the wheel is reported as the Z direction (and the Z
       direction as W).
       Now Apple's Mighty Mouse is fully supported, except the X11 mouse driver
       doesn't know what to do with the new coordinate.

16 years agoMFC 1.310: In abort2(2): Accept a NULL arg pointer if nargs == 0
phk [Tue, 8 Apr 2008 11:04:06 +0000 (11:04 +0000)]
MFC 1.310: In abort2(2): Accept a NULL arg pointer if nargs == 0

16 years agoMFC:
phk [Tue, 8 Apr 2008 10:48:21 +0000 (10:48 +0000)]
MFC:

Add support for "atacontrol spindown"

16 years agoMFC
phk [Tue, 8 Apr 2008 09:54:37 +0000 (09:54 +0000)]
MFC
1.44,1.45:  Report CFA capability.
1.46: Un-cut&paste argument processing, fix things lint found.

16 years agoMFC 1.206: If the disk reports that it support the Compact Flash
phk [Tue, 8 Apr 2008 09:49:42 +0000 (09:49 +0000)]
MFC 1.206: If the disk reports that it support the Compact Flash
Association command set, announce BIO_DELETE capability and issue
ATA_CFA_ERASE when we get one.

16 years agoMFC:
phk [Tue, 8 Apr 2008 09:45:06 +0000 (09:45 +0000)]
MFC:

1.127 Use bus_{read|write_*() instead of bus_space_{read|write}_*() for
purely stylistic reasons.

16 years agoMFC:
phk [Tue, 8 Apr 2008 09:38:15 +0000 (09:38 +0000)]
MFC:
1.13: Use correct bitmask for checking CPU identities.
1.16: Add XXX comment about the table in general.

16 years agoAdd pkg_check and pkg_sign to ObsoleteFiles.inc.
flz [Tue, 8 Apr 2008 09:08:17 +0000 (09:08 +0000)]
Add pkg_check and pkg_sign to ObsoleteFiles.inc.

16 years agoMFC bridgestp.c r1.40, bridgestp.h r1.15
thompsa [Tue, 8 Apr 2008 06:55:09 +0000 (06:55 +0000)]
MFC bridgestp.c r1.40, bridgestp.h r1.15

 Fix spelling, retaining old define.

16 years agoFix MFC, the contents were duplicated.
thompsa [Tue, 8 Apr 2008 06:33:47 +0000 (06:33 +0000)]
Fix MFC, the contents were duplicated.

16 years agoMFC aac.c 1.137:
emaste [Mon, 7 Apr 2008 14:19:57 +0000 (14:19 +0000)]
MFC aac.c 1.137:
  Calling RequestSupplementAdapterInfo before RequestAdapterInfo appears
  to trip a bug causing the latter to return a zeroed struct
  aac_adapter_info.  This causes two issues.  One is cosmetic only --
  a verbose boot prints information about the controller, and shows all
  zero:

  aac0: Unknown processor 0MHz, 0MB memory (0MB cache, 0MB execution),
    unknown battery platform

  The second problem is that the firmware version information is stored
  away for aac_rev_check, for userland tools (like aaccli) to query via
  the FSACTL_MINIPORT_REV_CHECK and FSACTL_LNX_MINIPORT_REV_CHECK ioctls.
  When aaccli encounters this issue it prints

  Command Error: <The current AFAAPI.DLL is too old to work with the
    current controller software.>

  Move the RequestSupplementAdapterInfo call after RequestAdapterInfo,
  which seems to fix both problems.

16 years agoSynchronize pkg_install with HEAD:
flz [Mon, 7 Apr 2008 10:27:21 +0000 (10:27 +0000)]
Synchronize pkg_install with HEAD:

- Add pkg_updating,
- Remove pkg_sign,
- Support for 8-CURRENT,
- Style cleanup (__P use),
- ... and much more.

16 years agoAdd USB->RS232 devices to the GENERIC kernel.
rink [Mon, 7 Apr 2008 08:35:31 +0000 (08:35 +0000)]
Add USB->RS232 devices to the GENERIC kernel.

imp@ has already done this in HEAD, refer to revision 1.476 of
i386/conf/GENERIC and revision 1.486 of amd64/conf/GENERIC. It seems only fair
to do the same in RELENG_7.

Discussed with: imp
Approved by: re (bmah, kensmith)

16 years agoFix a stupid typo.
brooks [Sun, 6 Apr 2008 20:40:24 +0000 (20:40 +0000)]
Fix a stupid typo.

Reported by: bz

16 years agoMerge audit_private.h:1.18, audit_syscalls.c:1.24, audit_trigger.c:1.6,
rwatson [Sun, 6 Apr 2008 15:57:18 +0000 (15:57 +0000)]
Merge audit_private.h:1.18, audit_syscalls.c:1.24, audit_trigger.c:1.6,
audit_worker.c:1.21 from HEAD to RELENG_7:

  Rename globally exposed symbol send_trigger() to audit_send_trigger().

16 years agoMerge audit_trigger.c:1.7 from HEAD to RELENG_7:
rwatson [Sun, 6 Apr 2008 15:01:41 +0000 (15:01 +0000)]
Merge audit_trigger.c:1.7 from HEAD to RELENG_7:

  Rather than copying out the full audit trigger record, which includes
  a queue entry field, just copy out the unsigned int that is the trigger
  message.  In practice, auditd always requested sizeof(unsigned int), so
  the extra bytes were ignored, but copying them out was not the intent.

16 years agoMerge audit_worker.c:1.20 from HEAD to RELENG_7:
rwatson [Sun, 6 Apr 2008 14:03:57 +0000 (14:03 +0000)]
Merge audit_worker.c:1.20 from HEAD to RELENG_7:

  Replace somewhat awkward audit trail rotation scheme, which involved the
  global audit mutex and condition variables, with an sx lock which protects
  the trail vnode and credential while in use, and is acquired by the system
  call code when rotating the trail.  Previously, a "message" would be sent
  to the kernel audit worker, which did the rotation, but the new code is
  simpler and (hopefully) less error-prone.

  Obtained from:  TrustedBSD Project

16 years agoMFC
kib [Sun, 6 Apr 2008 10:02:20 +0000 (10:02 +0000)]
MFC
rev. 1.277 of sys/kern/vfs_mount.c
rev. 1.332 of sys/sys/vnode.h
rev. 1.222 of sys/ufs/ffs/ffs_softdep.c

Yield the cpu in the kernel while iterating the list of the
vnodes belonging to the mountpoint. Also, yield when in the
softdep_process_worklist() even when we are not going to sleep due to
buffer drain.

16 years agoMFC: textdumps, ULE default scheduler, cmx(4), uslcom(4), aac(4) >2TB
bmah [Sun, 6 Apr 2008 05:19:21 +0000 (05:19 +0000)]
MFC:  textdumps, ULE default scheduler, cmx(4), uslcom(4), aac(4) >2TB
volume support, adduser(8) -M, ypserv(8) -P.

16 years agoMFC rev. 1.211:
kib [Sat, 5 Apr 2008 04:18:29 +0000 (04:18 +0000)]
MFC rev. 1.211:
Add two missed chunks from the rev. 1.210, for the giant_read() and
giant_ioctl().

16 years agoMFC revision 1.4: Add /boot/devices.hints to the default list of files
cperciva [Fri, 4 Apr 2008 23:25:08 +0000 (23:25 +0000)]
MFC revision 1.4: Add /boot/devices.hints to the default list of files
which have local modifications merged during upgrading.

16 years agoMFC revisions 1.13, 1.14: Don't try to compute the SHA256 hashes of
cperciva [Fri, 4 Apr 2008 23:22:49 +0000 (23:22 +0000)]
MFC revisions 1.13, 1.14: Don't try to compute the SHA256 hashes of
files which don't exist; and fix the handling of symlinks to
dynamically linked libraries.

16 years agoMFC: ipfw2.c 1.114 ipfw.8 1.209
julian [Fri, 4 Apr 2008 18:08:51 +0000 (18:08 +0000)]
MFC: ipfw2.c 1.114     ipfw.8 1.209

Use an explicit argument to display table args a IP addresses.

16 years agoMerge rev 1.20:
scottl [Fri, 4 Apr 2008 16:32:05 +0000 (16:32 +0000)]
Merge rev 1.20:
  Fix a buffer overflow in the processing of various SCSI commands.  This
  likely fixes a great number of weird problems that have been reported
  with this driver.

16 years agoMFC 1.49-1.50:
rodrigc [Fri, 4 Apr 2008 02:20:15 +0000 (02:20 +0000)]
MFC 1.49-1.50:
 - do not upgrade a read-only mount to read-write when we fsck it

PR: 120319

16 years agoMFC: WOL infrastructure support
sam [Thu, 3 Apr 2008 23:43:25 +0000 (23:43 +0000)]
MFC: WOL infrastructure support

16 years agoMFC:
brooks [Thu, 3 Apr 2008 21:36:11 +0000 (21:36 +0000)]
MFC:

Use the new command file feature of ddb(8) to support setting ddb(4)
scripts at boot.  This is currently disabled by default. /etc/ddb.conf
contains some potentially reasonable default scripts.

PR: conf/119995
Submitted by: Scot Hetzel <swhetzel at gmail dot com> (Earlier version)

16 years agoNFC the ability to read a file of commands to ddb(8) modeled after the
brooks [Thu, 3 Apr 2008 21:33:15 +0000 (21:33 +0000)]
NFC the ability to read a file of commands to ddb(8) modeled after the
feature in ipfw(8).

16 years agoMFC: Make it possible to continue working after calling doadump() manually.
jhb [Thu, 3 Apr 2008 19:40:58 +0000 (19:40 +0000)]
MFC: Make it possible to continue working after calling doadump() manually.

16 years agoMFC: Fix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo'
jhb [Thu, 3 Apr 2008 18:51:13 +0000 (18:51 +0000)]
MFC: Fix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo'
so that filesystems will consider 'nonofoo' a valid option.

16 years agoMFC: Initialize list of kld's correctly when there are no kld's and catch
jhb [Thu, 3 Apr 2008 18:47:05 +0000 (18:47 +0000)]
MFC: Initialize list of kld's correctly when there are no kld's and catch
errors in kgdb_parse() so it returns 0 for invalid expressions.  This
fixes the kld loading for 6.x and 7.x.

16 years agoMFC: rev. 1.6
brueffer [Wed, 2 Apr 2008 16:53:04 +0000 (16:53 +0000)]
MFC: rev. 1.6

ARC-1680 is supported.

16 years agoMFC 1.113: Add IFF_NEEDSGIANT to IFF_CANTCHANGE to prevent userland
iedowse [Tue, 1 Apr 2008 23:40:33 +0000 (23:40 +0000)]
MFC 1.113: Add IFF_NEEDSGIANT to IFF_CANTCHANGE to prevent userland
code from clearing IFF_NEEDSGIANT.

16 years agoMFC rev 1.212 ata-chipset.c
remko [Tue, 1 Apr 2008 15:20:49 +0000 (15:20 +0000)]
MFC rev 1.212 ata-chipset.c
MFC rev 1.83 ata-pci.h

  Add proper support for the SATA/AHCI part of IXP[67]00

Approved by: imp (mentor, implicit), sos

16 years agoMFC r1.85
thompsa [Tue, 1 Apr 2008 15:05:10 +0000 (15:05 +0000)]
MFC r1.85

 Add IFT_BRIDGE to the Ethernet section so l2 addresses are formatted correctly

16 years agoMFC rev. 1.6-1.7
mav [Tue, 1 Apr 2008 13:58:10 +0000 (13:58 +0000)]
MFC rev. 1.6-1.7
- Switch from timeval to bintime, to use 1/(2^20) of seconds instead of
microseconds. It allows to use bit shifts instead of some heavy 64bit
mul/div math operations.
- Account all node stats at the shape mode.
- Do not check destination hook presence, it will be done by netgraph.
- Use u_int instead of int in some places to simplify type conversions.
- Use NG_SEND_DATA_ONLY() macro instead of selfmade equivalent.

16 years agoMerge ddb.4:1.48 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:50:04 +0000 (11:50 +0000)]
Merge ddb.4:1.48 from HEAD to RELENG_7:

  Update ddb.4 to reflect addition of /S (symbol name) printing mode for
  examine.

  PR:             57976

16 years agoMerge db_examine.c:1.35 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:48:25 +0000 (11:48 +0000)]
Merge db_examine.c:1.35 from HEAD to RELENG_7:

  Add a /S mode to DDB "ex" command, which interprets and prints the
  value at the requested address as a symbol.  For example, "ex /S
  aio_swake" prints the name of the function currently registered in
  via aio_swake hook.

  The change as committed differs slightly from the patch in the PR,
  as I force the size of the retrieved value (and the automatic
  address increment) to be sizeof(void *).  This seems to provide
  the most useful auto-increment behavior, and defaults using the
  default size (4), which is not sizeof(void *) on 64-bit platforms.

  PR:             57976
  Submitted by:   Dan Strick <strick at covad.net>

16 years agoMerge db_textdump.c:1.3 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:39:04 +0000 (11:39 +0000)]
Merge db_textdump.c:1.3 from HEAD to RELENG_7:

  Use dump_write() instead of direct calls to di->dumper() in textdumps.
  Textdumps already do pretty much the same sanity checking, but
  abstractions and seatbelts are both useful.

16 years agoMerge db_capture.c:1.5 from HEAD to RELENG_7:
rwatson [Tue, 1 Apr 2008 11:31:18 +0000 (11:31 +0000)]
Merge db_capture.c:1.5 from HEAD to RELENG_7:

  Increase maximum DDB capture buffer size to 5MB.

  PR:             119993
  Suggested by:   Scot Hetzel <swhetzel at gmail dot com>

16 years agoMerge options:1.616, db_capture.c:1.4 from HEAD to RELNEG_7:
rwatson [Tue, 1 Apr 2008 11:23:32 +0000 (11:23 +0000)]
Merge options:1.616, db_capture.c:1.4 from HEAD to RELNEG_7:

  Allow DDB_CAPTURE_DEFAULTBUFSIZE and DDB_CAPTURE_MAXBUFSIZE to be
  overridden at compile-time using kernel options of the same names.

  Rather than doing a compile-time CTASSERT of buffer sizes being
  even multiples of block sizes, just adjust them at boottime, as
  the failure mode is more user-friendly.

  MFC after:      2 months
  PR:             119993
  Suggested by:   Scot Hetzel <swhetzel at gmail dot com>

16 years agoMFC:
rink [Tue, 1 Apr 2008 08:05:30 +0000 (08:05 +0000)]
MFC:
  Some PS/2 mice (at least the A4Tech X-7xx) need to be set to Intelli mode
  first before they can be set to Explorer mode.

  PR:             kern/118578
  Submitted by:   Andriy Gapon <avg@icyb.net.ua> (I added some comments)
  Reviewed by:    philip

16 years agoAdd cmx.4 file forgotten in previous cmx(4) MFC.
rink [Tue, 1 Apr 2008 07:59:39 +0000 (07:59 +0000)]
Add cmx.4 file forgotten in previous cmx(4) MFC.

Noticed by: brueffer

16 years agoMFC:
rink [Tue, 1 Apr 2008 07:57:48 +0000 (07:57 +0000)]
MFC:
  Import uslcom(4) from OpenBSD - this is a driver for Silicon Laboratories
  CP2101/CP2102 based USB serial adapters.

  Reviewed by:            imp, emaste
  Obtained from:          OpenBSD

16 years agoMFC:
rink [Tue, 1 Apr 2008 07:36:30 +0000 (07:36 +0000)]
MFC:
  Commit cmx(4), a driver for Omnikey CardMan 4040 PCMCIA smartcard readers.

  PR:             kern/114582
  Submitted by:   Daniel Roethlisberger <daniel@roe.ch>
  Reviewed by:    imp, myself
  Tested by:      johans, myself

16 years agoThis commit was manufactured by cvs2svn to create branch 'RELENG_7'.
cvs2svn [Tue, 1 Apr 2008 01:48:09 +0000 (01:48 +0000)]
This commit was manufactured by cvs2svn to create branch 'RELENG_7'.

16 years agoMerge db_capture.c:1.3 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:09:00 +0000 (22:09 +0000)]
Merge db_capture.c:1.3 from HEAD to RELENG_7:

  Rename DB_ constants in db_capture.c to DDB_ so that when they are
  exposed as kernel compile options, they have more meaningful names.

  PR:             119993
  MFC after:      2 months
  Suggested by:   Scot Hetzel <swhetzel at gmail dot com>

16 years agoMerge db_textdump.c:1.2 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:05:09 +0000 (22:05 +0000)]
Merge db_textdump.c:1.2 from HEAD to RELENG_7:

  Refine textdump comments slightly.

16 years agoMerge ddb.8:1.2 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:04:27 +0000 (22:04 +0000)]
Merge ddb.8:1.2 from HEAD to RELENG_7:

  Minor formatting tweaks.

  Point at ddb(4) and textdump(4) man pages for more script examples.

16 years agoMerge savecore.8:1.26, savecore.c:1.79 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:03:54 +0000 (22:03 +0000)]
Merge savecore.8:1.26, savecore.c:1.79 from HEAD to RELENG_7:

  Teach savecore(8) how to extract textdump(4) dumps.

  Update savecore(8) man page to reflect textdump additions.

Merge savecore.c:1.80 from HEAD to RELENG_7:

  Compare kernel dump header magic with textdump magic using strncmp()
  rather than the memcmp() which is used for regular dumps: the
  textdump string is one character shorter, so we need to stop
  comparing at the end of the string.

  Use independent version checking logic for architecture-specific
  version number vs. textdump version number, as the version sequences
  may (someday) differ.

  Run into by:    rrs

16 years agoMerge ddb.4:1.47, textdump.4:1.2 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:02:28 +0000 (22:02 +0000)]
Merge ddb.4:1.47, textdump.4:1.2 from HEAD to RELENG_7:

  Minor formatting tweaks; recommend "call doadump; reset" over "panic"
  from a script as the DDB panic command is unreliable.

16 years agoMerge Makefile:1.401, ddb.4:1.46, textdump.4:1.1 from HEAD to RELENG_7:
rwatson [Mon, 31 Mar 2008 22:00:27 +0000 (22:00 +0000)]
Merge Makefile:1.401, ddb.4:1.46, textdump.4:1.1 from HEAD to RELENG_7:

  Add textdump(4) man page to describe the textdump facility and provide
  some stock formulas for use.

  Update ddb(4) to reference the textdump(4) page, list the textdump
  commands, and suggest using them with scripts and output capture.
  Update HISTORY section.

  Hook up textdump(4) to build.

16 years agoMerge files:1.1260, db_capture.c:1.2, db_command.c:1.76,
rwatson [Mon, 31 Mar 2008 21:57:24 +0000 (21:57 +0000)]
Merge files:1.1260, db_capture.c:1.2, db_command.c:1.76,
db_textdump.c:1.1, ddb.h:1.46, kern_shutdown.c:1.187 from HEAD to
RELENG_7:

  Add textdump(4) facility, which provides an alternative form of kernel
  dump using mechanically generated/extracted debugging output rather than
  a simple memory dump.  Current sources of debugging output are:

  - DDB output capture buffer, if there is captured output to save
  - Kernel message buffer
  - Kernel configuration, if included in kernel
  - Kernel version string
  - Panic message

  Textdumps are stored in swap/dump partitions as with regular dumps, but
  are laid out as ustar files in order to allow multiple parts to be stored
  as a stream of sequentially written blocks.  Blocks are written out in
  reverse order, as the size of a textdump isn't known a priori.  As with
  regular dumps, they will be extracted using savecore(8).

  One new DDB(4) command is added, "textdump", which accepts "set",
  "unset", and "status" arguments.  By default, normal kernel dumps are
  generated unless "textdump set" is run in order to schedule a textdump.
  It can be canceled using "textdump unset" to restore generation of a
  normal kernel dump.

  Several sysctls exist to configure aspects of textdumps;
  debug.ddb.textdump.pending can be set to check whether a textdump is
  pending, or set/unset in order to control whether the next kernel dump
  will be a textdump from userspace.

  While textdumps don't have to be generated as a result of a DDB script
  run automatically as part of a kernel panic, this is a particular useful
  way to use them, as instead of generating a complete memory dump, a
  simple transcript of an automated DDB session can be captured using the
  DDB output capture and textdump facilities.  This can be used to
  generate quite brief kernel bug reports rich in debugging information
  but not dependent on kernel symbol tables or precisely synchronized
  source code.  Most textdumps I generate are less than 100k including
  the full message buffer.  Using textdumps with an interactive debugging
  session is also useful, with capture being enabled/disabled in order to
  record some but not all of the DDB session.

16 years agoMFC >2TB support
emaste [Mon, 31 Mar 2008 19:21:49 +0000 (19:21 +0000)]
MFC >2TB support

 aac.c 1.134, aac_disk.c 1.45, aacreg.h 1.25, aacvar.h 1.51:
  Add 64-bit array support for RAIDs > 2TB.  This corresponds to ~ Adaptec
  driver build 15317.

  Tested on:
  Adaptec 2230S, Firmware 4.2-0 (8205)
  ICP ICP5085BL, Firmware 5.2-0 (12814)

 aac.c 1.136, aac_ioctl.h 1.13:
  Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls.  RAID
  tools (e.g. arcconf) need this to be able to create arrays larger than 2TB.

  Submitted by: Adaptec, via driver build 15317

The RELENG_7 and HEAD drivers are in sync as of this commit.

16 years agoMFC - diff reduction w/ HEAD
emaste [Mon, 31 Mar 2008 14:32:06 +0000 (14:32 +0000)]
MFC - diff reduction w/ HEAD

 aac.c 1.131:
  Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling):

  - Resource allocation in aac_alloc (moved from from aac_init)
  - Interrupt setup in aac_setup_intr (from aac_attach)
  - Container probing in aac_get_container_info (from aac_startup and
    aac_handle_aif)
  - Firmware status check moved to aac_check_firmware from aac_init

 aac.c 1.132, aac_cam.c 1.31, aad_debug.c 1.24, aac_disk.c 1.44,
 aac_pci.c 1.67, aacvar.h 1.50:
  Diff reduction to Adaptec's driver (around build 15317): catch up with a
  change in debugging routines.

  The fwprintf macro in the AAC_DEBUG case (mapping to printf) isn't from the
  Adaptec driver.

 aac.c 1.135:
  Add \n to the end of a printf string and remove it from panic strings.

16 years agoMFC: 1.44: Fix splitting into words of the .for expression to
ru [Mon, 31 Mar 2008 10:06:12 +0000 (10:06 +0000)]
MFC: 1.44: Fix splitting into words of the .for expression to
allow for spaces in values.

16 years agoMFC rev. 1.10 of cryptotest.c and rev. 1.3 of cryptostats.c
matteo [Mon, 31 Mar 2008 06:49:03 +0000 (06:49 +0000)]
MFC rev. 1.10 of cryptotest.c and rev. 1.3 of cryptostats.c

Add missing includes and correct argument to sysctlbyname

PR: misc/120274

16 years agoMFC: ddb(4) output capture, ddb(4) scripting, BTX real mode, gptboot,
bmah [Mon, 31 Mar 2008 05:12:35 +0000 (05:12 +0000)]
MFC:  ddb(4) output capture, ddb(4) scripting, BTX real mode, gptboot,
wpi(4) fixes, hptrr(4) 1.2 update, chflags(1) -v, realpath(1) -q,
tzdata2008b, GNOME 2.22.

16 years agoMFC rev. 1.6
matteo [Sun, 30 Mar 2008 19:57:23 +0000 (19:57 +0000)]
MFC rev. 1.6
Fix incorrect handling of malloc failures

PR: bin/83369

16 years agoMFC rev. 1.97-1.98
matteo [Sun, 30 Mar 2008 19:42:34 +0000 (19:42 +0000)]
MFC rev. 1.97-1.98

Fix printing of unionfs mounts when using the -p option
Fix mount -p and mount -u -ocurrent on gjournaled FS

PR: bin/75585, bin/120162

16 years agoAdd -P <port> option to allow binding to a specific port.
matteo [Sun, 30 Mar 2008 19:39:29 +0000 (19:39 +0000)]
Add -P <port> option to allow binding to a specific port.

PR: bin/109494
Submitted by: mtm

16 years agoMerge bpf_filter.c:1.30 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:55:18 +0000 (17:55 +0000)]
Merge bpf_filter.c:1.30 from HEAD to RELENG_7:

  Improve convergence of bpf_filter.c toward style(9).

  Submitted by:   csjp

16 years agoMerge kerneldump.h:1.10 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:20:40 +0000 (17:20 +0000)]
Merge kerneldump.h:1.10 from HEAD to RELENG_7:

  Define a new kernel dump "architecture", TEXTDUMPMAGIC, which is used
  to identify textdumps in the swap/dump partition.  While textdumps
  aren't really an architecture, they are architecture-neutral and so
  don't really correspond to any existing architecture.

  Define a version number for textdumps, KERNELDUMP_TEXT_VERSION, of 1.

16 years agoMerge kerneldump.h:1.9 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:20:04 +0000 (17:20 +0000)]
Merge kerneldump.h:1.9 from HEAD to RELENG_7:

  Minor style consistency improvements.

16 years agoMerge ddb.4:1.45 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:10:35 +0000 (17:10 +0000)]
Merge ddb.4:1.45 from HEAD to RELENG_7:

  Add SCRIPTING section to describe new DDB scripting facilities.

  Update copyright.

16 years agoMerge ddb.4:1.44 from HEAD to RELENG_7:
rwatson [Sun, 30 Mar 2008 17:09:34 +0000 (17:09 +0000)]
Merge ddb.4:1.44 from HEAD to RELENG_7:

  Add description of 'debug.ddb.capture.data' sysctl to DBD output
  capture section, missed in previous commit.

16 years agoMerge Makefile:1.169, ddb/Makefile:1.1, ddb.8:1.1, ddb.c:1.1,
rwatson [Sun, 30 Mar 2008 17:07:10 +0000 (17:07 +0000)]
Merge Makefile:1.169, ddb/Makefile:1.1, ddb.8:1.1, ddb.c:1.1,
ddb.h:1.1, ddb_script.c:1.1 from HEAD to RELENG_7:

  Add command-line tool ddb(8), which allows DDB(4) scripts to be
  managed from userspace.  It is largely a wrapper for sysctl()
  calls, but because the sysctls for adding and removing scripts
  are awkward to use directly, this provides an easier-to-use
  interface.

16 years agoMerge files:1.1259, db_command.c:1.75, db_command.h:1.14, db_lex.c:1.23,
rwatson [Sun, 30 Mar 2008 17:03:58 +0000 (17:03 +0000)]
Merge files:1.1259, db_command.c:1.75, db_command.h:1.14, db_lex.c:1.23,
db_lex.h:1.15, db_main.c:1.7, db_script.c:1.1-1.2, ddb.h:1.45 from HEAD
to RELENG_7:

  Add a simple scripting facility to DDB(4), allowing the user to
  define a set of named scripts.  Each script consists of a list of DDB
  commands separated by ";"s that will be executed verbatim.  No higher
  level language constructs, such as branching, are provided for:
  scripts are executed by sequentially injecting commands into the DDB
  input buffer.

  Four new commands are present in DDB: "run" to run a specific script,
  "script" to define or print a script, "scripts" to list currently
  defined scripts, and "unscript" to delete a script, modeled on shell
  alias commands.  Scripts may also be manipulated using sysctls in the
  debug.ddb.scripting MIB space, although users will prefer to use the
  soon-to-be-added ddb(8) tool for usability reasons.

  Scripts with certain names are automatically executed on various DDB
  events, such as entering the debugger via a panic, a witness error,
  watchdog, breakpoint, sysctl, serial break, etc, allowing customized
  handling.

  Remove duplicate $FreeBSD$ that snuck in.

16 years agoMFC: nfs_srvsock.c rev. 1.106, 1.107
dfr [Sun, 30 Mar 2008 14:06:43 +0000 (14:06 +0000)]
MFC: nfs_srvsock.c rev. 1.106, 1.107
Don't call nfs_realign while holding locks.

16 years agoMFC to RELENG_7:
antoine [Sun, 30 Mar 2008 13:56:13 +0000 (13:56 +0000)]
MFC to RELENG_7:
  Add files to remove when MK_GCOV, MK_IPX or MK_NCP are defined.

  PR:             120492
  PR:             121118
  PR:             121121
  Submitted by:   KAMIYA Satosi, Richard Tector
  Approved by:    rwatson (mentor)
  MFC after:      1 month

16 years agoBump __FreeBSD_version in RELENG_7 to 700102 to reflect the
rwatson [Sun, 30 Mar 2008 09:20:13 +0000 (09:20 +0000)]
Bump __FreeBSD_version in RELENG_7 to 700102 to reflect the
addition of kdb_enter_why().

16 years agoMerge amd64/machdep.c:1.680, amd64/mp_watchdog.c:1.6,
rwatson [Sun, 30 Mar 2008 09:19:09 +0000 (09:19 +0000)]
Merge amd64/machdep.c:1.680, amd64/mp_watchdog.c:1.6,
uart_dev_at91usart.c:1.13, scsi_low.h:1.9, subr_ntoskrnl.c:1.94,
OsdDebug.c:1.14, dcons_os.c:1.20, ofw_consle.c:1.37,
dev/sio.c:1.473, syscons.c:1.454, uart_core.c:1.23,
union_subr.c:1.96, i386/machdep.c:1.664, i386/mp_watchdog.c:1.6,
ia64/machdep.c:1.228, kern_clock.c:1.206, kern_shutdown.c:1.186,
subr_kdb.c:1.25, subr_witness.c:1.239, vfs_subr.c:1.711,
ng_base.c:1.140, cbus/sio.c:1.247, pc98/machdep.c:1.399,
aim/machdep.c:1.107, pswitch.c:1.7, mac_test.c:19.3,
psycho.c:1.73, sparc64/machdep.c:1.140, sparc64/trap.c:1.89,
hvcons.c:1.7, sun4v/machdep.c:1.17, sun4v/trap.c:1.17, kdb.h:1.6
from HEAD to RELENG_7:

  Add a new 'why' argument to kdb_enter(), and a set of constants to use
  for that argument.  This will allow DDB to detect the broad category of
  reason why the debugger has been entered, which it can use for the
  purposes of deciding which DDB script to run.

  Assign approximate why values to all current consumers of the
  kdb_enter() interface.

For ABI/KPI reasons, the MFC creates a new function, kdb_enter_why(),
with the new argument, updating existing consumers to use that,
preserving kdb_enter() with the current argument, and wrapping it around
kdb_enter_why().

16 years agoMFC ng_pptpgre.c rev. 1.41-1.42
mav [Sun, 30 Mar 2008 08:01:48 +0000 (08:01 +0000)]
MFC ng_pptpgre.c rev. 1.41-1.42
Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair
of pptpgre and ksocket nodes for all calls between two peers. This patch
modifies node's API by adding new "session_%04x" hook names support, while
keeping backward compatibility.

16 years agoMFC
kib [Sun, 30 Mar 2008 05:39:24 +0000 (05:39 +0000)]
MFC
rev. 1.607 of sys/amd64/amd64/pmap.c
rev. 1.609 of sys/i386/i386/pmap.c

Prevent the overflow in the calculation of the next page directory.

16 years agoUn-break the build by adding a thread argument. This was removed in
csjp [Sun, 30 Mar 2008 02:19:27 +0000 (02:19 +0000)]
Un-break the build by adding a thread argument.  This was removed in
-CURRENT but this change has not been MFCed yet.

Submitted by: attilo

16 years agoMFC rev. 1.45:
attilio [Sat, 29 Mar 2008 23:15:04 +0000 (23:15 +0000)]
MFC rev. 1.45:
Fix a lock leak in the NTFS locking scheme.

16 years agoMFC rev. 1.21:
attilio [Sat, 29 Mar 2008 23:00:29 +0000 (23:00 +0000)]
MFC rev. 1.21:
Drop Giant lock before to destroy the kthread.

16 years agoMFC
jb [Sat, 29 Mar 2008 22:53:54 +0000 (22:53 +0000)]
MFC

stdio.h: 1.61
Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX
in sys/syslimits.h).

awk/Makefile: 1.17
Allow awk to handle 64 files instead of just 20.

16 years agoMFC: rev. 1.32 key.c
bz [Sat, 29 Mar 2008 20:51:09 +0000 (20:51 +0000)]
MFC: rev. 1.32 key.c

  Fix a bug that when getting/dumping the soft lifetime we reported
  the hard lifetime instead.

16 years agoMFC: rev. 1.31 key.c
bz [Sat, 29 Mar 2008 20:48:47 +0000 (20:48 +0000)]
MFC: rev. 1.31 key.c

  Import change from KAME, rev. 1.362 kame/kame/sys/netkey/key.c

  In case of "new SA", we must check the hard lifetime of the old SA
  to find out if it is not permanent and we can delete it.

16 years agoMFC rev 1.134 ObsoleteFiles.inc
remko [Sat, 29 Mar 2008 13:53:07 +0000 (13:53 +0000)]
MFC rev 1.134 ObsoleteFiles.inc

  Document the removal data for usbdevs.h and usbdevs_data.h,
  sort the entry into it's correct place (behind 200407XX before
  200406XX because we have an explicit date here).

  PR:             misc/122098
  Submitted by:   "John Hein" <jhein@timing.com>
  MFC after:      3 days

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.84 route.c
remko [Sat, 29 Mar 2008 13:44:36 +0000 (13:44 +0000)]
MFC rev 1.84 route.c

  In route.c in newroute() there's a call to exit(0) if the command was
  'get'. Since rtmsg() always gets called and returns 0 on success and -1
  on failure, it's possible to exit with a suitable exit code by calling
  exit(ret != 0) instead, as is done at the end of newroute().

  PR: bin/112303
  Submitted by: bruce@cran.org.uk
  MFC after: 1 week

Approved by: imp (mentor, implicit)

16 years agoMFC rev 1.2 410.logincheck
remko [Fri, 28 Mar 2008 20:59:45 +0000 (20:59 +0000)]
MFC rev 1.2 410.logincheck

  Add a missing ;.

  PR:             misc/122069
  Submitted by:   taku@tekipaki.jp
  MFC after:      3 days
  Approved by:    imp (mentor, implicit trivial change).

Approved by: imp (mentor, implicit)

16 years agoMFC aac.c r1.133:
emaste [Fri, 28 Mar 2008 18:13:38 +0000 (18:13 +0000)]
MFC aac.c r1.133:
  Correct data direction flags in aac_bio_command() in the
  !AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case.

  Submitted by:   Adaptec

16 years agoMFC rev. 1.12 of sys/compat/linux/linux_futex.c
rdivacky [Fri, 28 Mar 2008 10:13:20 +0000 (10:13 +0000)]
MFC rev. 1.12 of sys/compat/linux/linux_futex.c
MFC rev. 1.3 of sys/compat/linux/linux_futex.h:

o Add stub support for some new futex operations,
so the annoying message is not printed.

o Don't warn about FUTEX_FD not being implemented
and return ENOSYS instead of 0 (eg. success).

o Clear FUTEX_PRIVATE_FLAG as we actually implement
only private futexes so there is no reason to
return ENOSYS when app asks for a private futex.
We don't reject shared futexes because they worked
just fine with our implementation so far.

Approved by: kib (mentor)
Tested by: bsam

16 years agoMFC
emaste [Thu, 27 Mar 2008 17:11:38 +0000 (17:11 +0000)]
MFC
 aac.c r1.129 aac_ioctl.h r1.12:

  Add ioctls FSACTL_SEND_LARGE_FIB, FSACTL_SEND_RAW_SRB,
  FSACTL_LNX_SEND_LARGE_FIB, and FSACTL_LNX_SEND_RAW_SRB, and correct size
  checks on FIBs passed in from userspace.  Both changes were obtained from
  Adaptec's driver build 15317.  Adaptec's commandline RAID tool arcconf uses
  these ioctls when creating a RAID-10 array (and probably other operations
  too).

 aac.c r1.130:

  Restore creation of passthrough devices with newer controller firmware by
  putting the correct size in the fib header.  Presumably the older firmware
  silently ignored a bad size field.

  (This change tested with a 3805 controller.  Passthrough devices were
  created when running firmware build 12814, but not 15323 or later.  With
  this change they're created for both old and new firmware versions.)

  Submitted by:   Adaptec

16 years agoMFC:
cokane [Thu, 27 Mar 2008 15:54:45 +0000 (15:54 +0000)]
MFC:

MFC of rev 1.40 to properly add the module dependency on mem, so that it will
be loaded on-demand with this module.

Approved by: imp