]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC of tzdata2011c, r219411
edwin [Tue, 8 Mar 2011 21:14:02 +0000 (21:14 +0000)]
MFC of tzdata2011c, r219411

- No leapsecond in June 2011
- Add and update timezones for America/Juneau, America/Sitka,
  America/Metlakatla
- Change of Summer time to Winter time in Chili happens in April
  2011, not in March 2011.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219412 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r196526 by delphij:
jh [Tue, 8 Mar 2011 17:41:07 +0000 (17:41 +0000)]
MFC r196526 by delphij:

Add a missing .El.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r201773:
jh [Tue, 8 Mar 2011 17:27:36 +0000 (17:27 +0000)]
MFC r201773:

- Change the type of size_max to u_quad_t because its value is converted
  with vfs_scanopt(9) using the "%qu" format string.
- Limit the maximum value of size_max to (SIZE_MAX - PAGE_SIZE) to
  prevent overflow in howmany() macro.

PR: kern/141194

MFC r202187:

- Fix some style bugs in tmpfs_mount().
- Remove a stale comment about tmpfs_mem_info() 'total' argument.

MFC r202708:

- Change the type of nodes_max to u_int and use "%u" format string to
  convert its value.
- Set default tm_nodes_max to min(pages + 3, UINT32_MAX). It's more
  reasonable than the old four nodes per page (with page size 4096) because
  non-empty regular files always use at least one page. This fixes possible
  overflow in the calculation.
- Don't allow more than tm_nodes_max nodes allocated in tmpfs_alloc_node().

PR: kern/138367

git-svn-id: svn://svn.freebsd.org/base/stable/8@219401 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r218293
jkim [Mon, 7 Mar 2011 18:00:58 +0000 (18:00 +0000)]
MFC: r218293

Do not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.
When the basehome does not exist, it creates all intermediate directories as
required, which is logically equivalent to mkdir(1) with -m and -p options.
However, it modifies all intermediate directories, not just the final home
directory unlike mkdir.  This problem was introduced in two revisions, i.e.,
r1.59 (SVN r167919) and r1.60 (SVN r168044).

git-svn-id: svn://svn.freebsd.org/base/stable/8@219382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218970,219240:
jhb [Mon, 7 Mar 2011 17:15:10 +0000 (17:15 +0000)]
MFC 218970,219240:
Use umtx_key objects to uniquely identify futexes.  Private futexes in
different processes that happen to use the same user address in the
separate processes will now be treated as distinct futexes rather than the
same futex.  We can now honor shared futexes properly by mapping them to a
AUTO_SHARED umtx_key.  Private futexes use THREAD_SHARED umtx_key objects.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219381 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215687:
jh [Mon, 7 Mar 2011 15:24:35 +0000 (15:24 +0000)]
MFC r215687:

Use g_eventlock to protect against losing wakeups in the g_event process
and replace tsleep(9) with msleep(9) which doesn't use a timeout. The
previously used timeout caused the event process to wake up ten times
per second on an idle system.

one_event() is now called with the topology lock held and it returns
with both the topology and event locks held when there are no more
events in the queue.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219378 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219158:
delphij [Mon, 7 Mar 2011 09:04:06 +0000 (09:04 +0000)]
MFC r219158:

Correct a typo.

PR: bin/155175
Submitted by: Peter J. Philipp <pjp centroid.eu>

git-svn-id: svn://svn.freebsd.org/base/stable/8@219367 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219102:
yongari [Mon, 7 Mar 2011 00:42:22 +0000 (00:42 +0000)]
MFC r219102:
  Make sure changing ownership of RX descriptor to be done as last
  operation.  Previously ownership was transferred to hardware before
  setting address of new RX buffer such that it was possible for
  hardware to use wrong RX buffer address.
  While here keep compiler from re-ordering instructions by declaring
  descriptor members volatile. Memory barriers would do the same job
  but volatile is supposed to be cheaper than using memory barriers,
  especially on MP systems.

  Submitted by: marius

git-svn-id: svn://svn.freebsd.org/base/stable/8@219356 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r208927 by mjacob:
jh [Sun, 6 Mar 2011 18:43:59 +0000 (18:43 +0000)]
MFC r208927 by mjacob:

Try and narrow the gap in which you act on an event that has been canceled.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219345 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r218468
marius [Sun, 6 Mar 2011 11:56:07 +0000 (11:56 +0000)]
MFC: r218468

Set td_kstack_pages for thread0.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219334 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216013, r216083
marius [Sun, 6 Mar 2011 11:51:39 +0000 (11:51 +0000)]
MFC: r216013, r216083

Several chipset drivers alter parameters relevant for the DMA tag creation,
i.e. alignment, max_address, max_iosize and segsize (only max_address is
thought to have an negative impact regarding this issue though), after
calling ata_dmainit() either directly or indirectly so these values have
no effect or at least no effect on the DMA tags and the defaults are used
for the latter instead. So change the drivers to set these parameters
up-front and ata_dmainit() to honor them.

Reviewd by: mav

