]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoo Convert whitespaces to tabs.
maxim [Mon, 5 May 2008 15:52:54 +0000 (15:52 +0000)]
o Convert whitespaces to tabs.

16 years agoo Terminate "case" with "esac" not "fi".
maxim [Mon, 5 May 2008 15:50:20 +0000 (15:50 +0000)]
o Terminate "case" with "esac" not "fi".

Reported by: Randy Bush

16 years agoDo not read away the target directory entry when encountering deleted
kib [Mon, 5 May 2008 14:05:23 +0000 (14:05 +0000)]
Do not read away the target directory entry when encountering deleted
files after a seekdir().

The seekdir shall set the position for the next readdir operation.
When the _readdir_unlocked() encounters deleted entry, dd_loc is
already advanced. Continuing the loop leads to premature read of
the target entry.

Submitted by: Marc Balmer <mbalmer at openbsd org>
Obtained from: OpenBSD
MFC after: 2 weeks

16 years agoSpell KDB_REQ_REBOOT correctly.
peter [Mon, 5 May 2008 08:25:46 +0000 (08:25 +0000)]
Spell KDB_REQ_REBOOT correctly.

16 years agoFix improper use of checkyesno routine.
mtm [Mon, 5 May 2008 07:43:48 +0000 (07:43 +0000)]
Fix improper use of checkyesno routine.

Noticed by: oliver
MFC after: 1 week

16 years agoo Change the warning dialog for the 'W' command in both the label
mtm [Mon, 5 May 2008 06:31:41 +0000 (06:31 +0000)]
o Change the warning dialog for the 'W' command in both the label
  and partition editors to reflect the fact that this is a stand-alone
  application, not sysinstall(8).
o Change an instance of sade(8) refering to itself as sysinstall(8) in
  a confirmation dialog.

MFC after: 1 week

16 years agoMips ttys file. Copied from i386 version with removal of the vga
imp [Mon, 5 May 2008 05:35:47 +0000 (05:35 +0000)]
Mips ttys file.  Copied from i386 version with removal of the vga
entries.

16 years agoMFSVN:
kmacy [Mon, 5 May 2008 01:41:53 +0000 (01:41 +0000)]
MFSVN:
 - add / remove clients from cxgb_main.c now
 - change ifdef TOE_ENABLED to TCP_OFFLOAD_DISABLE
 - update copyrights
 - fix transmit data mismatch bug caused by not setting SB_NOCOALESCE
   on tx sockbuf on passive connections
 - fix receive sequence mismatch bug caused by not setting SB_NOCOALESCE
   on rx sockbuf on passive connections
 - don't sleep without checking SBS_CANTRCVMORE first
 - various ddp ordering fixes

Supported by: Chelsio Inc.

16 years agoExpand kdb_alt_break a little, most commonly used with the option
peter [Sun, 4 May 2008 23:29:38 +0000 (23:29 +0000)]
Expand kdb_alt_break a little, most commonly used with the option
ALT_BREAK_TO_DEBUGGER.  In addition to "Enter ~ ctrl-B" (to enter the
debugger), there is now "Enter ~ ctrl-P" (force panic) and
"Enter ~ ctrl-R" (request clean reboot, ala ctrl-alt-del on syscons).

We've used variations of this at work.  The force panic sequence is
best used with KDB_UNATTENDED for when you just want it to dump and
get on with it.

The reboot request is a safer way of getting into single user than
a power cycle.  eg: you've hosed the ability to log in (pam, rtld, etc).
It gives init the reboot signal, which causes an orderly reboot.

I've taken my best guess at what the !x86 and non-sio code changes
should be.

This also makes sio release its spinlock before calling KDB/DDB.

16 years ago Add MIPS support to libdisk
gonzo [Sun, 4 May 2008 22:24:40 +0000 (22:24 +0000)]
  Add MIPS support to libdisk

  Approved by: cognet (mentor)

16 years agoRestore SUBDIR+= accidentally removed in the previous revision.
marius [Sun, 4 May 2008 16:02:45 +0000 (16:02 +0000)]
Restore SUBDIR+= accidentally removed in the previous revision.

Pointed out by: ariff

