]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoAdd a knob to allow just the kernels to be built during a 'make universe'.
jb [Fri, 23 May 2008 04:20:59 +0000 (04:20 +0000)]
Add a knob to allow just the kernels to be built during a 'make universe'.
This is useful when wanting to retry a broken build using NOCLEAN and the
buildworlds are known to have completed.

16 years agoAdd the ctf_get method.
jb [Fri, 23 May 2008 04:06:49 +0000 (04:06 +0000)]
Add the ctf_get method.

16 years agoAllow a rendezvous with just a specified CPU too.
jb [Fri, 23 May 2008 04:05:26 +0000 (04:05 +0000)]
Allow a rendezvous with just a specified CPU too.

Make the API work in the non-smp case too so that a kernel module
can work the same regardless of whether or not it is loaded on a SMP
kernel or not.

16 years agoThe VM system no longer uses setPQL2(). Remove it and its helpers.
alc [Fri, 23 May 2008 04:03:54 +0000 (04:03 +0000)]
The VM system no longer uses setPQL2().  Remove it and its helpers.

16 years agoDTrace can enter the debugger from a probe. Add a WHY definition for this.
jb [Fri, 23 May 2008 04:00:44 +0000 (04:00 +0000)]
DTrace can enter the debugger from a probe. Add a WHY definition for this.

16 years agoAdd the CTF conversion to the generated makefile. In the case where
jb [Fri, 23 May 2008 03:55:26 +0000 (03:55 +0000)]
Add the CTF conversion to the generated makefile. In the case where
NO_CTF or !WITH_CTF, the macro is empty.

16 years agoAdd support for generating CTF data for the kernel.
jb [Fri, 23 May 2008 03:53:49 +0000 (03:53 +0000)]
Add support for generating CTF data for the kernel.

16 years agoAdd a kernel option for amd64 to compile with the frame on the stack
jb [Fri, 23 May 2008 03:52:55 +0000 (03:52 +0000)]
Add a kernel option for amd64 to compile with the frame on the stack
so that the DTrace Function Bounadry Trace (fbt) provider can get
coverage of most functions in the kernel.

16 years agoAdd the CTF source file which gets shared with link_elf.c and link_elf_obj.c.
jb [Fri, 23 May 2008 03:04:27 +0000 (03:04 +0000)]
Add the CTF source file which gets shared with link_elf.c and link_elf_obj.c.

16 years agoAdd hooks for the Compact C Type Format (CTF) data to be attached to
jb [Fri, 23 May 2008 00:49:39 +0000 (00:49 +0000)]
Add hooks for the Compact C Type Format (CTF) data to be attached to
the elf files. This is complicated by the fact that the actual CTF
parsing has to be done in CDDL'd code, so the BSD licensed code only
knows about the opaque data which it must be able to free.

16 years agoAdd support for the DTrace malloc provider which can enable probes
jb [Fri, 23 May 2008 00:43:36 +0000 (00:43 +0000)]
Add support for the DTrace malloc provider which can enable probes
on a per-malloc type basis.

16 years agoAdd the dtrace client app to the build.
jb [Thu, 22 May 2008 23:06:19 +0000 (23:06 +0000)]
Add the dtrace client app to the build.

16 years agospecial-case broadcast probe request in ieee80211_find_rxnode; we need
sam [Thu, 22 May 2008 22:22:10 +0000 (22:22 +0000)]
special-case broadcast probe request in ieee80211_find_rxnode; we need
to spam all vaps and this won't happen if the frame comes from a station
that is associated to an ap vap (and so has an entry in the table)

Noticed by: Jared Go
Reviewed by: thompsa

16 years agoThis fixes the "getfile: lost data" panic when restoring dumps
mckusick [Thu, 22 May 2008 22:19:33 +0000 (22:19 +0000)]
This fixes the "getfile: lost data" panic when restoring dumps
on a 7.0 or later system that were created on a pre-5.0 system.
We must ensure that restore zeros out the previously undefined
birthtime and external attribute size fields when reading dump
tapes made by the UFS1 dump program.

