]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
12 years agomdoc: terminate quoted strings.
joel [Mon, 26 Mar 2012 15:18:14 +0000 (15:18 +0000)]
mdoc: terminate quoted strings.

Reviewed by: brueffer

12 years agoFix date.
joel [Mon, 26 Mar 2012 14:56:23 +0000 (14:56 +0000)]
Fix date.

12 years agoUse program exit status as pam_exec return code (optional)
dumbbell [Mon, 26 Mar 2012 12:18:15 +0000 (12:18 +0000)]
Use program exit status as pam_exec return code (optional)

pam_exec(8) now accepts a new option "return_prog_exit_status". When
set, the program exit status is used as the pam_exec return code. It
allows the program to tell why the step failed (eg. user unknown).
However, if it exits with a code not allowed by the calling PAM service
module function (see $PAM_SM_FUNC below), a warning is logged and
PAM_SERVICE_ERR is returned.

The following changes are related to this new feature but they apply no
matter if the "return_prog_exit_status" option is set or not.

The environment passed to the program is extended:
    o  $PAM_SM_FUNC contains the name of the PAM service module function
       (eg. pam_sm_authenticate).
    o  All valid PAM return codes' numerical values are available
       through variables named after the return code name. For instance,
       $PAM_SUCCESS, $PAM_USER_UNKNOWN or $PAM_PERM_DENIED.

pam_exec return code better reflects what went on:
    o  If the program exits with !0, the return code is now
       PAM_PERM_DENIED, not PAM_SYSTEM_ERR.
    o  If the program fails because of a signal (WIFSIGNALED) or doesn't
       terminate normally (!WIFEXITED), the return code is now
       PAM_SERVICE_ERR, not PAM_SYSTEM_ERR.
    o  If a syscall in pam_exec fails, the return code remains
       PAM_SYSTEM_ERR.

waitpid(2) is called in a loop. If it returns because of EINTR, do it
again. Before, it would return PAM_SYSTEM_ERR without waiting for the
child to exit.

Several log messages now include the PAM service module function name.

The man page is updated accordingly.