16 years agoDon't build unused SBus front-ends for sun4v, don't build EBus front-ends
marius [Sun, 4 May 2008 14:59:25 +0000 (14:59 +0000)]
Don't build unused SBus front-ends for sun4v, don't build EBus front-ends
which are also likely to be irrelevant for sun4v (there's no SBus on sun4v
and only some EBus devices). While at it fix some style bugs according to
style.Makefile(5) where appropriate.

MFC after: 3 days

16 years agosync_vnode() has some messy code about locking in order to deal with
attilio [Sun, 4 May 2008 13:54:55 +0000 (13:54 +0000)]
sync_vnode() has some messy code about locking in order to deal with
mount fs needing Giant to be held when processing bufobjs.
Use a different subqueue for pending workitems on filesystems requiring
Giant. This simplifies the code notably and also reduces the number of
Giant acquisitions (and the whole processing cost).

Suggested by: jeff
Reviewed by: kib
Tested by: pho

16 years agoLower WARNS to avoid warning about type-punned casting.
marcel [Sun, 4 May 2008 04:13:35 +0000 (04:13 +0000)]
Lower WARNS to avoid warning about type-punned casting.

16 years agoAdd __fgetcookie(), __fgetpendout() and __fsetfileno() to the private
marcel [Sun, 4 May 2008 04:11:01 +0000 (04:11 +0000)]
Add __fgetcookie(), __fgetpendout() and __fsetfileno() to the private
name space.

16 years agoUnbreak build: gnu sort has been configured to grope inside struct
marcel [Sat, 3 May 2008 23:36:00 +0000 (23:36 +0000)]
Unbreak build: gnu sort has been configured to grope inside struct
__sFILE. It's opaque now, so add a function that returns the pending
output bytes.

Pointy hat: jhb

16 years ago- Backout 1.15, it was committed by accident
pav [Sat, 3 May 2008 23:17:37 +0000 (23:17 +0000)]
- Backout 1.15, it was committed by accident

Pointy hat to: pav

16 years ago- Restore functionality broken in previous commit; we need to be able to report
pav [Sat, 3 May 2008 22:56:50 +0000 (22:56 +0000)]
- Restore functionality broken in previous commit; we need to be able to report
  multiple installed packages with the same PKGORIGIN.

Reported by: marcus
MFC after: 1 month

16 years agoo unbreak handling of TKIP tx-only keys for splitmic chips
sam [Sat, 3 May 2008 21:55:02 +0000 (21:55 +0000)]
o unbreak handling of TKIP tx-only keys for splitmic chips
o yank compat support for hal's older than 0.9.20.3; leave a
  CTASSERT in place just in case

16 years agoadd back sysctl's to display the regdomain and country code from eeprom;
sam [Sat, 3 May 2008 21:52:05 +0000 (21:52 +0000)]
add back sysctl's to display the regdomain and country code from eeprom;
useful for debugging

16 years ago Add MIPS to the list of "no TLS" architectures.
gonzo [Sat, 3 May 2008 21:24:28 +0000 (21:24 +0000)]
  Add MIPS to the list of "no TLS" architectures.

  Approved by: cognet (mentor)

16 years ago Symbol.map is handled by cpp, so use C-style comments
gonzo [Sat, 3 May 2008 21:16:08 +0000 (21:16 +0000)]
  Symbol.map is handled by cpp, so use C-style comments

  Approved by: cognet (mentor)

16 years ago Add FLT_EVAL_METHOD and DECIMAL_DIG, required by C99 standard.
gonzo [Sat, 3 May 2008 21:04:21 +0000 (21:04 +0000)]
  Add FLT_EVAL_METHOD and DECIMAL_DIG, required by C99 standard.

  Approved by: cognet (mentor)

16 years agoUnbreak build: libftpio gropes inside struct __sFILE. Implement
marcel [Sat, 3 May 2008 20:09:44 +0000 (20:09 +0000)]
Unbreak build: libftpio gropes inside struct __sFILE. Implement
accessor functions for its benefit now thaat FILE is opaque.
I'm sure there's a better way. I leave that for people to work
on in a src tree that isn't broken.

Pointy hat: jhb

16 years agoA couple of cameras that I recently bought
imp [Sat, 3 May 2008 20:06:15 +0000 (20:06 +0000)]
A couple of cameras that I recently bought