The problem is that UFS2 dump carefully zeros out the unused
birthtime and external attribute size fields in the dump header
when dumping UFS1 filesystems, but the UFS1 dump didn't know about
those fields (they were spares) so just left whatever random junk
was in them. So, when restoring one of these pre-UFS2 dumps,
the new restore would eventually trip across a header that had
a non-zero external attribute size and try to extract it. That
consumed several tape blocks which left it totally out of sync
and very unhappy (i.e., the panic). The fix is in the gethead()
function which modernizes old headers by copying old fields to
their new location (and with this fix) zeroing out previously
undefined fields.

PR: bin/120881
Review by: David Malone & Scott Lambert
MFC after: 1 week

16 years agoFollow on to fix 1.51 for "Header with wrong dumpdate" message.
mckusick [Thu, 22 May 2008 22:18:38 +0000 (22:18 +0000)]
Follow on to fix 1.51 for "Header with wrong dumpdate" message.

Must ensure that dump tapes from UFS1 filesystems properly copy
old fields of dump headers to new locations. Move check of dumpdate
to follow the code which ensures that the appropriate fields have
been copied.

PR: bin/118087
Help from: David Malone, Scott Lambert, Javier Martín Rueda
MFC after: 2 weeks

16 years agoignore sw beacon miss while scanning, just reset the beacon count and timer
sam [Thu, 22 May 2008 22:17:27 +0000 (22:17 +0000)]
ignore sw beacon miss while scanning, just reset the beacon count and timer

Reviewed by: thompsa

16 years agono need to stop the sw beacon miss timer; it's not used with adhoc or wds
sam [Thu, 22 May 2008 22:14:58 +0000 (22:14 +0000)]
no need to stop the sw beacon miss timer; it's not used with adhoc or wds

16 years agoclear out crud
sam [Thu, 22 May 2008 21:53:15 +0000 (21:53 +0000)]
clear out crud

Submitted by: "Pawel Worach" <pawel.worach@gmail.com>

16 years ago Clean out all mentions of struct proc* for it was removed from
gonzo [Thu, 22 May 2008 21:41:19 +0000 (21:41 +0000)]
  Clean out all mentions of struct proc* for it was removed from
  taskqueue(9) API more then two years ago.

  Approved by: cognet (mentor)

16 years agoImprove portability via s/struct siginfo/struct siginfo_data/. This was
cperciva [Thu, 22 May 2008 21:08:36 +0000 (21:08 +0000)]
Improve portability via s/struct siginfo/struct siginfo_data/.  This was
running into a namespace collision on an avian operating system.

16 years agoo Document two new ALT_BREAK_TO_DEBUGGER key sequences.
maxim [Thu, 22 May 2008 18:19:49 +0000 (18:19 +0000)]
o Document two new ALT_BREAK_TO_DEBUGGER key sequences.

16 years agoThe function pmap_addr_hint no longer exists. Remove its man page.
alc [Thu, 22 May 2008 16:25:25 +0000 (16:25 +0000)]
The function pmap_addr_hint no longer exists.  Remove its man page.

16 years agoIntroduce REMOVE_NEXT() macro's for SLIST and STAILQ.
ed [Thu, 22 May 2008 14:40:03 +0000 (14:40 +0000)]
Introduce REMOVE_NEXT() macro's for SLIST and STAILQ.

Even though single linked lists allow items to be removed at constant time
(when the previous element is known), the queue macro's don't allow this.
Implement new REMOVE_NEXT() macro's. Because the REMOVE() macro's also
contain the same code, make it call REMOVE_NEXT().

The OpenBSD version of SLIST_REMOVE_NEXT() needs a reference to the list
head, even though it is unused. We'd better mimic this. The STAILQ version
also needs a reference to the list. This means the prototypes of both
macro's are the same.

Approved by: philip (mentor)
PR: kern/121117

16 years agoAdd a new group definition to sys/conf.h: GID_TTY.
ed [Thu, 22 May 2008 13:46:41 +0000 (13:46 +0000)]
Add a new group definition to sys/conf.h: GID_TTY.

Our current TTY layer uses a set-uid application called ptchown to
change ownership of a PTY slave device. The new TTY layer implements
this functionality through a new ioctl().

By accident I discovered Darwin's TTY layer also uses this approach.
Because of this, they also have a GID_TTY.

Approved by: philip (mentor)