Reviewed by: gleb@, des@
Sponsored by: Yakaz (http://www.yakaz.com)
MFC after: 2 weeks

12 years agoAdd MySQL port 3306
ivoras [Mon, 26 Mar 2012 11:48:47 +0000 (11:48 +0000)]
Add MySQL port 3306

Obtained from: http://www.iana.org/assignments/port-numbers
MFC after: 1 week

12 years ago- Add knlist_init_rw_reader() function to kqueue(9).
melifaro [Mon, 26 Mar 2012 09:34:17 +0000 (09:34 +0000)]
- Add knlist_init_rw_reader() function to kqueue(9).
Function acquired reader lock if needed.
Assert check for reader or writer lock (RA_LOCKED / RA_UNLOCKED)
- While here, add knlist_init_mtx.9 to MLINKS and fix some style(9) issues

Reviewed by:    glebius
Approved by:    ae(mentor)

MFC after:      2 weeks

12 years agoUse macroses to load/store pointers and increase indexes instead of
gonzo [Mon, 26 Mar 2012 01:26:33 +0000 (01:26 +0000)]
Use macroses to load/store pointers and increase indexes instead of
    hardcoded MIPS64 instructions

12 years agoAdd some more debugging to try and nail down exactly what's going on when
adrian [Sun, 25 Mar 2012 23:50:34 +0000 (23:50 +0000)]
Add some more debugging to try and nail down exactly what's going on when
I see traffic stalls.

It turns out that the bug isn't because the first and last frame in the
BAW is in the software queue.  It is more likely that it's because
the first frame in the BAW is still in the software queue and thus there's
no more room to allocate and do subsequent TX.

PR: kern/166357

12 years agoFollow non-BSD case when GNU/Hurd is detected.
rmh [Sun, 25 Mar 2012 21:54:36 +0000 (21:54 +0000)]
Follow non-BSD case when GNU/Hurd is detected.

12 years ago- Permit number of ipfw tables to be changed in runtime.
melifaro [Sun, 25 Mar 2012 20:37:59 +0000 (20:37 +0000)]
- Permit number of ipfw tables to be changed in runtime.

net.inet.ip.fw.tables_max is now read-write.

- Bump IPFW_TABLES_MAX to 65535
Default number of tables is still 128

- Remove IPFW_TABLES_MAX from ipfw(8) code.

Sponsored by Yandex LLC

Approved by:    kib(mentor)

MFC after:      2 weeks

12 years agomdoc: document title should be all caps.
joel [Sun, 25 Mar 2012 19:34:05 +0000 (19:34 +0000)]
mdoc: document title should be all caps.

12 years agoMake sure sections are sorted into conventional order.
joel [Sun, 25 Mar 2012 16:00:56 +0000 (16:00 +0000)]
Make sure sections are sorted into conventional order.

12 years agoCorrect failure to attach the PV block front device on Citrix
gibbs [Sun, 25 Mar 2012 14:20:43 +0000 (14:20 +0000)]
Correct failure to attach the PV block front device on Citrix
XenServer configurations that advertise the multi-page ring extension,
but only allow a single page of ring space.

sys/dev/xen/blkfront/blkfront.c:
If only one page of ring space is being used, do not publish
in the XenStore the number of pages in use (1), via either
of the supported multi-page ring extension schemes.

Single page operation is the same with or without the
ring-page extension being negotiated.   Relying on the
legacy behavior avoids an incompatible difference in how
the two ring-page extension schemes that are out in the
wild, deal with the base case of a single page.  The
Amazon/Red Hat drivers use the same XenStore variable as
if the extension was not negotiated.  The Citrix drivers
assume the new ring reference XenStore variables will be
available

Reported by: Oliver Schonefeld <schonefeld@ids-mannheim.de>
MFC after: 3 days

12 years agoRemove unused define.
trasz [Sun, 25 Mar 2012 12:53:19 +0000 (12:53 +0000)]
Remove unused define.

Discussed with: kib

12 years agoRemove superfluous paragraph macro.
joel [Sun, 25 Mar 2012 12:13:24 +0000 (12:13 +0000)]
Remove superfluous paragraph macro.

12 years agoRemove superfluous paragraph macro.
joel [Sun, 25 Mar 2012 09:23:10 +0000 (09:23 +0000)]
Remove superfluous paragraph macro.

12 years agoRemove superfluous paragraph macro.
joel [Sun, 25 Mar 2012 09:21:09 +0000 (09:21 +0000)]
Remove superfluous paragraph macro.

12 years agoRemove superfluous paragraph macro.
joel [Sun, 25 Mar 2012 09:20:14 +0000 (09:20 +0000)]
Remove superfluous paragraph macro.

12 years agoRemove superfluous paragraph macro.
joel [Sun, 25 Mar 2012 09:19:25 +0000 (09:19 +0000)]
Remove superfluous paragraph macro.

12 years agoRemove superfluous paragraph macro.
joel [Sun, 25 Mar 2012 09:18:34 +0000 (09:18 +0000)]
Remove superfluous paragraph macro.

12 years agoMore PMAP performance improvements: on powerpc64, when TLBIE can be run
nwhitehorn [Sun, 25 Mar 2012 06:01:34 +0000 (06:01 +0000)]
More PMAP performance improvements: on powerpc64, when TLBIE can be run
with exceptions enabled, leave them enabled and use a regular mutex to
guard TLB invalidations instead of a spinlock.

12 years agoAdd the new channel width change field to the ath(4) driver.
adrian [Sun, 25 Mar 2012 03:14:31 +0000 (03:14 +0000)]
Add the new channel width change field to the ath(4) driver.

This is not entirely correct as it simply resets the channel, flushing
whatever is in the TX/RX queue.  This can and will break aggregation
BAW tracking.  But the alternative (HT40 frames being sent with the hardware
in HT20 mode) is even worse.

There's still a small window between the htinfo being received (and the ni_chw
field being updated) which could cause problems.  I'll look at fleshing this
out in follow-up commits.

PR: kern/166286

12 years agoCreate a new task to handle 802.11n channel width changes.
adrian [Sun, 25 Mar 2012 03:11:57 +0000 (03:11 +0000)]
Create a new task to handle 802.11n channel width changes.

Currently, a channel width change updates the 802.11n HT info data in
net80211 but it doesn't trigger any device changes.  So the device
driver may decide that HT40 frames can be transmitted but the last
device channel set only had HT20 set.

Now, a task is scheduled so a hardware reset or change isn't done
during any active ongoing RX. It also means that it's serialised
with the other task operations (eg channel change.)

This isn't the final incantation of this work, see below.

For now, any unmodified drivers will simply receive a channel
change log entry.  A subsequent patch to ath(4) will introduce
some basic channel change handling (by resetting the NIC.)
Other NICs may need to update their rate control information.

TODO:

* There's still a small window at the present moment where the
  channel width has been updated but the task hasn't been fired.
  The final version of this should likely pass in a channel width
  field to the driver and let the driver atomically do whatever
  it needs to before changing the channel.

PR: kern/166286

12 years agoUpdate manual pages for MIPS-related CPUs:
gonzo [Sun, 25 Mar 2012 02:22:32 +0000 (02:22 +0000)]
Update manual pages for MIPS-related CPUs:

- Rename pmc.mips to pmc.mips24k since it covers just one CPU,
    no whole architecture
- Add documetnations for Octeon's PMC counters
- Remove CAVEATS section from pmc.mips24k page: PMC for MIPS supports
    sampling now.

12 years agoMFV of 233442, tzdata2012a
edwin [Sun, 25 Mar 2012 02:10:31 +0000 (02:10 +0000)]
MFV of 233442, tzdata2012a

- Updates to various locations in Antarctica.
- Armenia will abolish DST this year.
- Not only Samoa has moved to UTC+14, also Fakaofo did.
- There will be a leap second in 30 June 2012.
- Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston.
- Chili stays on DST until 28 April 2012
- The Falkland islands will stay on DST this year.

12 years agoAdd a third flags argument to ffs_syncvnode to avoid a possible conflict
mckusick [Sun, 25 Mar 2012 00:02:37 +0000 (00:02 +0000)]
Add a third flags argument to ffs_syncvnode to avoid a possible conflict
with MNT_WAIT flags that passed in its second argument. This will be
MFC'ed together with r232351.

Discussed with: kib

12 years agoAdd a few more examples
eadler [Sat, 24 Mar 2012 23:10:18 +0000 (23:10 +0000)]
Add a few more examples

Submitted by: jmallett
Approved by: cperciva (implicit)
MFC after: 3 days
X-MFC-With: r233429

12 years agoOnly call vm_page_dirty() on pages that are writable in order not to
nwhitehorn [Sat, 24 Mar 2012 22:32:19 +0000 (22:32 +0000)]
Only call vm_page_dirty() on pages that are writable in order not to
confuse the VM.

12 years agoFix build by adding new directory to mtree in r233429
eadler [Sat, 24 Mar 2012 21:10:19 +0000 (21:10 +0000)]
Fix build by adding new directory to mtree in r233429

Submitted by: flo
Approved by: cperciva
MFC after: 1 week

12 years agoFollowing suggestions from alc, skip wired mappings in pmap_remove_pages()
nwhitehorn [Sat, 24 Mar 2012 19:59:14 +0000 (19:59 +0000)]
Following suggestions from alc, skip wired mappings in pmap_remove_pages()
and remove moea64_attr_*() in favor of direct calls to vm_page_dirty()
and friends.

12 years agoDisable detailed PV entry accounting by default. Add a config option
alc [Sat, 24 Mar 2012 19:43:49 +0000 (19:43 +0000)]
Disable detailed PV entry accounting by default.  Add a config option
to enable it.

MFC after: 1 week

12 years agoRestore the ability to use a non-standard LOCALBASE to sshd
eadler [Sat, 24 Mar 2012 19:41:43 +0000 (19:41 +0000)]
Restore the ability to use a non-standard LOCALBASE to sshd
Add the ability to use a non-standard LOCALBASE to ssh

Submitted by: jhb
Reviewed by: des
Approved by: cperciva
MFC after: 0 days (with r233136)

12 years agoRemove libssp_nonshared from the rtld linking set. The only use for the
kib [Sat, 24 Mar 2012 19:14:44 +0000 (19:14 +0000)]
Remove libssp_nonshared from the rtld linking set. The only use for the
library was definition for the weak alias of __stack_chk_fail.

No objections from: kan
MFC after: 2 weeks

12 years agoProvide short-circuit exit(3) implementation for rtld.
kib [Sat, 24 Mar 2012 19:13:10 +0000 (19:13 +0000)]
Provide short-circuit exit(3) implementation for rtld.
There is no atexit finalizers in rtld to call on rtld exiting (due to errors).

Submitted by: bde
No objections from: kan
MFC after: 2 weeks

12 years ago- Make the default values for tcsh more user friendly
eadler [Sat, 24 Mar 2012 18:43:18 +0000 (18:43 +0000)]
- Make the default values for tcsh more user friendly
- Add an examples file with many of the not accepted suggestions from the discussion

PR: conf/160689
Reviewed by: many
Discussed on: current
Approved by: cperciva