16 years agoThese files are unused, so remove them for now. If they turn out to
imp [Sat, 3 May 2008 19:57:45 +0000 (19:57 +0000)]
These files are unused, so remove them for now.  If they turn out to
be needed later, they can be restored.

16 years agoFix a comment.
jasone [Sat, 3 May 2008 17:49:16 +0000 (17:49 +0000)]
Fix a comment.

16 years agoenable IEEE80211_AMDPU_AGE by default
sam [Sat, 3 May 2008 17:06:59 +0000 (17:06 +0000)]
enable IEEE80211_AMDPU_AGE by default

16 years agoenable IEEE80211_DEBUG and IEEE80211_AMPDU_AGE by default
sam [Sat, 3 May 2008 17:05:38 +0000 (17:05 +0000)]
enable IEEE80211_DEBUG and IEEE80211_AMPDU_AGE by default

16 years ago Bring C runtime bits for FreeBSD/mips from p4 mips2-jnpr branch.
gonzo [Sat, 3 May 2008 11:16:32 +0000 (11:16 +0000)]
  Bring C runtime bits for FreeBSD/mips from p4 mips2-jnpr branch.

  Approved by: cognet (mentor)

16 years agoReplace a couple mentions of the soon to be removed vaps_<ifn>
brooks [Sat, 3 May 2008 07:06:48 +0000 (07:06 +0000)]
Replace a couple mentions of the soon to be removed vaps_<ifn>
variable form with wlans_<ifn>.

16 years agosade(8) does not need FTP I/O.
delphij [Sat, 3 May 2008 02:42:57 +0000 (02:42 +0000)]
sade(8) does not need FTP I/O.

16 years agoRelinquish exclusive TTY access when tip(1) or cu(1) exit.
bms [Sat, 3 May 2008 02:29:02 +0000 (02:29 +0000)]
Relinquish exclusive TTY access when tip(1) or cu(1) exit.
Previously they would have left TIOCEXCL enabled, requiring
either a reboot or use of tip/cu as the root user.

Observed when running QEMU with character devices redirected to pty instances.

MFC after: 2 weeks

16 years agoFix build, together with a bit of style breakage.
marck [Fri, 2 May 2008 18:54:36 +0000 (18:54 +0000)]
Fix build, together with a bit of style breakage.

16 years agoThis file is unused, so remove it for now.
imp [Fri, 2 May 2008 18:03:00 +0000 (18:03 +0000)]
This file is unused, so remove it for now.

16 years agoRemove an header which is unused for sun4v.
marius [Fri, 2 May 2008 17:44:18 +0000 (17:44 +0000)]
Remove an header which is unused for sun4v.

MFC after: 3 days

16 years agoDon't built the unused counter-timer abstraction.
marius [Fri, 2 May 2008 17:41:52 +0000 (17:41 +0000)]
Don't built the unused counter-timer abstraction.

MFC after: 3 days

16 years agoFix type name: struct auditpipe_preselect is actually struct
rwatson [Fri, 2 May 2008 17:36:22 +0000 (17:36 +0000)]
Fix type name: struct auditpipe_preselect is actually struct
auditpipe_ioctl_preselect.

MFC after: 3 days
Submitted by: Stacey D. Son <stacey at son.org>

16 years agoRestore multi-release tradition of the driver.
jkim [Fri, 2 May 2008 17:02:35 +0000 (17:02 +0000)]
Restore multi-release tradition of the driver.

Reviewed by: mjacob

16 years agoAdd AUTHORS section[*] and fix HISTORY section.
hrs [Fri, 2 May 2008 16:23:47 +0000 (16:23 +0000)]
Add AUTHORS section[*] and fix HISTORY section.

Requested by: Dave Yost (original author)[*]
History checked by: The CSRG Archives
MFC after: 3 days

16 years agoAxe now-empty __BSD_VISIBLE block that held renameat().
jhb [Fri, 2 May 2008 15:59:22 +0000 (15:59 +0000)]
Axe now-empty __BSD_VISIBLE block that held renameat().

Reported by: kib
Pointy hat: jhb

16 years ago- Move declaration of renameat() to the existing section of BSD_VISIBLE
jhb [Fri, 2 May 2008 15:28:23 +0000 (15:28 +0000)]
- Move declaration of renameat() to the existing section of BSD_VISIBLE
  function prototypes.
- Fix a few whitespace inconsistencies in prototypes.