16 years agoLast but not least, add myself to the list of birthdays as well.
ed [Thu, 22 May 2008 13:21:05 +0000 (13:21 +0000)]
Last but not least, add myself to the list of birthdays as well.

Approved by: philip (mentor)

16 years agoAdd myself to this list as well.
ed [Thu, 22 May 2008 13:18:09 +0000 (13:18 +0000)]
Add myself to this list as well.

Approved by: philip (mentor)

16 years ago- Recognize the 'volume' parameter when creating a plex.
lulf [Thu, 22 May 2008 10:27:03 +0000 (10:27 +0000)]
- Recognize the 'volume' parameter when creating a plex.

PR: kern/75632
Approved by: pjd (mentor)
MFC after: 1 day

16 years agoAdd codec id for Sigmatel STAC9872AK
kevlo [Thu, 22 May 2008 09:14:12 +0000 (09:14 +0000)]
Add codec id for Sigmatel STAC9872AK

Reviewed by: ariff

16 years agoA 'special' compatibility header to plug OpenSolaris code.
jb [Thu, 22 May 2008 09:08:41 +0000 (09:08 +0000)]
A 'special' compatibility header to plug OpenSolaris code.

16 years agoAdditional compatibility headers.
jb [Thu, 22 May 2008 08:35:03 +0000 (08:35 +0000)]
Additional compatibility headers.

16 years agoCompatibility stuff for DTrace.
jb [Thu, 22 May 2008 08:33:24 +0000 (08:33 +0000)]
Compatibility stuff for DTrace.

16 years agoConsistently check IPFW and DUMMYNET privileges in the configuration
rwatson [Thu, 22 May 2008 08:10:31 +0000 (08:10 +0000)]
Consistently check IPFW and DUMMYNET privileges in the configuration
routines for those modules, rather than in the raw socket code.  This
each privilege check to occur in exactly once place and avoids
duplicate checks across layers.

MFC after: 3 weeks
Sponsored by: nCircle Network Security, Inc.

16 years agoAdd the DTrace build tools.
jb [Thu, 22 May 2008 08:04:49 +0000 (08:04 +0000)]
Add the DTrace build tools.

16 years agoOops, these files belonged under src/sys, not src. Sorry.
jb [Thu, 22 May 2008 07:46:01 +0000 (07:46 +0000)]
Oops, these files belonged under src/sys, not src. Sorry.

16 years agoFreeBSD changes to vendor source.
jb [Thu, 22 May 2008 07:33:39 +0000 (07:33 +0000)]
FreeBSD changes to vendor source.

16 years agoWhen sendto(2) is called with an explicit destination address
rwatson [Thu, 22 May 2008 07:18:54 +0000 (07:18 +0000)]
When sendto(2) is called with an explicit destination address
argument, call mac_socket_check_connect() on that address before
proceeding with the send.  Otherwise policies instrumenting the
connect entry point for the purposes of checking destination
addresses will not have the opportunity to check implicit
connect requests.

MFC after: 3 weeks
Sponsored by: nCircle Network Security, Inc.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r179193,
jb [Thu, 22 May 2008 07:04:10 +0000 (07:04 +0000)]
This commit was generated by cvs2svn to compensate for changes in r179193,
which included commits to RCS files with non-trunk default branches.

16 years agoVendor import of the src/sys OpenSolaris bits for DTrace.
jb [Thu, 22 May 2008 07:04:10 +0000 (07:04 +0000)]
Vendor import of the src/sys OpenSolaris bits for DTrace.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r179191,
jb [Thu, 22 May 2008 07:00:07 +0000 (07:00 +0000)]
This commit was generated by cvs2svn to compensate for changes in r179191,
which included commits to RCS files with non-trunk default branches.

16 years agoVendor import (really!) of the OpenSolaris bits for DTrace.
jb [Thu, 22 May 2008 07:00:07 +0000 (07:00 +0000)]
Vendor import (really!) of the OpenSolaris bits for DTrace.

16 years agoCreate the bucket mutexes with MTX_NOWITNESS. There's now a
marcel [Thu, 22 May 2008 06:27:46 +0000 (06:27 +0000)]
Create the bucket mutexes with MTX_NOWITNESS. There's now a
hard limit of 512 pending mutexes in the witness code and
we can easily have 1 million bucket mutexes initialized before
witness is up and running. Bumping the limit from 512 to 1M
is not really an option here...