12 years agoDirect users to csup instead of cvsup in the csup-file boilerplate text.
eadler [Sat, 24 Mar 2012 18:25:16 +0000 (18:25 +0000)]
Direct users to csup instead of cvsup in the csup-file boilerplate text.

Reviewed by: maxim, des, swills
Approved by: cperciva
MFC after: 3 days

12 years agoAdd cas(4), gem(4) and hme(4) to x86 GENERICs as suggested by netchild@ in
marius [Sat, 24 Mar 2012 18:08:28 +0000 (18:08 +0000)]
Add cas(4), gem(4) and hme(4) to x86 GENERICs as suggested by netchild@ in
<20120222095239.Horde.0hpYHJjmRSRPRKzXsoFRbYk@webmail.leidinger.net>.
According to some private emails received, it apparently is not unpopular
to use at least Quad GigaSwift cards driven by cas(4) in x86 machines.

MFC after: 1 week

12 years agoAdd QGE-X to the list of known-working cards.
marius [Sat, 24 Mar 2012 18:06:48 +0000 (18:06 +0000)]
Add QGE-X to the list of known-working cards.

MFC after: 1 week

12 years agoConsistently update to the MPI header set version 01.05.20 after r224761.
marius [Sat, 24 Mar 2012 16:23:21 +0000 (16:23 +0000)]
Consistently update to the MPI header set version 01.05.20 after r224761.
Requested by: mjacob

MFC after: 1 week

12 years agoMinor mdoc fixes.
joel [Sat, 24 Mar 2012 15:17:18 +0000 (15:17 +0000)]
Minor mdoc fixes.

12 years agoInitialize the mutexes used for the NVM and the swflag as MTX_DUPOK in
marius [Sat, 24 Mar 2012 15:15:34 +0000 (15:15 +0000)]
Initialize the mutexes used for the NVM and the swflag as MTX_DUPOK in
order to avoid otherwise harmless witness warnings when these are acquired
at the same time and due to both using MTX_NETWORK_LOCK as their type.
The right fix actually would be to use different, descriptive types for
these. However, the latter would require undesirable changes to the shared
code base. Another approach would be to just supply NULL as the type, which
was deemed as less desirable though as it would cause the unique but cryptic
name also to be used for the type and to diverge from the type used by other
network device drivers.

MFC after: 1 week

12 years agoRemove superfluous paragraph macro.
joel [Sat, 24 Mar 2012 13:37:57 +0000 (13:37 +0000)]
Remove superfluous paragraph macro.

12 years agoGiven that this is a host-PCI-Express bridge driver, create the parent
marius [Sat, 24 Mar 2012 13:11:58 +0000 (13:11 +0000)]
Given that this is a host-PCI-Express bridge driver, create the parent
DMA tag with a 4 GB boundary as required by PCI-Express. With r232403 in
place this actually is redundant. However, the host-PCI-Express bridge
driver is the more appropriate place for implementing this restriction.

MFC after: 3 days

12 years agoFix the following clang warning in sys/dev/dcons/dcons.c, caused by the
dim [Sat, 24 Mar 2012 10:07:21 +0000 (10:07 +0000)]
Fix the following clang warning in sys/dev/dcons/dcons.c, caused by the
recent changes in sys/x86/include/endian.h:

  sys/dev/dcons/dcons.c:190:15: error: implicit conversion from '__uint32_t' (aka 'unsigned int') to '__uint16_t' (aka 'unsigned short') changes value from 1684238190 to 28526 [-Werror,-Wconstant-conversion]
  buf->magic = ntohl(DCONS_MAGIC);
       ^~~~~~~~~~~~~~~~~~
  sys/sys/param.h:306:18: note: expanded from:
  #define ntohl(x)        __ntohl(x)
  ^
  ./x86/endian.h:128:20: note: expanded from:
  #define __ntohl(x)      __bswap32(x)
  ^
  ./x86/endian.h:78:20: note: expanded from:
      __bswap32_gen((__uint32_t)(x)) : __bswap32_var(x))
    ^
  ./x86/endian.h:68:26: note: expanded from:
  (((__uint32_t)__bswap16(x) << 16) | __bswap16((x) >> 16))
  ^
  ./x86/endian.h:75:53: note: expanded from:
      __bswap16_gen((__uint16_t)(x)) : __bswap16_var(x)))
       ~~~~~~~~~~~~~ ^