MFC after: 1 month

16 years agoNext round of stdio changes: Remove all inlining of stdio operations and
jhb [Fri, 2 May 2008 15:25:07 +0000 (15:25 +0000)]
Next round of stdio changes: Remove all inlining of stdio operations and
move the definition of the type backing FILE (struct __sFILE) into an
internal header.
- Remove macros to inline certain operations from stdio.h.  Applications
  will now always call the functions instead.
- Move the various foo_unlocked() functions from unlocked.c into foo.c.
  This lets some of the inlining macros (e.g. __sfeof()) move into
  foo.c.
- Update a few comments.
- struct __sFILE can now go back to using mbstate_t, pthread_t, and
  pthread_mutex_t instead of knowing about their private, backing types.

MFC after: 1 month
Reviewed by: kan

16 years agoInclude libc_private.h for the declaration of __isthreaded instead of
jhb [Fri, 2 May 2008 14:51:22 +0000 (14:51 +0000)]
Include libc_private.h for the declaration of __isthreaded instead of
relying on namespace pollution in stdio.h.

MFC after: 3 days

16 years agoRemove unused variable saved_id16.
rpaulo [Fri, 2 May 2008 10:16:41 +0000 (10:16 +0000)]
Remove unused variable saved_id16.

Pointy hat to: me
Pointed out by: jhb
MFC after: 1 week

16 years agoDocumentation updates:
kientzle [Fri, 2 May 2008 05:40:05 +0000 (05:40 +0000)]
Documentation updates:
  * --format can be used with -r or -u
  * -o is a synonym for --format=ustar when used with -c, -r, or -u
Also, fix the erroneous sanity check that suppressed --format with -r or -u.

16 years agobsdtar --version should succeed.
kientzle [Fri, 2 May 2008 05:18:47 +0000 (05:18 +0000)]
bsdtar --version should succeed.

16 years agoNew bsdtar test harness. Still rather skimpy, but a lot easier
kientzle [Fri, 2 May 2008 05:17:16 +0000 (05:17 +0000)]
New bsdtar test harness.  Still rather skimpy, but a lot easier
to run and maintain than the old scripts that used to be here.

16 years agoAllow -r with -T even if there are no files on the command line.
kientzle [Fri, 2 May 2008 05:14:58 +0000 (05:14 +0000)]
Allow -r with -T even if there are no files on the command line.

PR: bin/123246
MFC after: 3 days

16 years ago- Change how the vmcore target maps FreeBSD thread IDs to GDB ptids. We
jhb [Thu, 1 May 2008 20:36:48 +0000 (20:36 +0000)]
- Change how the vmcore target maps FreeBSD thread IDs to GDB ptids.  We
  now only use the TID and ignore the PID and use pid_to_ptid() to build a
  ptid treating the TID as a PID.  The benefit of this is that the vmcore
  target now uses the same scheme as GDB's remote targets.  As a result,
  the 'tid' command now works for remote targets (however, it only accepts
  TIDs and not addresses of 'struct thread' objects).
- Use gdb_thread_select() to do the actual thread switch for the 'tid' and
  'proc' commands.  This now gives the same UI feedback when switching
  threads as the GDB 'thread' command rather than providing no visual
  output at all.

MFC after: 1 week

16 years agofix build w/ IEEE80211_DEBUG_REFCNT enabled
sam [Thu, 1 May 2008 20:26:25 +0000 (20:26 +0000)]
fix build w/ IEEE80211_DEBUG_REFCNT enabled

16 years agoAdd a separate tree to track arena chunks that contain dirty pages.
jasone [Thu, 1 May 2008 17:25:55 +0000 (17:25 +0000)]
Add a separate tree to track arena chunks that contain dirty pages.
This substantially improves worst case allocation performance, since
O(lg n) tree search can be used instead of O(n) tree iteration.

Use rb_wrap() instead of directly calling rb_*() macros.

16 years agoAdd rb_wrap(), which creates C function wrappers for most rb_*()
jasone [Thu, 1 May 2008 17:24:37 +0000 (17:24 +0000)]
Add rb_wrap(), which creates C function wrappers for most rb_*()
macros.

Add rb_foreach_next() and rb_foreach_reverse_prev(), which make it
possible to re-synchronize tree iteration after the tree has been
modified.