16 years agoAdd the DTrace libraries and D library scripts.
jb [Thu, 22 May 2008 04:26:42 +0000 (04:26 +0000)]
Add the DTrace libraries and D library scripts.

16 years agoHook libdwarf and libproc into the build.
jb [Thu, 22 May 2008 04:22:43 +0000 (04:22 +0000)]
Hook libdwarf and libproc into the build.

16 years agoAdd a BSD licensed DWARF library for use by the DTrace clients.
jb [Thu, 22 May 2008 02:14:23 +0000 (02:14 +0000)]
Add a BSD licensed DWARF library for use by the DTrace clients.

The API for this library is deliberately different to the GPL'd
libdwarf to avoid licensing problems.

16 years agoAdd the Makefile for the process library which was missed in the previous
jb [Thu, 22 May 2008 02:10:14 +0000 (02:10 +0000)]
Add the Makefile for the process library which was missed in the previous
commit.

16 years agoAdd a process library with some stubs that the DTrace client needs.
jb [Thu, 22 May 2008 02:09:21 +0000 (02:09 +0000)]
Add a process library with some stubs that the DTrace client needs.
These will be fleshed out as part of the DTrace userland tracing
development.

For now, the kernel tracing part of DTrace requires minimal functionality
for this library.

The API for this library is deliberately different from the libproc in
OpenSolaris due to licensing restrictions.

16 years agoAdd support for the Compact C Type (CTF) conversions throughout FreeBSD's
jb [Thu, 22 May 2008 01:14:43 +0000 (01:14 +0000)]
Add support for the Compact C Type (CTF) conversions throughout FreeBSD's
system makefiles.

Note that the CTF conversion defaults to off. We may choose to change this
default later if DTrace proves popular and people are prepared to wear
the compilation performance impact of compiling with debug symbols all the
time.

Setting NO_CTF in the make args or user environment turns off CTF conversion.
Even if we choose to default CTF generation to on later, we still need
NO_CTF so that the buildworld process can bootstrap the tools without
needlessly generating CTF data for temporary tools.

Setting WITH_CTF in the make args or user environment (and _NOT_ in
/etc/make.conf) is the only way to enable CTF data conversion. Nore that
this can't be implemented the same way that the WITH_ and WITHOUT_ stuff
is implemented throughout the buildworld because the CTF conversion needs
to work when building a simple object without a Makefile, using the
default rules in sys.mk.

Typing 'make test.o' with no makefile and just a source file test.c
should work. Also, typing 'make WITH_CTF=1 test.o without a makefile and
just a source file test.c should work and produce an object with a CTF
elf section. Typing 'make WITH_CTF=1 CFLAGS=-g test.o' without a makefile
and just a source file test.c should produce an object with both a CTF
elf section and the debug elf sections.

In the FreeBSD build where more .mk files are used than just sys.mk
which is included my make by default, the use of DEBUG_FLAGS is the
correct way to enable a debug build. The important thing to note here
is that it is the DEBUG_FLAGS setting that prevents libraries and
programs from being stripped on installation. So, for the addition of
CTF data conversion, setting DEBUG_FLAGS to contain -g, without NO_CTF,
will cause the ctfconvert and ctfmerge build programs to be executed
also with the -g arg so that debug symbols are retained rather than
being removed after the CTF data elf section has been added.

Add DTrace libraries to the list of libnames.

16 years agoGiant is no longer required and can not be held over kproc_exit().
thompsa [Wed, 21 May 2008 23:04:10 +0000 (23:04 +0000)]
Giant is no longer required and can not be held over kproc_exit().

16 years agoThanks to report from Neil Hoggarth I found a missing UNLOCK in
jfv [Wed, 21 May 2008 21:06:17 +0000 (21:06 +0000)]
Thanks to report from Neil Hoggarth I found a missing UNLOCK in
the watchdog code. This delta also incorporates some missing PCI
IDs that got added.

PR 122928 - might be fixed by this, no verification at this point.