This is because the __bswapXX_gen() macros (for x86) call the regular
__bswapXX() macros.  Since the __bswapXX_gen() variants are only called
when their arguments are constant, there is no need to do that constancy
check recursively.  Also, it causes the above error with clang.

Fix it by calling __bswap16_gen() from __bswap32_gen(), and similarly,
__bswap32_gen() from  __bswap64_gen().

While here, add extra parentheses around the __bswap16_gen() macro
expansion, to prevent unexpected side effects.

12 years agoDocument the show alias and add an EXAMPLES section.
joel [Sat, 24 Mar 2012 06:40:41 +0000 (06:40 +0000)]
Document the show alias and add an EXAMPLES section.

12 years agoRemap PMC interrupt for all cores
gonzo [Sat, 24 Mar 2012 06:28:15 +0000 (06:28 +0000)]
Remap PMC interrupt for all cores

12 years agoBuild CTF tools as a part of toolchain for cross-compilation case
gonzo [Sat, 24 Mar 2012 05:30:13 +0000 (05:30 +0000)]
Build CTF tools as a part of toolchain for cross-compilation case

12 years agoEnable build of DTrace-related userland parts for MIPS
gonzo [Sat, 24 Mar 2012 05:29:07 +0000 (05:29 +0000)]
Enable build of DTrace-related userland parts for MIPS

12 years agoAdd stub file for pid probe. It's required although pid probe is not supported
gonzo [Sat, 24 Mar 2012 05:27:39 +0000 (05:27 +0000)]
Add stub file for pid probe. It's required although pid probe is not supported
on MIPS yet

12 years agoBuild libproc and librtld_db for MIPS
gonzo [Sat, 24 Mar 2012 05:18:27 +0000 (05:18 +0000)]
Build libproc and librtld_db for MIPS

12 years agoAdd DTrace-related part to machine-dependent code:
gonzo [Sat, 24 Mar 2012 05:17:38 +0000 (05:17 +0000)]
Add DTrace-related part to machine-dependent code:

- DTrace trap handler
- invop-related variables (unused on MIPS but still referenced from dtrace)

12 years agoJusy use i386 version of cyclic_machdep.c on all supported architectures.
gonzo [Sat, 24 Mar 2012 05:16:26 +0000 (05:16 +0000)]
Jusy use i386 version of cyclic_machdep.c on all supported architectures.
It's generic enough to cover all of them.

12 years agoMake lockstat and profile modules x86-only
gonzo [Sat, 24 Mar 2012 05:15:14 +0000 (05:15 +0000)]
Make lockstat and profile modules x86-only

12 years agoAdd device part of DTrace/MIPS code
gonzo [Sat, 24 Mar 2012 05:14:37 +0000 (05:14 +0000)]
Add device part of DTrace/MIPS code

12 years agoAdd MIPS support to cddl/contrib part:
gonzo [Sat, 24 Mar 2012 04:52:18 +0000 (04:52 +0000)]
Add MIPS support to cddl/contrib part:

- header and stub .c file for fasttrap module. It's not supported on
    MIPS yet, but there is no way to disable support completely
- Do as amd64 trying to limit allocated memory

12 years agoMaintain target's byte order for multi-byte fields in CTF structures.
gonzo [Sat, 24 Mar 2012 01:47:33 +0000 (01:47 +0000)]
Maintain target's byte order for multi-byte fields in CTF structures.

CTF format is not cross-platform by design, e.g. it is not guaranteed
that data generated by ctfconvert/ctfmerge on one architecture will
be successfuly read on another. CTF structures are saved/restored
using naive approach. Roughly it looks like:
write(fd, &ctf_struct, sizeof(ctf_struct))
read(fd, &ctf_struct, sizeof(ctf_struct))

By sheer luck memory layout of all type-related CTF structures is the same
on amd64/i386/mips32/mips64. It's different on ARM though. sparc, ia64,
powerpc, and powerpc64 were not tested. So in order to get file compatible
with dtrace on ARM it should be compiled on ARM. Alternative solution would
be to have "signatures" for every platform and ctfmerge should convert host's
reperesentation of CTF structure to target's one using "signature" as template.

This patch checks byte order of ELF files used for generating CTF record
and makes sure that byte order of data written to resulting files is the same
as target's byte order.

12 years ago- Avoid using deprecated heimdal functions in pam_krb5.
stas [Sat, 24 Mar 2012 01:02:03 +0000 (01:02 +0000)]
- Avoid using deprecated heimdal functions in pam_krb5.