git-svn-id: svn://svn.freebsd.org/base/stable/8@219333 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years ago- Use the correct DMA tag/map pair for synchronize the FC scratch area.
marius [Sun, 6 Mar 2011 11:43:02 +0000 (11:43 +0000)]
- Use the correct DMA tag/map pair for synchronize the FC scratch area.
- Allocate coherent DMA memory for the request/response queue area and
  and the FC scratch area.

These changes allow isp(4) to work properly on sparc64 with usage of the
IOMMU streaming buffers enabled.

Approved by: mjacob

git-svn-id: svn://svn.freebsd.org/base/stable/8@219332 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218896 (share/examples part):
mm [Sun, 6 Mar 2011 10:32:58 +0000 (10:32 +0000)]
MFC r218896 (share/examples part):

Add opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.
- add "sse3" to MACHINE_CPU for the new cpu types
- for i386, default to CPUTYPE=prescott for the new cpu types

PR: gnu/154906
Discussed with: kib, kan, dim

git-svn-id: svn://svn.freebsd.org/base/stable/8@219331 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218896:
mm [Sun, 6 Mar 2011 09:02:35 +0000 (09:02 +0000)]
MFC r218896:

Add opteron-sse3, athlon64-sse3 and k8-sse3 cpu types to bsd.cpu.mk.
- add "sse3" to MACHINE_CPU for the new cpu types
- for i386, default to CPUTYPE=prescott for the new cpu types

PR: gnu/154906
Discussed with: kib, kan, dim

git-svn-id: svn://svn.freebsd.org/base/stable/8@219330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218895:
mm [Sun, 6 Mar 2011 09:01:29 +0000 (09:01 +0000)]
MFC r218895:

Backport svn r124339 from gcc 4.3 and add opteron-sse3, athlon64-sse3
and k8-sse3 cpu-types for -march=/-mtune= gcc options.
These new cpu-types include the SSE3 instruction set that is supported
by all newer AMD Athlon 64 and Opteron processors.
All three cpu-types are supported by clang and all gcc versions
starting with 4.3 SVN rev 124339 (at that time GPLv2 licensed).

PR: gnu/154906
Discussed with: kib, kan, dim
Obtained from: gcc 4.3 (r124339, GPLv2 licensed)

git-svn-id: svn://svn.freebsd.org/base/stable/8@219329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216137:
das [Sun, 6 Mar 2011 08:52:23 +0000 (08:52 +0000)]
MFC r216137:
  Disable gcc's built-in rint() function when compiling s_nearbyint.c.
  It results in incorrect optimizations that break nearbyint().

git-svn-id: svn://svn.freebsd.org/base/stable/8@219325 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoBump __FreeBSD_version for the MFC of log2(), for the benefit of ports
das [Sun, 6 Mar 2011 08:50:15 +0000 (08:50 +0000)]
Bump __FreeBSD_version for the MFC of log2(), for the benefit of ports
such as opencity and inkscape that have workarounds for the lack of a
log2() in the base system.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC
das [Sun, 6 Mar 2011 08:49:44 +0000 (08:49 +0000)]
MFC
  r216210: refactor log(3)
  r216211: add log2(3) and log2f(3)

git-svn-id: svn://svn.freebsd.org/base/stable/8@219323 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219178:
kib [Sat, 5 Mar 2011 09:42:00 +0000 (09:42 +0000)]
MFC r219178:
Fix a bug in the result of manual assembly.

PR: kern/155118

git-svn-id: svn://svn.freebsd.org/base/stable/8@219303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFHead 219059:
glebius [Sat, 5 Mar 2011 08:56:42 +0000 (08:56 +0000)]
MFHead 219059:
  Connect uep.ko to build

  PR:           kern/155044
  Submitted by: Carl <k0802647 telus.net>

git-svn-id: svn://svn.freebsd.org/base/stable/8@219302 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218965, 219055:
brucec [Sat, 5 Mar 2011 04:27:02 +0000 (04:27 +0000)]
MFC r218965, 219055:

Fix typos - remove duplicate "is".

PR: docs/154934

git-svn-id: svn://svn.freebsd.org/base/stable/8@219300 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219081:
brucec [Sat, 5 Mar 2011 04:15:46 +0000 (04:15 +0000)]
MFC r219081:

Merge fix from r1.108 of NetBSD's usr.bin/ftp/main.c:

Only attempt to el_parse() a command unknown by the default parser
if editing is enabled.

PR:           bin/100089

git-svn-id: svn://svn.freebsd.org/base/stable/8@219297 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218535:
dougb [Sat, 5 Mar 2011 04:06:12 +0000 (04:06 +0000)]
MFC r218535:

Synthesize the change from NetBSD's 1.33:

"Do not crash if a date cannot be represented (localtime returning
NULL), use the Epoch value instead."

Obtained from:  njoly@NetBSD.org

git-svn-id: svn://svn.freebsd.org/base/stable/8@219294 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219096, r219126:
brucec [Sat, 5 Mar 2011 03:46:24 +0000 (03:46 +0000)]
MFC r219096, r219126:

r177626 broke some sentences. Reword them to avoid the duplicate "in".

PR: 121490

git-svn-id: svn://svn.freebsd.org/base/stable/8@219291 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218961:
dougb [Sat, 5 Mar 2011 02:11:23 +0000 (02:11 +0000)]
MFC r218961:

Update how accounting log files are rotated, clean up the rc.d script
a bit.

MFC r218986:

The new accounting file needs to be 644 so that unprivileged users
can use lastcomm(1)

git-svn-id: svn://svn.freebsd.org/base/stable/8@219283 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r219046
jkim [Fri, 4 Mar 2011 22:59:14 +0000 (22:59 +0000)]
MFC: r219046

Set C1 "I/O then Halt" capability bit for Intel EIST.  Some broken BIOSes
refuse to load external SSDTs if this bit is unset for _PDC.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218966, r219124:
brucec [Fri, 4 Mar 2011 20:26:35 +0000 (20:26 +0000)]
MFC r218966, r219124:

Change the return type of vmspace_swap_count to a long to match the other
vmspace_*_count functions.

While here, clean up some style(9) issues.

PR: kern/152200

git-svn-id: svn://svn.freebsd.org/base/stable/8@219273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219031:
pluknet [Fri, 4 Mar 2011 12:18:50 +0000 (12:18 +0000)]
MFC r219031:

 Fix division by zero, causing floating point exception in a drive progress
 command.

Approved by: avg (mentor), kib (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@219263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218969:
jhb [Thu, 3 Mar 2011 22:08:51 +0000 (22:08 +0000)]
MFC 218969:
Expose the umtx_key structure and API to the rest of the kernel.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219254 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212067, r214623
mm [Thu, 3 Mar 2011 21:56:08 +0000 (21:56 +0000)]
MFC r212067, r214623

MFC r212067 (pjd):
Eliminate confusing while () loop. In the first version of the code it was
there to avoid gotos, but in the current version it serves no purpose.

MFC r214623 (pjd):
Fix ztest when it is executed by just 'ztest' and not by full path
'/usr/bin/ztest'.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219253 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218968:
jhb [Thu, 3 Mar 2011 20:13:44 +0000 (20:13 +0000)]
MFC 218968:
Properly handle BARs bigger than 4G.  The '1' was treated as an int
causing the size calculation to be truncated to the size of an int
(32-bits on all current architectures).

git-svn-id: svn://svn.freebsd.org/base/stable/8@219250 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218777:
jhb [Thu, 3 Mar 2011 19:57:38 +0000 (19:57 +0000)]
MFC 218777:
Save a copy of errno before invoking syslog() if accept() or select() fail.
syslog() can trash the errno value causing nfsd to exit for non-fatal
errors like ECONNABORTED from accept().

git-svn-id: svn://svn.freebsd.org/base/stable/8@219248 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218707: Properly check for errors from waitpid().
jhb [Thu, 3 Mar 2011 19:55:15 +0000 (19:55 +0000)]
MFC 218707: Properly check for errors from waitpid().

git-svn-id: svn://svn.freebsd.org/base/stable/8@219246 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216487,217754,218524:
jhb [Thu, 3 Mar 2011 18:52:11 +0000 (18:52 +0000)]
MFC 216487,217754,218524:
- Pass JFLAG as JFLAG from tinderbox to universe.
- For `make tinderbox` there is no need to print the extra commands.
- Add a new UNIVERSE_TARGET variable for 'make universe'.  If it is set,
  then that target is invoked for each architecture rather than the
  default action of building world and kernels for each architecture.
- Add a 'make toolchains' wrapper which uses UNIVERSE_TARGET to build
  toolchains for all architectures.
- Document JFLAG, MAKE_JUST_KERNELS, and MAKE_JUST_WORLDS variables for
  'make universe'.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219245 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217733: Properly document what the top-level `make tinderbox` does.
jhb [Thu, 3 Mar 2011 18:49:46 +0000 (18:49 +0000)]
MFC 217733: Properly document what the top-level `make tinderbox` does.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219244 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 200597,200599:
jhb [Thu, 3 Mar 2011 18:16:35 +0000 (18:16 +0000)]
MFC 200597,200599:
Docmuent NO_KERNEL{CLEAN,CONFIG,DEPEND,OBJ} as necessary.  Update
documentation on KERNFAST meaning.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219239 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216489:
jh [Thu, 3 Mar 2011 17:12:24 +0000 (17:12 +0000)]
MFC r216489:

If dlclose() is called recursively from a _fini() function, the inner
dlclose() call may unload the object of the outer call prematurely
because objects are unreferenced before _fini() calls.

Fix this by unreferencing objects after calling objlist_call_fini() in
dlclose(). Therefore objlist_call_fini() now calls the fini function if
the reference count of an object is 1. In addition we must restart the
list_fini traversal after every _fini() call because another dlclose()
call might have modified the reference counts.

Add an XXX comment to objlist_call_fini() about possible race with
dlopen().

PR: 133246, 149464

git-svn-id: svn://svn.freebsd.org/base/stable/8@219237 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218290: Correct include path.
jhb [Thu, 3 Mar 2011 17:10:48 +0000 (17:10 +0000)]
MFC 218290: Correct include path.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219235 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 200761,218272:
jhb [Thu, 3 Mar 2011 17:04:57 +0000 (17:04 +0000)]
MFC 200761,218272:
Always assert that the turnstile chain lock is held in turnstile_wait()
and remove a duplicate hash lookup.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 218270:
jhb [Thu, 3 Mar 2011 16:58:58 +0000 (16:58 +0000)]
MFC 218270:
Use M_WAITOK rather than M_NOWAIT when creating taskqueues via the
TASKQUEUE_DEFINE macros.  All the places that use these macros to create
taskqueues assume that the operation succeeds.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219231 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge r211786 from head to stable/8:
rwatson [Thu, 3 Mar 2011 16:57:59 +0000 (16:57 +0000)]
Merge r211786 from head to stable/8:

  Port dtruss to FreeBSD.

  Sponsored by: The FreeBSD Foundation

Reported by: Nikolay Denev <ndenev at gmail.com>
Original commit by: rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@219230 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 216074[1], 219086:
gjb [Thu, 3 Mar 2011 14:31:40 +0000 (14:31 +0000)]
MFC 216074[1], 219086:

Fix device name in usb_quirk(4).

PR: 155074
Obtained from: ru [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@219227 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: revision 218843
nyan [Thu, 3 Mar 2011 11:52:07 +0000 (11:52 +0000)]
MFC: revision 218843

  To avoid excessive code duplication create wrapper for fill regs
  from stack frame.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219226 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoDelete wrong mergepoints.
mm [Thu, 3 Mar 2011 09:49:03 +0000 (09:49 +0000)]
Delete wrong mergepoints.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219220 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219001:
mm [Thu, 3 Mar 2011 09:44:30 +0000 (09:44 +0000)]
MFC r219001:
Update xz to release 5.0.1

git-svn-id: svn://svn.freebsd.org/base/stable/8@219219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoUnbreak the build. pksignal added by r209592.
dchagin [Thu, 3 Mar 2011 05:56:29 +0000 (05:56 +0000)]
Unbreak the build. pksignal added by r209592.

Pointyhat to: dchagin

git-svn-id: svn://svn.freebsd.org/base/stable/8@219215 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r218685, r218687
jkim [Thu, 3 Mar 2011 00:43:35 +0000 (00:43 +0000)]
MFC: r218685, r218687

Copy just enough data for the resource type.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219213 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r217515, r217519, r217539
jkim [Thu, 3 Mar 2011 00:24:55 +0000 (00:24 +0000)]
MFC: r217515, r217519, r217539

Add reader/writer lock around mem_range_attr_get() and mem_range_attr_set().
Compile sys/dev/mem/memutil.c for all supported platforms and remove now
unnecessary dev_mem_md_init().  Consistently define mem_range_softc from
mem.c for all platforms.  Add missing #include guards for machine/memdev.h
and sys/memrange.h.  Clean up some nearby style(9) nits.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219212 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoDirect commit: fix cryptodev module build when COMPAT_FREEBSD32 option
dchagin [Wed, 2 Mar 2011 22:44:04 +0000 (22:44 +0000)]
Direct commit: fix cryptodev module build when COMPAT_FREEBSD32 option
is enabled. To avoid header pollution put trapframe declaration here.

Noticed by: kib
Pointyhat to: me

git-svn-id: svn://svn.freebsd.org/base/stable/8@219211 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217239:
jhb [Wed, 2 Mar 2011 21:50:59 +0000 (21:50 +0000)]
MFC 217239:
Add a nested include of <sys/linker_set.h> to make the sysctl(9) manpage
accurate.  <sys/linker_set.h> is one of the very few headers similar to
<sys/queue.h> for which nested includes is allowed.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219207 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218879:
dchagin [Wed, 2 Mar 2011 20:08:52 +0000 (20:08 +0000)]
MFC r218879:
Do not clobber %rdx.
Before calling vfork() syscall the linux user-space stores the current PID
in the %rdx and restore it when the parent process leaves the kernel.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219205 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218744:
dchagin [Wed, 2 Mar 2011 20:04:54 +0000 (20:04 +0000)]
MFC r218744:
To avoid excessive code duplication create wrapper for fill regs
from stack frame. Change the trap() code to use newly created function
instead of explicit regs assignment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219204 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218720:
dchagin [Wed, 2 Mar 2011 20:02:52 +0000 (20:02 +0000)]
MFC r218720:
For realtime signals fill the sigval value.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219203 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218719 (by hand, depends on r209592):
dchagin [Wed, 2 Mar 2011 20:01:24 +0000 (20:01 +0000)]
MFC r218719 (by hand, depends on r209592):
Make a linux_rt_sigtimedwait() system call is actually working.

1) Translate the native signal number in the appropriate Linux signal.
2) Remove bogus code, which can lead to a panic as it calls
   kern_sigtimedwait with the same ksiginfo.