16 years ago- sctputil.c - If debug is on, the INPKILL timer can deref a freed value.
rrs [Wed, 21 May 2008 16:51:21 +0000 (16:51 +0000)]
- sctputil.c - If debug is on, the INPKILL timer can deref a freed value.
               Change so that we save off a type field for display and
               NULL inp just for good measure.

- sctp_output.c - Fix it so in sending to the loopback we use the
                  src address of the inbound INIT. We don't want
                  to do this for non local addresses since otherwise
                  we might be ingressed filtered so we need to use
                  the best src address and list the address sent to.

Obtained from: time bug - Neil Wilson
MFC after: 1 week

16 years agoDon't use LK_DRAIN before calling VOP_FSYNC() in the two further
rwatson [Wed, 21 May 2008 13:59:05 +0000 (13:59 +0000)]
Don't use LK_DRAIN before calling VOP_FSYNC() in the two further
panic cases for audit trail failure -- this doesn't contribute
anything, and might arguably be wrong.

MFC after: 1 week
Requested by: attilio

16 years agoDon't use LK_DRAIN before calling VOP_FSYNC() in the panic case for
rwatson [Wed, 21 May 2008 13:05:06 +0000 (13:05 +0000)]
Don't use LK_DRAIN before calling VOP_FSYNC() in the panic case for
audit trail failure -- this doesn't contribute anything, and might
arguably be wrong.

MFC after: 1 week
Requested by: attilio

16 years agoImplement the per-open file data for the cdev.
kib [Wed, 21 May 2008 09:31:44 +0000 (09:31 +0000)]
Implement the per-open file data for the cdev.

The patch does not change the cdevsw KBI. Management of the data is
provided by the functions
int devfs_set_cdevpriv(void *priv, cdevpriv_dtr_t dtr);
int devfs_get_cdevpriv(void **datap);
void devfs_clear_cdevpriv(void);
All of the functions are supposed to be called from the cdevsw method
contexts.

- devfs_set_cdevpriv assigns the priv as private data for the file
  descriptor which is used to initiate currently performed driver
  operation. dtr is the function that will be called when either the
  last refernce to the file goes away, the device is destroyed  or
  devfs_clear_cdevpriv is called.
- devfs_get_cdevpriv is the obvious accessor.
- devfs_clear_cdevpriv allows to clear the private data for the still
  open file.

Implementation keeps the driver-supplied pointers in the struct
cdev_privdata, that is referenced both from the struct file and struct
cdev, and cannot outlive any of the referee.

Man pages will be provided after the KPI stabilizes.

Reviewed by: jhb
Useful suggestions from: jeff, antoine
Debugging help and tested by: pho
MFC after: 1 month

16 years ago+ Use the default cscope names.
obrien [Wed, 21 May 2008 07:56:10 +0000 (07:56 +0000)]
+ Use the default cscope names.
+ Enable fast symbol lookup.
+ Make sure files cscoped are really files, and add .S's.
+ Add 'cscope-clean' target.

16 years agoWe can call ia64_flush_dirty() when the corresponding process is
marcel [Wed, 21 May 2008 05:15:27 +0000 (05:15 +0000)]
We can call ia64_flush_dirty() when the corresponding process is
locked or not. As such, use PROC_LOCKED() to determine which case
it is and lock the process when not.

16 years agoUse the "options " spelling (vs. "options<TAB>") so that commented lines
obrien [Wed, 21 May 2008 03:36:53 +0000 (03:36 +0000)]
Use the "options " spelling (vs. "options<TAB>") so that commented lines
line up nicely.

16 years agoAdd Solaris compatibility definitions for things we don't really want in
jb [Wed, 21 May 2008 00:26:38 +0000 (00:26 +0000)]
Add Solaris compatibility definitions for things we don't really want in
FreeBSD headers.

16 years agoAdd Juniper's copyright.
obrien [Tue, 20 May 2008 22:58:47 +0000 (22:58 +0000)]
Add Juniper's copyright.

16 years agoMIPS arch target kgdb(1) support.
obrien [Tue, 20 May 2008 22:54:42 +0000 (22:54 +0000)]
MIPS arch target kgdb(1) support.

Obtained from: Juniper Networks.