Rename rb_tree_new() to rb_new().

16 years agoUse the correct bit when trying to force an interrupt through the HCC reg.
bz [Thu, 1 May 2008 13:10:03 +0000 (13:10 +0000)]
Use the correct bit when trying to force an interrupt through the HCC reg.
It's not a problem as this is a #ifdef notyet.

16 years agoo OpenBSD 4.3 added.
maxim [Thu, 1 May 2008 09:52:34 +0000 (09:52 +0000)]
o OpenBSD 4.3 added.

16 years agoDo not call ndis_setstate_80211() until we are ready to associate, the vap may
thompsa [Thu, 1 May 2008 05:11:33 +0000 (05:11 +0000)]
Do not call ndis_setstate_80211() until we are ready to associate, the vap may
not have been created yet and will panic. This requires ndis_scan() to always
set the SSID.

Reported by: Ben Kaduk

16 years agoUnify all the wifi *_ioctl routines
thompsa [Thu, 1 May 2008 04:55:00 +0000 (04:55 +0000)]
Unify all the wifi *_ioctl routines
 - Limit grabbing the lock to SIOCSIFFLAGS.
 - Move ieee80211_start_all() to SIOCSIFFLAGS.
 - Remove SIOCSIFMEDIA as it is not useful.
 - Limit ether_ioctl to only SIOCGIFADDR. SIOCSIFADDR and SIOCSIFMTU have no
   affect as there is no input/output path in the vap parent.  The vap code
   will handle the reinit of the mac address changes.
 - Split off ndis_ioctl_80211 as it was getting too different to wired devices.

This fixes a copyout while locked and a lock recursion.

Reviewed by: sam

16 years agore-enable WME by default; after a full day of testing on iwi I see no
sam [Thu, 1 May 2008 03:49:59 +0000 (03:49 +0000)]
re-enable WME by default; after a full day of testing on iwi I see no
issues and the only way we'll identify them is for people to use it

16 years agoEnable autoflush of output to always show prompts. If piping the output
scf [Wed, 30 Apr 2008 23:27:02 +0000 (23:27 +0000)]
Enable autoflush of output to always show prompts.  If piping the output
prior to this patch, the prompt would not appear due to buffering.

Approved by: flz

16 years agoAttempt to make the print types more friendly to other architectures.
julian [Wed, 30 Apr 2008 20:00:30 +0000 (20:00 +0000)]
Attempt to make the print types more friendly to other architectures.

Prodded by: Max Laier
Help from: BMS, jhb

16 years agoo add indirect array for field indices as the # stats is > 127 and doesn't
sam [Wed, 30 Apr 2008 19:47:31 +0000 (19:47 +0000)]
o add indirect array for field indices as the # stats is > 127 and doesn't
  fit in a signed char
o change default output to something more useful for sta mode
o futz w/ various field names and widths; need to do full pass over this stuff

16 years agoupdate for new events
sam [Wed, 30 Apr 2008 19:45:32 +0000 (19:45 +0000)]
update for new events

16 years agoAdd support for Microsoft Notebook Optical Mouse 3000 Model 1049.
kaiw [Wed, 30 Apr 2008 19:37:54 +0000 (19:37 +0000)]
Add support for Microsoft Notebook Optical Mouse 3000 Model 1049.

Reviewed by: imp
(RELENG-7) Tested by: Oliver Herold <oliver@akephalos.de>
PR: usb/121052
MFC after: 1 month

16 years agoremove old code to handle mcast address changes; this is all done through
sam [Wed, 30 Apr 2008 17:00:32 +0000 (17:00 +0000)]
remove old code to handle mcast address changes; this is all done through
net80211 and pushed into the driver through non-ioctl callbacks

16 years agoEmit a warning when the network_interfaces variable is not set to AUTO.
brooks [Wed, 30 Apr 2008 16:29:15 +0000 (16:29 +0000)]
Emit a warning when the network_interfaces variable is not set to AUTO.

MFC after: 3 days

16 years agodisable default enabling of WME until we resolve driver regressions
sam [Wed, 30 Apr 2008 16:05:57 +0000 (16:05 +0000)]
disable default enabling of WME until we resolve driver regressions