3) Return the corresponding signal number.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219202 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218718:
dchagin [Wed, 2 Mar 2011 19:49:37 +0000 (19:49 +0000)]
MFC r218718:
Style(9) fix. Wrap long lines in linux_rt_sigtimedwait().

git-svn-id: svn://svn.freebsd.org/base/stable/8@219201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218717:
dchagin [Wed, 2 Mar 2011 19:48:19 +0000 (19:48 +0000)]
MFC r218717:
Put the macro declaration in the relevant include file for future use.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219200 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218686:
dchagin [Wed, 2 Mar 2011 19:46:45 +0000 (19:46 +0000)]
MFC r218686:
Style(9) fix. Do not initialize variables in the declarations.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219199 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218658, r218668:
dchagin [Wed, 2 Mar 2011 19:45:50 +0000 (19:45 +0000)]
MFC r218658, r218668:
Sort include files in the alphabetical order.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219198 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218654, r218655:
dchagin [Wed, 2 Mar 2011 19:43:31 +0000 (19:43 +0000)]
MFC r218654, r218655:
Stop printing the LOR, as this is expected behavior.
Remove comment about 'ftlk' LOR.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219197 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218621:
dchagin [Wed, 2 Mar 2011 19:41:09 +0000 (19:41 +0000)]
MFC r218621:
Rename used_requeue and use it as bitwise field to store more flags.
Reimplement used_requeue logic with LINUX_XDEPR_REQUEUEOP flag.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219196 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218618:
dchagin [Wed, 2 Mar 2011 19:39:42 +0000 (19:39 +0000)]
MFC r218618:
Slightly rewrite linux_fork:

1) Remove bogus error checking.
2) A new process exit from kernel through fork_trampoline(),
   so remove bogus check.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219195 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218617:
dchagin [Wed, 2 Mar 2011 19:38:13 +0000 (19:38 +0000)]
MFC r218617:
Remove bogus include <machine/frame.h>

git-svn-id: svn://svn.freebsd.org/base/stable/8@219194 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218616:
dchagin [Wed, 2 Mar 2011 19:36:06 +0000 (19:36 +0000)]
MFC r218616:
Move linux_clone(), linux_fork(), linux_vfork() to a MI path.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219193 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218613:
dchagin [Wed, 2 Mar 2011 19:33:46 +0000 (19:33 +0000)]
MFC r218613:
In preparation for moving linux_clone() to a MI path
introduce linux_set_upcall_kse() which is used for MD works.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219192 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218612:
dchagin [Wed, 2 Mar 2011 19:31:53 +0000 (19:31 +0000)]
MFC r218612:
In preparation for moving linux_clone () to a MI path
move the TLS code in a separate function.

Use function parameter instead of direct using register.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219191 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217858: Remove dead code.
jhb [Wed, 2 Mar 2011 19:29:24 +0000 (19:29 +0000)]
MFC 217858: Remove dead code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219189 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 217805:
jhb [Wed, 2 Mar 2011 19:27:01 +0000 (19:27 +0000)]
MFC 217805:
Fix a LOR by dropping the global ifnet locks while allocating a new ifnet
table in if_grow().  The order of the SYSINIT's for ifnet state were swapped
so that the various locks were initialized before being used.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219188 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r216634, r216673
jkim [Wed, 2 Mar 2011 19:09:49 +0000 (19:09 +0000)]
MFC: r216634, r216673

Improve PCB flags handling and make it more robust.  Add two new functions
for manipulating pcb_flags.  These inline functions are very similar to
atomic_set_int(9) and atomic_clear_int(9) but without unnecessary LOCK
prefix for SMP.  Add comments about the rationale.  Use these functions
wherever possible.  Although there are some places where it is not strictly
necessary (e.g., a PCB is copied to create a new PCB), it is done across
the board for sake of consistency.  Turn pcb_full_iret into a PCB flag as
it is safe now.  Move rarely used fields before pcb_flags and reduce size
of pcb_flags to four bytes.  Fix some style(9) nits in pcb.h while I am in
the neighborhood.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219187 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoFix kernel build with MFC of r215706:
netchild [Wed, 2 Mar 2011 13:06:47 +0000 (13:06 +0000)]
Fix kernel build with MFC of r215706:
  Fix linux kernel module breakage introduced in r215675, by including
  <sys/sysent.h>.

Pointyhat to: netchild
Noticed by: kib

git-svn-id: svn://svn.freebsd.org/base/stable/8@219176 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r215664:
netchild [Wed, 2 Mar 2011 09:53:13 +0000 (09:53 +0000)]
MFC r215664:
  By using the 32-bit Linux version of Sun's Java Development Kit 1.6
  on FreeBSD (amd64), invocations of "javac" (or "java") eventually
  end with the output of "Killed" and exit code 137.

  This is caused by:
  1. After calling exec() in multithreaded linux program threads are not
     destroyed and continue running. They get killed after program being
     executed finishes.

  2. linux_exit_group doesn't return correct exit code when called not
     from group leader. Which happens regularly using sun jvm.

  The submitters fix this in a similar way to how NetBSD handles this.

  I took the PRs away from dchagin, who seems to be out of touch of
  this since a while (no response from him).

  The patches committed here are from [2], with some little modifications
  from me to the style.

  PR:                141439 [1], 144194 [2]
  Submitted by:        Stefan Schmidt <stefan.schmidt@stadtbuch.de>, gk
  Reviewed by:        rdivacky (in april 2010)

MFC r215675:
  Do not take the process lock. The assignment to u_short inside the
  properly aligned structure is atomic on all supported architectures, and
  the thread that should see side-effect of assignment is the same thread
  that does assignment.

  Use a more appropriate conditional to detect the linux ABI.

  Suggested by:        kib