16 years ago-d is a flag, not an argument. Use .Fl here.
thompsa [Tue, 20 May 2008 20:47:21 +0000 (20:47 +0000)]
-d is a flag, not an argument. Use .Fl here.

16 years agoAllow VM object creation in ufs_lookup. (If vfs.vmiodirenable is set)
ups [Tue, 20 May 2008 19:05:43 +0000 (19:05 +0000)]
Allow VM object creation in ufs_lookup. (If vfs.vmiodirenable is set)
Directory IO without a VM object will store data in 'malloced' buffers
severely limiting caching of the data. Without this  change VM objects for
directories are only created on an open() of the directory.
TODO: Inline test if VM object already exists to avoid locking/function call
overhead.

Tested by: kris@
Reviewed by: jeff@
Reported by: David Filo

16 years ago- Adds support for the multi-asconf (From Kozuka-san)
rrs [Tue, 20 May 2008 13:47:46 +0000 (13:47 +0000)]
- Adds support for the multi-asconf (From Kozuka-san)
- Adds some prepwork (Not all yet) for vimage in particular
  support the delete the sctppcbinfo.xx structs. There is
  still a leak in here if it were to be called plus we stil
  need the regrouping (From Me and Michael Tuexen)
- Adds support for UDP tunneling. For BSD there is no
  socket yet setup so its disabled, but major argument
  changes are in here to emcompass the passing of the port
  number (zero when you don't have a udp tunnel, the default
  for BSD). Will add some hooks in UDP here shortly (discussed
  with Robert) that will allow easy tunneling. (Mainly from
  Peter Lei and Michael Tuexen with some BSD work from me :-D)
- Some ease for windows, evidently leave is reserved by their
  compile move label leave: -> out:

MFC after: 1 week

16 years agoDrop Giant before calling kproc_exit(), so we don't trigger assertion in
pjd [Tue, 20 May 2008 12:34:30 +0000 (12:34 +0000)]
Drop Giant before calling kproc_exit(), so we don't trigger assertion in
kproc_exit().

Discussed with: imp

16 years agoAdd ID for T61p, which is not IBM really, but well.
pjd [Tue, 20 May 2008 12:26:45 +0000 (12:26 +0000)]
Add ID for T61p, which is not IBM really, but well.

16 years ago- Change the meaning of -h flag from giving the output in megabytes to
pjd [Tue, 20 May 2008 12:24:31 +0000 (12:24 +0000)]
- Change the meaning of -h flag from giving the output in megabytes to
  giving the output in a human-readable form. This behaviour is consistent
  with most of system tools.
- Add -m and -g options to give output in megabytes and gigabytes
  respectively.

16 years agoUpdate to reflect reality:
rpaulo [Tue, 20 May 2008 12:07:02 +0000 (12:07 +0000)]
Update to reflect reality:
* iasl(8) supports ACPI 3.0b.
* Add new options.

MFC after: 1 week

16 years agoUse 'dowrite' as an argument name instead of too general 'write'.
pjd [Tue, 20 May 2008 11:45:05 +0000 (11:45 +0000)]
Use 'dowrite' as an argument name instead of too general 'write'.

16 years agoForce commit to note, that the typo in KASSERT() was:
pjd [Tue, 20 May 2008 11:43:56 +0000 (11:43 +0000)]
Force commit to note, that the typo in KASSERT() was:

PR: kern/116896
Reported by: VANHULLEBUS Yvan <vanhu@netasq.com>

16 years ago- Define changes in sctp.h
rrs [Tue, 20 May 2008 09:51:36 +0000 (09:51 +0000)]
- Define changes in sctp.h
- Bug in CA that does not get us incrementing the PBA properly which
  made us more conservative.
- comment updated in sctp_input.c
- memsets added before we log
- added arg to hmac id's
MFC after: 2 weeks

16 years agoDocument the azp for controlling audio power
kevlo [Tue, 20 May 2008 06:33:10 +0000 (06:33 +0000)]
Document the azp for controlling audio power

16 years agoAdd support for controlling the audio power
kevlo [Tue, 20 May 2008 06:32:07 +0000 (06:32 +0000)]
Add support for controlling the audio power

Tested on: VGN-SZ79TN