16 years ago Make ld use tradmips for output formats since we migrated to it.
gonzo [Wed, 30 Apr 2008 12:44:58 +0000 (12:44 +0000)]
  Make ld use tradmips for output formats since we migrated to it.

  Approved by: cognet (mentor)

16 years agoWhen receiving delegated credentials, initialise our cred's linked list.
dfr [Wed, 30 Apr 2008 11:29:22 +0000 (11:29 +0000)]
When receiving delegated credentials, initialise our cred's linked list.
Add a bit more sanity checking for GSS-API mechanisms that claim to have
delegated creds but don't actually return a cred handle.

MFC after: 2 weeks

16 years agoUse global implementation of _gss_oid_equal.
dfr [Wed, 30 Apr 2008 11:27:15 +0000 (11:27 +0000)]
Use global implementation of _gss_oid_equal.

MFC after: 2 weeks

16 years agoAllow null oids in _gss_oid_equal().
dfr [Wed, 30 Apr 2008 11:25:34 +0000 (11:25 +0000)]
Allow null oids in _gss_oid_equal().

MFC after: 2 weeks

16 years agoEliminate an unused field from the pmap.
alc [Wed, 30 Apr 2008 06:05:36 +0000 (06:05 +0000)]
Eliminate an unused field from the pmap.

16 years agoDon't panic even if bus_dmamap_load(9) was failed. Just return
yongari [Wed, 30 Apr 2008 02:49:24 +0000 (02:49 +0000)]
Don't panic even if bus_dmamap_load(9) was failed. Just return
ENOBUFS so callers can reuse previous mbuf.

Submitted by: Oleg  (agile.quad AT gmail DOT com)
MFC after: 1 week

16 years agomp_machdep.c is only conditional upon smp, not aim. If booke grows
marcel [Wed, 30 Apr 2008 00:50:50 +0000 (00:50 +0000)]
mp_machdep.c is only conditional upon smp, not aim. If booke grows
support for smp, mp_machdep.c needs to be included as well.

16 years agofix build
sam [Wed, 30 Apr 2008 00:11:08 +0000 (00:11 +0000)]
fix build

Submitted by: delphij

16 years ago o Add MIPS to the list of architectures with defined TLS_TCB_ALIGN
gonzo [Tue, 29 Apr 2008 23:15:23 +0000 (23:15 +0000)]
  o Add MIPS to the list of architectures with defined TLS_TCB_ALIGN
  o Stick with TLS Variant II for MIPS for the moment.

  Approved by: imp

16 years ago Set QUANTUM_2POW_MIN and SIZEOF_PTR_2POW parameters for MIPS
gonzo [Tue, 29 Apr 2008 22:56:05 +0000 (22:56 +0000)]
  Set QUANTUM_2POW_MIN and SIZEOF_PTR_2POW parameters for MIPS

  Approved by: imp

16 years agoDocument the kproc_kthread_add() call
julian [Tue, 29 Apr 2008 22:43:15 +0000 (22:43 +0000)]
Document the kproc_kthread_add() call
and fix a small detail of its implementation.
MFC after: 1 week

16 years agoAdd new directories, scripts and wlanwds. Introduced with vap support.
rpaulo [Tue, 29 Apr 2008 22:05:26 +0000 (22:05 +0000)]
Add new directories, scripts and wlanwds. Introduced with vap support.

16 years agoAdd missing 't'.
rpaulo [Tue, 29 Apr 2008 22:02:27 +0000 (22:02 +0000)]
Add missing 't'.

Approved by: sam

16 years agodisable HT capabilities until we sort out firmware issues
sam [Tue, 29 Apr 2008 21:43:16 +0000 (21:43 +0000)]
disable HT capabilities until we sort out firmware issues

16 years agoLock filedesc exclusively when modifying fd_[cr]dir.
rdivacky [Tue, 29 Apr 2008 21:40:11 +0000 (21:40 +0000)]
Lock filedesc exclusively when modifying fd_[cr]dir.
This is probably harmless but it's better to lock it
correctly.

Approved by: kib (mentor)

16 years agoIntel 4965 wireless driver (derived from openbsd driver of the same name)
sam [Tue, 29 Apr 2008 21:36:17 +0000 (21:36 +0000)]
Intel 4965 wireless driver (derived from openbsd driver of the same name)