12 years ago- Apply binutils workaround on mips.mips as well. Though this TARGET_ARCH
stas [Sat, 24 Mar 2012 00:42:38 +0000 (00:42 +0000)]
- Apply binutils workaround on mips.mips as well.  Though this TARGET_ARCH
  is deprecated, tinderbox uses it.

12 years agoAs it turns out, mpi_cnfg.h already is included by mpt.h.
marius [Sat, 24 Mar 2012 00:37:56 +0000 (00:37 +0000)]
As it turns out, mpi_cnfg.h already is included by mpt.h.

12 years ago- Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here.
marius [Sat, 24 Mar 2012 00:30:17 +0000 (00:30 +0000)]
- Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here.
  Note that this driver additionally probes some device IDs for the most
  part not know to other MPT drivers, if at all. So rename the macros not
  present in mpi_cnfg.h to match the naming scheme in the latter and but
  suffix them with a _FB in order to not cause conflicts.
- Like mpt_set_config_regs(), comment out mpt_read_config_regs() as the
  content of the registers read isn't actually used and both functions
  aren't exactly up to date regarding the possible layouts of the BARs
  (these function might be helpful for debugging though, so don't remove
  them completely).
- Use DEVMETHOD_END.
- Use NULL rather than 0 for pointers.
- Remove an unusual check for the softc being NULL.
- Remove redundant zeroing of the softc.
- Remove an overly banal and actually partly incorrect as well as partly
  outdated comment regarding the allocation of the memory resource.

MFC after: 3 days

12 years agoMake libproc compilable for MIPS
gonzo [Fri, 23 Mar 2012 23:07:02 +0000 (23:07 +0000)]
Make libproc compilable for MIPS

12 years agoAdd handler for MIPS.options section
gonzo [Fri, 23 Mar 2012 22:55:37 +0000 (22:55 +0000)]
Add handler for MIPS.options section

12 years agoAdd define for MIPS.options
gonzo [Fri, 23 Mar 2012 22:52:23 +0000 (22:52 +0000)]
Add define for MIPS.options

12 years agoDisable IRIX compatibility flags for DWARF code generator. IRIX-compatible
gonzo [Fri, 23 Mar 2012 21:07:10 +0000 (21:07 +0000)]
Disable IRIX compatibility flags for DWARF code generator. IRIX-compatible
    DWARF code is not compatible with CTF tools

12 years agoFix typo.
trociny [Fri, 23 Mar 2012 20:18:48 +0000 (20:18 +0000)]
Fix typo.

MFC after: 3 days

12 years agoRevert ABI breakage in libsupc++.
theraven [Fri, 23 Mar 2012 20:10:56 +0000 (20:10 +0000)]
Revert ABI breakage in libsupc++.

Unfortunately, the ABI was broken upstream for the 4.2 release, which we
imported.  We then shipped the broken version for several years and certain
ports (e.g. libobjc2) depend on it, so we're stuck with it for now...

We should revisit this for 10.0, since we're allowed to break the ABI then, but
until then we should keep the ABI we shipped with 8.x and 9.x.

Reviewed by: kan
Approved by: dim (mentor)
MFC after: 1 week

12 years agoWhen displaying binary information show also osreldate.
trociny [Fri, 23 Mar 2012 20:09:21 +0000 (20:09 +0000)]
When displaying binary information show also osreldate.

Suggested by: kib
MFC after: 2 weeks

12 years agoAdd a sysctl to set and retrieve binary osreldate of another process.
trociny [Fri, 23 Mar 2012 20:05:41 +0000 (20:05 +0000)]
Add a sysctl to set and retrieve binary osreldate of another process.

Suggested by: kib
Reviewed by: kib
MFC after: 2 weeks

12 years agoMake default ABI for as(1) to be the same as target platform.
gonzo [Fri, 23 Mar 2012 19:37:45 +0000 (19:37 +0000)]
Make default ABI for as(1) to be the same as target platform.
This change makes object files compiled with default flags by
gcc and as compatible.

12 years agoUse suspend/resume methods provided by net80211. This ensures that the
bschmidt [Fri, 23 Mar 2012 19:32:30 +0000 (19:32 +0000)]
Use suspend/resume methods provided by net80211. This ensures that the
appropriate state handling takes place, not doing so results in the
device doing nothing until manual intervention.

Reviewed by: iwasaki
Tested by: iwasaki (iwi)
MFC after: 4 weeks

12 years agoAlso fix the parameter usage in set80211meshpeering().
bschmidt [Fri, 23 Mar 2012 18:12:25 +0000 (18:12 +0000)]
Also fix the parameter usage in set80211meshpeering().