16 years agoThis small change will allow this driver in HEAD to build
jfv [Mon, 19 May 2008 23:01:11 +0000 (23:01 +0000)]
This small change will allow this driver in HEAD to build
on 6.3 as well as 7 :)

16 years agoDetect if argv[1] is "" and avoid calling malloc(0). Prior to this commit,
cperciva [Mon, 19 May 2008 18:38:01 +0000 (18:38 +0000)]
Detect if argv[1] is "" and avoid calling malloc(0).  Prior to this commit,
running 'tar ""' would print 'No memory' instead of the correct error
message, 'Must specify one of -c, -r, -t, -u, -x' if malloc is set to
System V mode (malloc(0) == NULL).

16 years agoThere's no way for entry to possibly be NULL at the end of write_entry
cperciva [Mon, 19 May 2008 18:09:26 +0000 (18:09 +0000)]
There's no way for entry to possibly be NULL at the end of write_entry
(in fact, there has never been any way for it to be NULL, going all the
way back to revision 1.1 of this file), so remove the check and
unconditionally free entry.

Found by: Coverity Prevent

16 years agoReturn ARCHIVE_FATAL if we can't allocate memory instead of going ahead and
cperciva [Mon, 19 May 2008 18:06:48 +0000 (18:06 +0000)]
Return ARCHIVE_FATAL if we can't allocate memory instead of going ahead and
dereferencing NULL.

Found by: Coverity Prevent

16 years agoRemove -, .Ar adds that automatically.
thompsa [Mon, 19 May 2008 17:59:09 +0000 (17:59 +0000)]
Remove -, .Ar adds that automatically.

Pointed out by: brueffer

16 years agoBump document date for last change.
thompsa [Mon, 19 May 2008 17:54:32 +0000 (17:54 +0000)]
Bump document date for last change.

16 years agoFlush stdout after each line to make piping to another command easier.
thompsa [Mon, 19 May 2008 17:51:00 +0000 (17:51 +0000)]
Flush stdout after each line to make piping to another command easier.

16 years agoAllow wlandebug to set the default debug level which is inherited when vaps are
thompsa [Mon, 19 May 2008 17:49:57 +0000 (17:49 +0000)]
Allow wlandebug to set the default debug level which is inherited when vaps are
created.

16 years agoAdd -L to usage().
bms [Mon, 19 May 2008 11:35:11 +0000 (11:35 +0000)]
Add -L to usage().

16 years agoAdd an -L option to ignore loopback Internet sockets.
bms [Mon, 19 May 2008 11:32:44 +0000 (11:32 +0000)]
Add an -L option to ignore loopback Internet sockets.

MFC after: 2 weeks

16 years agoAdd age(4) to the list of drivers supported by GENERIC kernel.
yongari [Mon, 19 May 2008 02:30:27 +0000 (02:30 +0000)]
Add age(4) to the list of drivers supported by GENERIC kernel.

16 years agoHook up age(4) to the build.
yongari [Mon, 19 May 2008 02:21:00 +0000 (02:21 +0000)]
Hook up age(4) to the build.

16 years agoAdd age(4) to the list of supported network interface.
yongari [Mon, 19 May 2008 02:17:24 +0000 (02:17 +0000)]
Add age(4) to the list of supported network interface.

16 years agoAdd an entry for the age(4) module.
yongari [Mon, 19 May 2008 02:13:50 +0000 (02:13 +0000)]
Add an entry for the age(4) module.

16 years agoAdd age(4) to the list of drivers use the miibus interface.
yongari [Mon, 19 May 2008 02:10:39 +0000 (02:10 +0000)]
Add age(4) to the list of drivers use the miibus interface.

16 years agoAdd age(4) to the list of drivers supporting ALTQ.
yongari [Mon, 19 May 2008 02:06:39 +0000 (02:06 +0000)]
Add age(4) to the list of drivers supporting ALTQ.

16 years agoAdd age(4) to the list of devices supporting full VLAN processing
yongari [Mon, 19 May 2008 02:03:52 +0000 (02:03 +0000)]
Add age(4) to the list of devices supporting full VLAN processing
in hardware.

16 years agoAdd man page for age(4).
yongari [Mon, 19 May 2008 02:00:16 +0000 (02:00 +0000)]
Add man page for age(4).
brueffer fixed various nits in the document.