git-svn-id: svn://svn.freebsd.org/base/stable/8@219173 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRegen for r219171.
dchagin [Wed, 2 Mar 2011 06:24:46 +0000 (06:24 +0000)]
Regen for r219171.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219172 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218610:
dchagin [Wed, 2 Mar 2011 06:23:19 +0000 (06:23 +0000)]
MFC r218610:
The fourth argument of linux_clone is a pointer to the TLS.
Change clone syscall definition to match actual linux one.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219171 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218609:
dchagin [Wed, 2 Mar 2011 06:22:18 +0000 (06:22 +0000)]
MFC r218609:
Remove unused since r134586 thr_exit1() declaration.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219170 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218646:
dchagin [Wed, 2 Mar 2011 06:21:21 +0000 (06:21 +0000)]
MFC r218646:
The bitset field of freshly created futex should be initialized
explicity. Otherwise, REQUEUE operations fails.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219169 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218118:
dchagin [Wed, 2 Mar 2011 06:19:31 +0000 (06:19 +0000)]
MFC r218118:
Yet another unimplemented futex operation, print out about it.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219168 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218117:
dchagin [Wed, 2 Mar 2011 06:18:21 +0000 (06:18 +0000)]
MFC r218117:
Implement a futex BITSET op.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219167 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRegen for r219165.
dchagin [Wed, 2 Mar 2011 06:13:03 +0000 (06:13 +0000)]
Regen for r219165.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219166 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218101:
dchagin [Wed, 2 Mar 2011 06:11:41 +0000 (06:11 +0000)]
MFC r218101:
Change linux futex syscall definition to match actual linux one.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219165 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218100:
dchagin [Wed, 2 Mar 2011 06:09:52 +0000 (06:09 +0000)]
MFC r218100:
The kern_wait() code already removes the SIGCHLD signal for the waited
process. Removing other SIGCHLD signals is not needed and may cause
problems.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218059:
dchagin [Wed, 2 Mar 2011 06:08:42 +0000 (06:08 +0000)]
MFC r218059:
Fix my style(9) bg introduced in r218028.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219163 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218031:
dchagin [Wed, 2 Mar 2011 06:06:38 +0000 (06:06 +0000)]
MFC r218031:
Style(9) fixes.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218030:
dchagin [Wed, 2 Mar 2011 06:03:54 +0000 (06:03 +0000)]
MFC r218030:
Implement a variation of the linux_common_wait() which should
be used by linuxolator itself.

Move linux_wait4() to MD path as it requires native struct
rusage translation to struct l_rusage on linux32/amd64.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219161 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218028:
dchagin [Wed, 2 Mar 2011 06:01:49 +0000 (06:01 +0000)]
MFC r218028:
To avoid excessive code duplication move struct rusage translation
to a separate function.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219160 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218972:
kib [Wed, 2 Mar 2011 00:36:28 +0000 (00:36 +0000)]
MFC r218972:
Move the  max_threads_per_proc and max_threads_hits variables to the
file where they are used. Declare the kern.threads sysctl node at the
same location. Since no external use for the variables exists, make them
static.

MFC r218976 (by pluknet):
Clean up the now unused #include statement.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219159 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRegen.
kib [Tue, 1 Mar 2011 21:52:24 +0000 (21:52 +0000)]
Regen.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219156 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210431:
kib [Tue, 1 Mar 2011 21:51:32 +0000 (21:51 +0000)]
MFC r210431:
Remove the linux_exec_copyin_args(), freebsd32_exec_copyin_args() may
serve as well. COMPAT_FREEBSD32 is a prerequisite for COMPAT_LINUX32.

MFC r210451:
Use forward declartion for enum uio_seg in imgact.h. This allows to remove
inclusion of sys/uio.h from the header.

MFC r210498:
Revert r210451, and the similar part of the r210431. The forward-declaration
for the enum tag when enum definition is not complete is not allowed by
C99, and is gcc extension.

MFC r210501:
Remove unneeded includes.

Requested by: dchagin

git-svn-id: svn://svn.freebsd.org/base/stable/8@219155 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of 219149, tzdata2011b:
edwin [Tue, 1 Mar 2011 21:29:00 +0000 (21:29 +0000)]
MFC of 219149, tzdata2011b:

USA/Mercer County, North Dakota - Moved from Mountain time to Central time.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218005:
dchagin [Tue, 1 Mar 2011 20:48:03 +0000 (20:48 +0000)]
MFC r218005:
Style(9) fix.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217896:
dchagin [Tue, 1 Mar 2011 20:44:14 +0000 (20:44 +0000)]
MFC r217896:
Add macro to test the sv_flags of any process. Change some places to test
the flags instead of explicit comparing with address of known sysentvec
structures.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217743:
dchagin [Tue, 1 Mar 2011 20:27:02 +0000 (20:27 +0000)]
MFC r217743:

Style(9) fix.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219143 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217914:
yongari [Tue, 1 Mar 2011 00:11:44 +0000 (00:11 +0000)]
MFC r217914:
  Document newly added tunables.
   hw.re.intr_filter
   hw.re.msix_disable
   dev.re.%d.int_rx_mod

git-svn-id: svn://svn.freebsd.org/base/stable/8@219118 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218760:
yongari [Tue, 1 Mar 2011 00:07:38 +0000 (00:07 +0000)]
MFC r218760:
  Add initial support for RTL8401E PCIe Fast Ethernet.

  PR: 154789