16 years agoAdd an option (compiled out by default)
julian [Tue, 29 Apr 2008 21:23:21 +0000 (21:23 +0000)]
Add an option (compiled out by default)
to profile outoing packets for a number of mbuf chain
related parameters
e.g. number of mbufs, wasted space.
probably will do with further work later.

Reviewed by: various

16 years agoFix a comment typo.
rwatson [Tue, 29 Apr 2008 21:21:15 +0000 (21:21 +0000)]
Fix a comment typo.

MFC after: 3 days

16 years agoRework how kgdb manages kernel and vmcore files to be a bit more gdb-ish
jhb [Tue, 29 Apr 2008 20:32:45 +0000 (20:32 +0000)]
Rework how kgdb manages kernel and vmcore files to be a bit more gdb-ish
so that kgdb can be used more like a normal gdb:
- Load the kernel via the standard 'exec' target and allow it to be changed
  via the 'file' command.
  - Instead of explicitly loading the kernel file as the mail symbol file
    during startup, just pass it to gdb_main() as the executable file.
  - Change the kld support (via shared libraries) to cache the address of
    the linker_files and linker_kernel_file variables in addition to the
    offsets of various members in 'struct linker_file'.
  - When a new symbol file is loaded, recompute the addresses and offsets
    used by the kld support code.
  - When a new symbol file is loaded, recalculate the ofs_fix variable to
    account for the different ways a trapframe can be passed to trap
    frame handlers in i386.  This is done by adding a MD
    kgdb_trgt_new_objfile() hook that is empty on all but i386.
  - Don't use the directory name of the kernel specified on the command
    line to find kernel modules in the kld support code.  Instead,
    extract the filename of the current executable via exec_bfd.  Now
    the 'kernel' variable is private to main.c again.
  - Make the 'add-kld' command explicitly fail if no executable is loaded.
- Make the support for vmcores a real core-dump target that opens the
  kernel and vmcore on open and closes the kvm connection when closed, etc.
  - The 'core' command can now be used to select a vmcore to use, either
    a crash dump file or /dev/mem for live debugging.
  - The 'detach' command can be used to detach from a vmcore w/o attaching
    to a new one.
  - kgdb no longer explicitly opens a core dump during startup and no longer
    has to use an atexit() hook to close the kvm connection on shutdown.
  - Symbols for kld's are automatically loaded anytime a core is opened.
    Also, the unread portion of dmesg is dumped just as it was done on kgdb
    startup previously.
- Don't require either a remote target or core dump if a kernel is specified.
  You can now just run 'kgdb kernel' similar to running gdb on an executable
  and later connect to a remote target or core dump.
- Use a more relaxed way to verify remote targets specified via -r.
  Instead of explicitly allowing a few non-file target specifications,
  just assume that if stat() on the arg and on "/dev/" + arg both fail
  that is some non-file target and pass it to gdb.
- Don't use a custom interpreter.  The existing kgdb_init() hook and the
  target_new_objfile() hook give us sufficient hooks during startup to
  setup kgdb-specific behavior now.
- Always add the 'proc', 'tid', and 'add-kld' commands on startup and not
  just if we have a core dump.  Currently the 'proc' and 'tid' commands do
  not work for remote targets (I will fix at least 'tid' in the next round
  of changes though).  However, the 'add-kld' command works fine for
  loading symbols for a kernel module on a remote target.
- Always setup the 'kld' shared library target operations instead of just
  if we have a core dump.  Although symbols for kernel modules are not
  automatically loaded when connecting to a remote target, you can do
  'info sharedlibrary' after connecting to the remote target and kgdb will
  find all the modules.  You can then use the 'sharedlibrary' command to
  load symbols from the module files.
- Change kthr_init() to free the existing list of kthr objects before
  generating a new one.  This allows it to be invoked multiple times
  w/o leaking memory.

MFC after: 1 week

16 years agoMore recommendations
imp [Tue, 29 Apr 2008 19:55:18 +0000 (19:55 +0000)]
More recommendations

16 years agoAdd support for the BCM5906[M] adapters. These adapters only support
jhb [Tue, 29 Apr 2008 19:47:13 +0000 (19:47 +0000)]
Add support for the BCM5906[M] adapters.  These adapters only support
10/100 operation and place the mailbox registers at a different offset.
They also do not have an EEPROM, so the MAC address must be read from
NVRAM instead.