Reviewed by: brueffer

16 years agoHook up age(4) to the build.
yongari [Mon, 19 May 2008 01:53:47 +0000 (01:53 +0000)]
Hook up age(4) to the build.

16 years agoAdd age(4), a driver for Attansic/Atheros L1 gigabit ethernet
yongari [Mon, 19 May 2008 01:39:59 +0000 (01:39 +0000)]
Add age(4), a driver for Attansic/Atheros L1 gigabit ethernet
controller. L1 has several threshold/timer registers and they
seem to require careful tuned parameters to get best
performance. Datasheet for L1 is not available to open source
driver writers so age(4) focus on stability and correctness of
basic Tx/Rx operation. ATM the performance of age(4) is far from
optimal which in turn means there are mis-programmed registers or
incorrectly configured registers.
Currently age(4) supports all known hardware assistance including
  - MSI support.
  - TCP Segmentation Offload.
  - Hardware VLAN tag insertion/stripping.
  - TCP/UDP checksum offload.
  - Interrupt moderation.
  - Hardware statistics counter support.
  - Jumbo frame support.
  - WOL support.

L1 gigabit ethernet controller is mainly found on ASUS
motherboards. Note, it seems that there are other variants of
hardware as known as L2(Fast ethernet) and newer gigabit ethernet
(AR81xx) from Atheros. These are not supported by age(4) and
requires a seperate driver. Big thanks to all people who reported
feedback or tested patches.

Tested by: kevlo, bsam, Francois Ranchin < fyr AT fyrou DOT net >
Thomas Nystroem < thn AT saeab DOT se >
Roman Pogosyan < asternetadmin AT gmail DOT com >
Derek Tattersal < dlt AT mebtel DOT net >
Oliver Seitz < karlkiste AT yahoo DOT com >

16 years agoConnect atphy(4) to the build.
yongari [Mon, 19 May 2008 01:18:02 +0000 (01:18 +0000)]
Connect atphy(4) to the build.

16 years agoAdd Attansic/Atheros F1 PHY driver.
yongari [Mon, 19 May 2008 01:12:10 +0000 (01:12 +0000)]
Add Attansic/Atheros F1 PHY driver.

16 years ago- Assert that we don't send new provider event for a provider which has
pjd [Sun, 18 May 2008 22:50:50 +0000 (22:50 +0000)]
- Assert that we don't send new provider event for a provider which has
  G_PF_WITHER flag set.
- Fix typo in assertion condition (sorry, but I forgot who report that).

16 years agoRemove some DTrace hook definitions that are now in dtrace_bsd.h
jb [Sun, 18 May 2008 22:11:47 +0000 (22:11 +0000)]
Remove some DTrace hook definitions that are now in dtrace_bsd.h
which contains all the hook definitions rather than splattering
them all over the header files.

The definitions are only valid when the KDTRACE_HOOKS kernel
option is defined, so other kernel sources have no need to
see them.

16 years agoAdd sysinit levels for DTrace.
jb [Sun, 18 May 2008 22:10:10 +0000 (22:10 +0000)]
Add sysinit levels for DTrace.

16 years agoPlay nice with DDB pager.
pjd [Sun, 18 May 2008 21:13:10 +0000 (21:13 +0000)]
Play nice with DDB pager.

Educated by: jhb's BSDCan presentation

16 years agoBe more friendly for DDB pager.
pjd [Sun, 18 May 2008 21:08:12 +0000 (21:08 +0000)]
Be more friendly for DDB pager.

Educated by: jhb's BSDCan presentation

16 years agoAdd the hooks for the extra data that DTrace allocates for struct thread
jb [Sun, 18 May 2008 19:50:43 +0000 (19:50 +0000)]
Add the hooks for the extra data that DTrace allocates for struct thread
and struct proc.

Add a field to struct thread to stash the error variable (or returned
status) from the last syscall so that it is available during a
DTrace probe.

16 years agoAdd a couple of files which depend of the KDTRACE_HOOKS option.
jb [Sun, 18 May 2008 19:47:49 +0000 (19:47 +0000)]
Add a couple of files which depend of the KDTRACE_HOOKS option.

The syscall names are required by KDTRACE_HOOKS too.

And the unzip