git-svn-id: svn://svn.freebsd.org/base/stable/8@219116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218289:
yongari [Tue, 1 Mar 2011 00:04:34 +0000 (00:04 +0000)]
MFC r218289:
  Disable TX IP checksum offloading for RTL8168C controllers.  The
  controller in question generates frames with bad IP checksum value
  if packets contain IP options.  For instance, packets generated by
  ping(8) with record route option have wrong IP checksum value. The
  controller correctly computes checksum for normal TCP/UDP packets
  though.
  There are two known RTL8168/8111C variants in market and the issue
  I observed happened on RL_HWREV_8168C_SPIN2. I'm not sure
  RL_HWREV_8168C also has the same issue but it would be better to
  assume it has the same issue since they shall share same core.
  RTL8102E which is supposed to be released at the time of
  RTL8168/8111C announcement does not have the issue.

  Tested by: Konstantin V. Krotov ( kkv <> insysnet dot ru )

git-svn-id: svn://svn.freebsd.org/base/stable/8@219114 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217911:
yongari [Tue, 1 Mar 2011 00:01:34 +0000 (00:01 +0000)]
MFC r217911:
  Add support for RTL8105E PCIe Fast Ethernet controller. It seems
  the controller has a kind of embedded controller/memory and vendor
  applies a large set of magic code via undocumented PHY registers in
  device initialization stage. I guess it's a firmware image for the
  embedded controller in RTL8105E since the code is too big compared
  to other DSP fixups. However I have no idea what that magic code
  does and what's purpose of the embedded controller. Fortunately
  driver seems to still work without loading the firmware.

  While I'm here change device description of RTL810xE controller.

  H/W donated by: Realtek Semiconductor Corp.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217902:
yongari [Mon, 28 Feb 2011 23:41:27 +0000 (23:41 +0000)]
MFC r217902:
  Do not use interrupt taskqueue on controllers with MSI/MSI-X
  capability. One of reason using interrupt taskqueue in re(4) was
  to reduce number of TX/RX interrupts under load because re(4)
  controllers have no good TX/RX interrupt moderation mechanism.
  Basic TX interrupt moderation is done by hardware for most
  controllers but RX interrupt moderation through undocumented
  register showed poor RX performance so it was disabled in r215025.
  Using taskqueue to handle RX interrupt greatly reduced number of
  interrupts but re(4) consumed all available CPU cycles to run the
  taskqueue under high TX/RX network load.  This can happen even with
  RTL810x fast ethernet controller and I believe this is not
  acceptable for most systems.

  To mitigate the issue, use one-shot timer register to moderate RX
  interrupts. The timer register provides programmable one-shot timer
  and can be used to suppress interrupt generation. The timer runs at
  125MHZ on PCIe controllers so the minimum time allowed for the
  timer is 8ns. Data sheet says the register is 32 bits but
  experimentation shows only lower 13 bits are valid so maximum time
  that can be programmed is 65.528us. This yields theoretical maximum
  number of RX interrupts that could be generated per second is about
  15260. Combined with TX completion interrupts re(4) shall generate
  less than 20k interrupts. This number is still slightly high
  compared to other intelligent ethernet controllers but system is
  very responsive even under high network load.

  Introduce sysctl variable dev.re.%d.int_rx_mod that controls amount
  of time to delay RX interrupt processing in units of us. Value 0
  completely disables RX interrupt moderation. To provide old
  behavior for controllers that have MSI/MSI-X capability, introduce
  a new tunable hw.re.intr_filter. If the tunable is set to non-zero
  value, driver will use interrupt taskqueue. The default value of
  the tunable is 0. This tunable has no effect on controllers that
  has no MSI/MSI-X capability or if MSI/MSI-X is explicitly disabled
  by administrator.

  While I'm here cleanup interrupt setup/teardown since re(4) uses
  single MSI/MSI-X message at this moment.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219110 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217868:
yongari [Mon, 28 Feb 2011 23:36:03 +0000 (23:36 +0000)]
MFC r217868:
  Remove TX taskqueue and directly invoke re_start in interrupt task.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219108 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMerge userspace DTrace support from head to stable/8:
rwatson [Mon, 28 Feb 2011 23:28:35 +0000 (23:28 +0000)]
Merge userspace DTrace support from head to stable/8:

r209721:

  Merge from vendor-sys/opensolaris:
  * add fasttrap files

r209731:

  Introduce USD_{SET,GET}{BASE,LIMIT}. These help setting up the user
  segment descriptor hi and lo values. Idea from Solaris.

  Reviewed by:  kib

r209763:

  Fix style issues with the previous commit, namely
  use-tab-instead-of-space and don't use underscores in macro variables.

  Pointed out by:       bde

r210292:

  Fix typo in comment.

r210357:

  MFamd64:
    Add USD_GETBASE(), USD_SETBASE(), USD_GETLIMIT() and USD_SETLIMIT().

r210611:

  Bump the witness pendlist to 768 to accomodate the increased number of
  spinlocks.

r211553:

  Add sysname to struct opensolaris_utsname. This is needed by one DTrace
  test.