MFC after: 1 month
PR: kern/118975
Submitted by: benjsc, Thomas Nyström  thn at saeab dot se
Submitted by: sephe (original patch for DragonflyBSD)

16 years ago- Add a global variable 'fbsdcoreops_suppress_target' that can be set to
jhb [Tue, 29 Apr 2008 17:47:25 +0000 (17:47 +0000)]
- Add a global variable 'fbsdcoreops_suppress_target' that can be set to
  force the FreeBSD multithreaded core target to not register any target
  for handling core dumps.  This is analogous to the
  'coreops_suppress_target' variable that GDB provides for suppressing the
  default core dump target.  KGDB will use this new variable so it can
  provide its own core dump target that uses libkvm to work with vmcore
  files.
- Adjust the long name and documentation of the FreeBSD multithreaded core
  dump target so it better matches what GDB's core dump target uses.

MFC after: 1 week
Reviewed by: davidxu, marcel

16 years ago_setjmp.o was missing a dependency on "machine".
ru [Tue, 29 Apr 2008 17:42:42 +0000 (17:42 +0000)]
_setjmp.o was missing a dependency on "machine".

16 years agoDon't forget to clean the "machine" symlink on amd64, otherwise bad
ru [Tue, 29 Apr 2008 17:37:01 +0000 (17:37 +0000)]
Don't forget to clean the "machine" symlink on amd64, otherwise bad
things may happen.

Reported by: phk
MFC after: 3 days

16 years agoThis bloke has his priorities straight:
phk [Tue, 29 Apr 2008 13:02:21 +0000 (13:02 +0000)]
This bloke has his priorities straight:

+"Can you be more stupid than aggravating the judge AND your lawyer?
+No? Oh yes you can: You can aggravate the whole kernel community."
+               -- Alexander Lyamin (about Hans Reisers murder trial)

Found at: http://www.news.com/8301-10784_3-9925607-7.html?tag=nefd.top

16 years ago Define INLINE_LIMIT and additional CFLAGS for mips.
gonzo [Tue, 29 Apr 2008 11:28:10 +0000 (11:28 +0000)]
  Define INLINE_LIMIT and additional CFLAGS for mips.

  Approved by: cognet (mentor)

16 years ago Define KINFO_PROC_SIZE for mips.
gonzo [Tue, 29 Apr 2008 11:17:45 +0000 (11:17 +0000)]
  Define KINFO_PROC_SIZE for mips.

  Approved by: cognet (mentor)

16 years agoMention -U and -ai arguments to mergemaster in a comment for the
rwatson [Tue, 29 Apr 2008 09:08:33 +0000 (09:08 +0000)]
Mention -U and -ai arguments to mergemaster in a comment for the
general mergemaster line.

MFC after: 3 days
Suggested by: Ben Laurie

16 years agoFix some section references.
pjd [Tue, 29 Apr 2008 08:16:05 +0000 (08:16 +0000)]
Fix some section references.

16 years agoThe referenced section name is 'Formats', not 'FORMATS'.
pjd [Tue, 29 Apr 2008 07:35:31 +0000 (07:35 +0000)]
The referenced section name is 'Formats', not 'FORMATS'.

16 years agoDon't depend on the modification time of the "zfs" subdir.
ru [Tue, 29 Apr 2008 06:54:12 +0000 (06:54 +0000)]
Don't depend on the modification time of the "zfs" subdir.

16 years ago- Fix makefile so it doesn't break the build in some corner cases. [1]
ru [Tue, 29 Apr 2008 06:48:00 +0000 (06:48 +0000)]
- Fix makefile so it doesn't break the build in some corner cases. [1]
- Remove an extra copy of zfs.c.

Reported by: yar [1]

16 years agoFix compiling problem.
davidxu [Tue, 29 Apr 2008 05:48:05 +0000 (05:48 +0000)]
Fix compiling problem.

16 years agoUse UMTX_OP_WAIT_UINT_PRIVATE and UMTX_OP_WAKE_PRIVATE to save
davidxu [Tue, 29 Apr 2008 03:58:18 +0000 (03:58 +0000)]
Use UMTX_OP_WAIT_UINT_PRIVATE and UMTX_OP_WAKE_PRIVATE to save
time in kernel(avoid VM lookup).