Submitted by: Monthadar Al Jaberi
MFC after: 1 week
X-MFC after: r233328

12 years agoFix pmap_kextract prototype to align it with pmap.c change
gonzo [Fri, 23 Mar 2012 18:07:12 +0000 (18:07 +0000)]
Fix pmap_kextract prototype to align it with pmap.c change

12 years agoBefore jumping to application's entry point set ra == pc in order
gonzo [Fri, 23 Mar 2012 17:54:06 +0000 (17:54 +0000)]
Before jumping to application's entry point set ra == pc in order
    to let backtracing routine know to go no further.

12 years agoCall xpt_bus_register during attach context, then freeze and do not release
jimharris [Fri, 23 Mar 2012 16:28:11 +0000 (16:28 +0000)]
Call xpt_bus_register during attach context, then freeze and do not release
until domain discovery is complete.  This fixes an isci(4) bug on FreeBSD 7.x
where devices weren't always appearing after boot without an explicit rescan.

Sponsored by: Intel
Reported and tested by: <rpokala at panasas dot com>
Reviewed by: scottl
Approved by: scottl

12 years agoExpand contraction.
pluknet [Fri, 23 Mar 2012 16:24:07 +0000 (16:24 +0000)]
Expand contraction.

Spotted by: bjk

12 years agoDon't cast a bus address to a uint8_t pointer just to add an offset to
jhb [Fri, 23 Mar 2012 12:34:39 +0000 (12:34 +0000)]
Don't cast a bus address to a uint8_t pointer just to add an offset to
it.  Instead, add the offset directly to the bus address.

12 years agoRemove superfluous extern keywords.
kib [Fri, 23 Mar 2012 12:13:31 +0000 (12:13 +0000)]
Remove superfluous extern keywords.

MFC after:    2 weeks

12 years agoCentralize the calculation of the top source directory. This
kib [Fri, 23 Mar 2012 12:10:12 +0000 (12:10 +0000)]
Centralize the calculation of the top source directory.  This
simplifies the build of rtld with partial checkout, allowing to
override only one place to reference other tree.

Submitted by: bde
MFC after: 2 weeks

12 years agoImplement xstrdup() using strlen()/xmalloc()/memcpy() already
kib [Fri, 23 Mar 2012 12:04:44 +0000 (12:04 +0000)]
Implement xstrdup() using strlen()/xmalloc()/memcpy() already
presented in rtld, instead of pulling in libc strdup().

Submitted by:    bde
MFC after:    2 weeks

12 years agoWork around the following clang warning in mps(4):
dim [Fri, 23 Mar 2012 11:35:01 +0000 (11:35 +0000)]
Work around the following clang warning in mps(4):

  sys/dev/mps/mps_sas.c:861:1: error: function 'mpssas_discovery_timeout' is not needed and will not be emitted [-Werror,-Wunneeded-internal-declaration]
  mpssas_discovery_timeout(void *data)
  ^

Because the driver is obtained from upstream, we don't want to modify
it; just silence the warning instead, it is harmless.

MFC after: 3 days

12 years agoSilence alignment warnings from clang in libarchive's ppmd code (which
dim [Fri, 23 Mar 2012 11:18:07 +0000 (11:18 +0000)]
Silence alignment warnings from clang in libarchive's ppmd code (which
is actually third-party code).  Clang even warns about alignment issues
on x86, and the warnings are not needed there.

12 years agoUpdate IFCAP_* macro descriptions.
pluknet [Fri, 23 Mar 2012 10:39:50 +0000 (10:39 +0000)]
Update IFCAP_* macro descriptions.

Reviewed by: attilio (polling part, a previous version)
MFC after: 1 week

12 years agoClean up from the old kern.polling.
pluknet [Fri, 23 Mar 2012 10:33:24 +0000 (10:33 +0000)]
Clean up from the old kern.polling.

Reviewed by: attilio
MFC after: 1 week

12 years agoClean up of fs/fifofs include directory after fifo.h removal.
pluknet [Fri, 23 Mar 2012 10:12:35 +0000 (10:12 +0000)]
Clean up of fs/fifofs include directory after fifo.h removal.

Glanced by: kib

12 years agoMake utmpx(3) thread safe if we support TLS.
ed [Fri, 23 Mar 2012 08:26:31 +0000 (08:26 +0000)]
Make utmpx(3) thread safe if we support TLS.