r211566:

  Add a sysname char * to struct opensolaris_utsname.

r211606:

  Add the FreeBSD definition for the fasttrap ioctls.

r211607:

  Add a function compatibility function dtrace_instr_size_isa() that on
  FreeBSD does the same as dtrace_dis_isize().

r211608:

  Kernel DTrace support for:
  o uregs  (sson@)
  o ustack (sson@)
  o /dev/dtrace/helper device (needed for USDT probes)

r211610:

  Add more compatibility structure members needed by the upcoming fasttrap
  DTrace device.

r211611:

  Destroy the helper device when unloading.

r211613:

  Fix style issues.

r211614:

  Bump KDTRACE_THREAD_ZERO and use M_ZERO as a malloc flag instead of
  calling bzero.

r211615:

  Remove an elif and add an or-clause.

r211616:

  Add an extra comment to the SDT probes definition. This allows us to get
  use '-' in probe names, matching the probe names in Solaris.

  Add userland SDT probes definitions to sys/sdt.h.

r211617:

  Call the systrace_probe_func() when the error value.

r211618:

  Port this to FreeBSD. We miss some suword functions, so we use copyout.

r211738:

  Port the fasttrap provider to FreeBSD. This provider is responsible for
  injecting debugging probes in the userland programs and is the basis for
  the pid provider and the usdt provider.

r211744:

  MD fasttrap implementation.

r211745:

  Replace a pksignal() call with tdksignal().

  Pointed out by:       kib

r211746:

  Update for the recent location of the fasttrap code.

r211747:

  Replace structure assignments with explicity memcpy calls. This allows
  Clang to compile this file: it was using the builtin memcpy and we want
  to use the memcpy defined in gptboot.c. (Clang can't compile boot2 yet).

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

r211751:

  Add a trap code for DTrace induced traps.

r211752:

  Add two DTrace trap type values. Used by fasttrap.

r211753:

  Enable fasttrap and make dtraceall depend on fasttrap when building i386
  or amd64.

r211804:

  Call the necessary DTrace function pointers when we have different kinds
  of traps.

r211813:

  Add the necessary DTrace function pointers.

r211839:

  Sync DTrace bits with amd64 and fix the build.

r211924:

  Register an interrupt vector for DTrace return probes. There is some
  code missing in lapic to make sure that we don't overwrite this entry,
  but this will be done on a sequent commit.

r211925:

  Replace a memory barrier with a mutex barrier.

r211926:

  Add the path necessary to find fasttrap_isa.h to CFLAGS.

r211929:

  Remove debugging.

r212004:

  When DTrace is enabled, make sure we don't overwrite the IDT_DTRACE_RET
  entry with an IRQ for some hardware component.

  Reviewed by:  jhb

r212093:

  Make the /dev/dtrace/helper node have the mode 0660. This allows
  programs that refuse to run as root (pgsql) to install probes when their
  user is part of the wheel group.

r212357:

  Fix two bugs in DTrace:
  * when the process exits, remove the associated USDT probes
  * when the process forks, duplicate the USDT probes.

r212465:

  Avoid a LOR (sleepable after non-sleepable) in
  fasttrap_tracepoint_enable().

r212494:

  Revamp locking a bit. This fixes three problems:
  * processes now can't go away while we are inserting probes (fixes a panic)
  * if a trap happens, we won't be holding the process lock (fixes a hang)
  * fix a LOR between the process lock and the fasttrap bucket list lock

  Thanks to kib for pointing some problems.

r212568:

  Bump __FreeBSD_version to reflect the userland DTrace changes

Sponsored by:                   The FreeBSD Foundation
Userspace DTrace work by:       rpaulo

git-svn-id: svn://svn.freebsd.org/base/stable/8@219107 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217857:
yongari [Mon, 28 Feb 2011 21:21:24 +0000 (21:21 +0000)]
MFC r217857:
  Prefer MSI-X to MSI on controllers that support MSI-X. All
  recent PCIe controllers(RTL8102E or later and RTL8168/8111C or
  later) supports either 2 or 4 MSI-X messages. Unfortunately vendor
  did not publicly release RSS related information yet. However
  switching to MSI-X is one-step forward to support RSS.

git-svn-id: svn://svn.freebsd.org/base/stable/8@219104 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r219036
ken [Mon, 28 Feb 2011 16:39:15 +0000 (16:39 +0000)]
MFC: r219036

Silence 'out of chain frames' warnings and bump the number of frames.

mps.c: Hide the 'out of chain frames' warning behind MPS_INFO.

mps_sas.c: Hide the SIM queue freeze/unfreeze messages behind MPS_INFO.

mpsvar.h: Bump the number of chain frames from 1024 to 2048.  From
testing, it looks like this makes it less likely that we'll
run out of chain frames, and it doesn't cost much memory
(32K).

git-svn-id: svn://svn.freebsd.org/base/stable/8@219099 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 205076 [1]:
gjb [Sun, 27 Feb 2011 18:23:28 +0000 (18:23 +0000)]
MFC 205076 [1]:

Fix reference to fsck(8).

PR: 154215
Submitted by: Mats Erik Andersson (debian of gisladisker se)
Obtained from: uqs [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@219088 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f