Because the utmpx interface is generally not required to be thread-safe,
but it is nice to have, if easy to do so. Therefore don't make a mess
out of the code and only use it if __NO_TLS is not defined.

12 years ago- Actually fill the date of the Heimdal update.
stas [Fri, 23 Mar 2012 07:52:37 +0000 (07:52 +0000)]
- Actually fill the date of the Heimdal update.

12 years ago- Take krb5_verify_user.3.gz out of ObsoleteFiles as it's still being
stas [Fri, 23 Mar 2012 07:45:11 +0000 (07:45 +0000)]
- Take krb5_verify_user.3.gz out of ObsoleteFiles as it's still being
  installed.
- Add 32-bit compat old kerberos libraries to ObsoleteFiles as well.

Reported by: pluknet@

12 years agoCheck that scheme is not already registered. This may happens when a
ae [Fri, 23 Mar 2012 07:26:17 +0000 (07:26 +0000)]
Check that scheme is not already registered. This may happens when a
KLD is preloaded with loader(8) and leads to infinity loops.

Also do not return EEXIST error code from MOD_LOAD handler, because
we have undocumented(?) ability replace kernel's module with preloaded one.
And if we have so, then preloaded module will be initialized first.
Thus error in MOD_LOAD handler will be triggered for the kernel.

PR: kern/165573
MFC after: 3 weeks

12 years agoRemove archive_entry_*_w(3) entries from ObsoleteFiles.inc. Since the
pluknet [Fri, 23 Mar 2012 06:57:04 +0000 (06:57 +0000)]
Remove archive_entry_*_w(3) entries from ObsoleteFiles.inc.  Since the
recent libarchive import they are MLINK'ed again.

12 years agoDocument IFT_USB referenced by IFF_CANTCONFIG since the previous change,
pluknet [Fri, 23 Mar 2012 06:06:37 +0000 (06:06 +0000)]
Document IFT_USB referenced by IFF_CANTCONFIG since the previous change,
so that ifnet(9) is self contained.

MFC after: 1 week

12 years agoUpdate IFF_* macro descriptions.
pluknet [Fri, 23 Mar 2012 06:01:16 +0000 (06:01 +0000)]
Update IFF_* macro descriptions.

MFC after: 1 week

12 years ago- Add new kerberos libraries to the list of optional obsolete files.
stas [Fri, 23 Mar 2012 03:43:04 +0000 (03:43 +0000)]
- Add new kerberos libraries to the list of optional obsolete files.

12 years ago- Do not build libcom_err and compile_et when kerberos is disabled. They
stas [Fri, 23 Mar 2012 03:16:35 +0000 (03:16 +0000)]
- Do not build libcom_err and compile_et when kerberos is disabled.  They
  depends on several heimdal libraries and not used by anything but kerberos
  tools.

12 years agoAdd pseudo-device for handling PMC interrupts and link everything
gonzo [Fri, 23 Mar 2012 00:11:54 +0000 (00:11 +0000)]
Add pseudo-device for handling PMC interrupts and link everything
    PMC-related to build

12 years agoAdd Octeon-related parts to libpmc
gonzo [Fri, 23 Mar 2012 00:10:21 +0000 (00:10 +0000)]
Add Octeon-related parts to libpmc

12 years agoAdd Octeon PMC hardware backend
gonzo [Fri, 23 Mar 2012 00:09:27 +0000 (00:09 +0000)]
Add Octeon PMC hardware backend

12 years agoAdd list of Octeon's PMC counters obtained from cvmx-core.h
gonzo [Fri, 23 Mar 2012 00:04:09 +0000 (00:04 +0000)]
Add list of Octeon's PMC counters obtained from cvmx-core.h

12 years agoAdd Octeon class and CPU type
gonzo [Fri, 23 Mar 2012 00:03:26 +0000 (00:03 +0000)]
Add Octeon class and CPU type

12 years agoSetup fake MODINFO variables for octeon kernel
gonzo [Fri, 23 Mar 2012 00:01:09 +0000 (00:01 +0000)]
Setup fake MODINFO variables for octeon kernel

12 years agoAdd some further debugging to try and aid tracking down what the state of
adrian [Thu, 22 Mar 2012 21:48:36 +0000 (21:48 +0000)]
Add some further debugging to try and aid tracking down what the state of
things were just before a full software queue is drained.

12 years agoSprinkle some style(9) things around.
adrian [Thu, 22 Mar 2012 21:47:14 +0000 (21:47 +0000)]
Sprinkle some style(9) things around.