]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
13 years ago- Some fixes to Ukranian catalog
gabor [Fri, 6 Aug 2010 10:34:48 +0000 (10:34 +0000)]
- Some fixes to Ukranian catalog

Submitted by: avg, Alex Kozlov <spam@rm-rf.kiev.ua>

13 years agoMark /dev/zero and /dev/null as eternal.
kib [Fri, 6 Aug 2010 09:47:48 +0000 (09:47 +0000)]
Mark /dev/zero and /dev/null as eternal.

In collaboration with: pho
MFC after: 1 month

13 years agoEnable shared lookups and externed shared ops for devfs.
kib [Fri, 6 Aug 2010 09:46:53 +0000 (09:46 +0000)]
Enable shared lookups and externed shared ops for devfs.

In collaboration with: pho
MFC after: 1 month

13 years agoAdd "show cdev" ddb command.
kib [Fri, 6 Aug 2010 09:44:01 +0000 (09:44 +0000)]
Add "show cdev" ddb command.

In collaboration with: pho
MFC after: 1 month

13 years agoAdd new make_dev_p(9) flag MAKEDEV_ETERNAL to inform devfs that created
kib [Fri, 6 Aug 2010 09:42:15 +0000 (09:42 +0000)]
Add new make_dev_p(9) flag MAKEDEV_ETERNAL to inform devfs that created
cdev will never be destroyed. Propagate the flag to devfs vnodes as
VV_ETERNVALDEV. Use the flags to avoid acquiring devmtx and taking a
thread reference on such nodes.

In collaboration with: pho
MFC after: 1 month

13 years agoFix issue reported by alc :
jchandra [Fri, 6 Aug 2010 09:25:42 +0000 (09:25 +0000)]
Fix issue reported by alc :

 MIPS doesn't really need to use atomic_cmpset_int() in situations like
 this because the software dirty bit emulation in trap.c acquires
 the pmap lock.  Atomics like this appear to be a carryover from i386
 where the hardware-managed TLB might concurrently set the modified bit.

Reviewed by: alc

13 years agoEnable shared locks for the devfs vnodes. Honor the locking mode
kib [Fri, 6 Aug 2010 09:23:47 +0000 (09:23 +0000)]
Enable shared locks for the devfs vnodes. Honor the locking mode
requested by lookup(). This should be a nop at the moment.

In collaboration with: pho
MFC after: 1 month

13 years agoInitialize VV_ISTTY vnode flag on the devfs vnode creation instead of
kib [Fri, 6 Aug 2010 09:06:55 +0000 (09:06 +0000)]
Initialize VV_ISTTY vnode flag on the devfs vnode creation instead of
doing it on each open.

In collaboration with: pho
MFC after: 1 month

13 years agoFix the issue reported by alc:
jchandra [Fri, 6 Aug 2010 07:32:33 +0000 (07:32 +0000)]
Fix the issue reported by alc:

 pmap_page_wired_mappings() counts the number of pv entries for the
 specified page that have the pv entry wired flag set to TRUE.
 pmap_enter() correctly initializes this flag.  However,
 pmap_change_wiring() doesn't update the corresponding pv entry flag,
 only the PTE.  So, the count returned by pmap_page_wired_mappings()
 will sometimes be wrong.

 In the short term, the best fix would be to eliminate the pv entry
 flag and use only the PTE.  That flag is wasting non-trivial memory.

Remove pv_wired flag, and use PTE flag to count the wired mappings.

Reviewed by: alc

13 years agoRemove redundant declaration of 'pcib_driver' class from sb_zbpci.c. This
neel [Fri, 6 Aug 2010 07:03:22 +0000 (07:03 +0000)]
Remove redundant declaration of 'pcib_driver' class from sb_zbpci.c. This
causes a compilation error.

The declaration is provided by sys/dev/pci/pcib_private.h starting from r210864.

13 years agoForce commit to remind me about MFCing r210909.
pjd [Fri, 6 Aug 2010 06:04:27 +0000 (06:04 +0000)]
Force commit to remind me about MFCing r210909.

MFC after: 1 month

13 years agoUse a signed integer to hold the address of a register.
neel [Fri, 6 Aug 2010 05:30:55 +0000 (05:30 +0000)]
Use a signed integer to hold the address of a register.

This does the right thing by sign extending the address when compiling for
the n64 abi.

13 years agouint64_t is 'unsigned long' in n64 build, so compiler is unhappy if the
neel [Fri, 6 Aug 2010 05:24:41 +0000 (05:24 +0000)]
uint64_t is 'unsigned long' in n64 build, so compiler is unhappy if the
format specifier in printf is "%llu".

Use "%ju" instead.

13 years agoUpdate the arguments to yy_config_parse() to match r210883.
dougb [Fri, 6 Aug 2010 05:20:21 +0000 (05:20 +0000)]
Update the arguments to yy_config_parse() to match r210883.

Choose the more conservative option ('yes' to exit on error) to match
the equivalent code in hastd.

13 years agoReflect default Tx interrupt moderation timer value change(50ms -> 1ms).
yongari [Fri, 6 Aug 2010 00:52:23 +0000 (00:52 +0000)]
Reflect default Tx interrupt moderation timer value change(50ms -> 1ms).

13 years agoReduce Tx interrupt moderation timer from 50ms to 1ms. The default
yongari [Fri, 6 Aug 2010 00:50:16 +0000 (00:50 +0000)]
Reduce Tx interrupt moderation timer from 50ms to 1ms. The default
value resulted in poor performance for UDP packets. With this
change, UDP bulk transfer performance is more than 940Mbps.

While I'm here fix a wrong register definition.

13 years ago- Add interrupts counter for PCI devices
gonzo [Thu, 5 Aug 2010 21:31:29 +0000 (21:31 +0000)]
- Add interrupts counter for PCI devices

13 years agoDocument 'none' value for remote.
pjd [Thu, 5 Aug 2010 19:54:57 +0000 (19:54 +0000)]
Document 'none' value for remote.

Reviewed by: dougb
MFC after: 1 month

13 years agoRe-add flag register for output. Some BIOS calls actually use it to return
jkim [Thu, 5 Aug 2010 19:30:57 +0000 (19:30 +0000)]
Re-add flag register for output.  Some BIOS calls actually use it to return
success/failure status.  Oops.

13 years agoImplement configuration reload on SIGHUP. This includes:
pjd [Thu, 5 Aug 2010 19:16:31 +0000 (19:16 +0000)]
Implement configuration reload on SIGHUP. This includes:
- Load added resources.
- Stop and forget removed resources.
- Update modified resources in least intrusive way, ie. don't touch
  /dev/hast/<name> unless path to local component or provider name were
  modified.

Obtained from: Wheel Systems Sp. z o.o. http://www.wheelsystems.com
MFC after: 1 month

13 years agoDo not copy stack pointer and flags. These registers are unconditionally
jkim [Thu, 5 Aug 2010 19:12:35 +0000 (19:12 +0000)]
Do not copy stack pointer and flags.  These registers are unconditionally
destroyed from vm86_prepcall().

13 years agoPrepare configuration parsing code to be called multiple times:
pjd [Thu, 5 Aug 2010 19:08:54 +0000 (19:08 +0000)]
Prepare configuration parsing code to be called multiple times:
- Don't exit on errors if not requested.
- Don't keep configuration in global variable, but allocate memory for
  configuration.
- Call yyrestart() before yyparse() so that on error in configuration file
  we will start from the begining next time and not from the place we left of.

MFC after: 1 month

13 years agoMake control_set_role() more public. We will need it soon.
pjd [Thu, 5 Aug 2010 19:04:29 +0000 (19:04 +0000)]
Make control_set_role() more public. We will need it soon.

MFC after: 1 month

13 years agoAllow to use 'none' keywork as remote address in case second cluster node
pjd [Thu, 5 Aug 2010 19:01:57 +0000 (19:01 +0000)]
Allow to use 'none' keywork as remote address in case second cluster node
is not setup yet.

MFC after: 1 month

13 years agoReset signal handlers after fork().
pjd [Thu, 5 Aug 2010 18:58:00 +0000 (18:58 +0000)]
Reset signal handlers after fork().

MFC after: 1 month

13 years ago- Use pjdlog_exitx() to log errors and exit instead of errx().
pjd [Thu, 5 Aug 2010 18:56:24 +0000 (18:56 +0000)]
- Use pjdlog_exitx() to log errors and exit instead of errx().
- Use 'unable to' (instead of 'cannot') consistently.

MFC after: 1 month

13 years agoEnable closefrom(2) here, as we have supported it for some time now.
csjp [Thu, 5 Aug 2010 18:49:06 +0000 (18:49 +0000)]
Enable closefrom(2) here, as we have supported it for some time now.

Discussed with: mlaier
MFC after: 2 weeks

13 years agoImplement a simple native VM86 backend for X86BIOS. Now i386 uses native
jkim [Thu, 5 Aug 2010 18:48:30 +0000 (18:48 +0000)]
Implement a simple native VM86 backend for X86BIOS.  Now i386 uses native
VM86 calls instead of the real mode emulator as a backend.  VM86 has been
proven reliable for very long time and it is actually few times faster than
emulation.  Increase maximum number of page table entries per VM86 context
from 3 to 8 pages.  It was (ridiculously) low and insufficient for new VM86
backend, which shares one context globally.  Slighly rearrange and clean up
the emulator backend to accommodate new code.  The only visible change here
is stack size, which is decreased from 64K to 4K bytes to sync. with VM86.
Actually, it seems there is no need for big stack in real mode.

MFC after: 1 month

13 years agoAssert that various buffers we are large enough.
pjd [Thu, 5 Aug 2010 18:27:41 +0000 (18:27 +0000)]
Assert that various buffers we are large enough.

MFC after: 1 month

13 years agoProblem with assertion is that it logs on stderr. Add two macros:
pjd [Thu, 5 Aug 2010 18:26:38 +0000 (18:26 +0000)]
Problem with assertion is that it logs on stderr. Add two macros:
PJDLOG_ASSERT() and PJDLOG_VERIFY() that will check the given condition
and log the problem where appropriate. The difference between those
two is that PJDLOG_VERIFY() always work and PJDLOG_ASSERT() can be
turned off by defining NDEBUG.

MFC after: 1 month

13 years agoDon't point users at the old csup homepage.
joel [Thu, 5 Aug 2010 18:26:03 +0000 (18:26 +0000)]
Don't point users at the old csup homepage.

Approved by: lulf

13 years agoKeep $FreeBSD$ in __FBSDID() only for C files.
pjd [Thu, 5 Aug 2010 18:23:43 +0000 (18:23 +0000)]
Keep $FreeBSD$ in __FBSDID() only for C files.

MFC after: 1 month

13 years agoMark two more places that we won't reach.
pjd [Thu, 5 Aug 2010 18:21:45 +0000 (18:21 +0000)]
Mark two more places that we won't reach.

MFC after: 1 month

13 years agoo FreeBSD 8.1-RELEASED added.
maxim [Thu, 5 Aug 2010 18:05:37 +0000 (18:05 +0000)]
o FreeBSD 8.1-RELEASED added.

PR: misc/149118
Submitted by: pluknet

13 years agoNow that TCP will be checked last we don't need any knowledge about other
pjd [Thu, 5 Aug 2010 17:57:59 +0000 (17:57 +0000)]
Now that TCP will be checked last we don't need any knowledge about other
protocols.

MFC after: 1 month

13 years agoAdd an argument to the proto_register() function which allows protocol to
pjd [Thu, 5 Aug 2010 17:56:41 +0000 (17:56 +0000)]
Add an argument to the proto_register() function which allows protocol to
declare it is the default and be placed at the end of the queue so it is
checked last.

MFC after: 1 month

13 years agoChange the MPTable and $PIR PCI-PCI bridge drivers to inherit from the
jhb [Thu, 5 Aug 2010 17:48:37 +0000 (17:48 +0000)]
Change the MPTable and $PIR PCI-PCI bridge drivers to inherit from the
generic PCI-PCI bridge driver and only override specific methods.  This
should fix suspend/resume of PCI-PCI bridges using these drivers.

13 years agoFix a bug where endpoints bound to wildcard addresses where
tuexen [Thu, 5 Aug 2010 16:52:13 +0000 (16:52 +0000)]
Fix a bug where endpoints bound to wildcard addresses where
using addresses not announced to the peer due to address
scoping.

MFC after: 3 weeks

13 years agoFix a bunch of errors (spelling and similar).
olli [Thu, 5 Aug 2010 16:28:17 +0000 (16:28 +0000)]
Fix a bunch of errors (spelling and similar).

As des noted, the section on SCTP would benefit from
a rewrite by a native speaker (which I am not).
Any volunteers?

Approved by: des (mentor)
MFC after: 1 week

13 years ago- Retire acpi_pcib_resume(). It is has just been an alias for
jhb [Thu, 5 Aug 2010 16:10:12 +0000 (16:10 +0000)]
- Retire acpi_pcib_resume().  It is has just been an alias for
  bus_generic_resume() since the pci_link(4) driver was added.
- Change the ACPI PCI-PCI bridge driver to inherit most of its methods
  from the generic PCI-PCI bridge driver.  In particular, this will now
  restore PCI config registers for ACPI PCI-PCI bridges.

Tested by: Oleg Sharoyko  osharoiko of gmail

13 years agoAdd a daily script to the periodic framework that reports
olli [Thu, 5 Aug 2010 15:53:33 +0000 (15:53 +0000)]
Add a daily script to the periodic framework that reports
changes to the package database, i.e. any packages that
have been added, updated or deleted in the past 24 hours.
The format is intentionally simple and concise.

That information is particularly useful on servers that
are maintained by multiple administrators.  When someone
adds, updates or deletes a package, the others will see
it in the daily periodic output.

This script is disabled by default.

PR: conf/113913
Submitted by: olli
Approved by: des (mentor)
MFC after: 3 weeks

13 years ago/etc/rc.d/network_ipv6 was deprecated.
ume [Thu, 5 Aug 2010 15:11:03 +0000 (15:11 +0000)]
/etc/rc.d/network_ipv6 was deprecated.

Reported by: Alex Kozlov <spam__at__rm-rf.kiev.ua>

13 years ago/etc/rc.d/ip6fw was deprecated.
ume [Thu, 5 Aug 2010 15:07:28 +0000 (15:07 +0000)]
/etc/rc.d/ip6fw was deprecated.

Reported by: Alex Kozlov <spam__at__rm-rf.kiev.ua>
MFC after: 3 days

13 years agoFix a race between clock_intr() and tick_ticker() when updating
neel [Thu, 5 Aug 2010 04:59:54 +0000 (04:59 +0000)]
Fix a race between clock_intr() and tick_ticker() when updating
'counter_upper' and 'counter_lower_last'. The race exists because
interrupts are enabled even though tick_ticker() executes in a
critical section.

Fix a bug in clock_intr() in how it updates the cached values of
'counter_upper' and 'counter_lower_last'. They are updated only
when the COUNT register rolls over. More interestingly it will *never*
update the cached values if 'counter_lower_last' happens to be zero.

Get rid of superfluous critical section in clock_intr(). There is no
reason to do this because clock_intr() executes in hard interrupt
context.

Switch back to using 'tick_ticker()' as the cpu ticker for Sibyte.

Reviewed by: jmallett, mav

13 years agoComment out IEEE Std 1003.1-2001 conformance proclaimed too early,
ache [Thu, 5 Aug 2010 01:39:25 +0000 (01:39 +0000)]
Comment out IEEE Std 1003.1-2001 conformance proclaimed too early,
see problems described in the comment to:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/128933

13 years agoChange kgdb_lookup() to resolve symbols via GDB instead of via libkvm(3).
jhb [Wed, 4 Aug 2010 21:02:04 +0000 (21:02 +0000)]
Change kgdb_lookup() to resolve symbols via GDB instead of via libkvm(3).

13 years agoCopy inode birthtime to the struct stat32.
kib [Wed, 4 Aug 2010 14:38:20 +0000 (14:38 +0000)]
Copy inode birthtime to the struct stat32.

MFC after: 1 week

13 years agoFix style.
kib [Wed, 4 Aug 2010 14:35:05 +0000 (14:35 +0000)]
Fix style.

MFC after: 1 week

13 years agoAdd 3 level page tables for MIPS in n64.
jchandra [Wed, 4 Aug 2010 14:12:09 +0000 (14:12 +0000)]
Add 3 level page tables for MIPS in n64.

- 32 bit compilation will still use old 2 level page tables
- re-arrange pmap code so that adding another level is easier
- pmap code for 3 level page tables for n64
- update TLB handler to traverse 3 levels in n64

Reviewed by: jmallett

13 years agoithd_name no longer defined, use td_name. Fix compile with KTR enabled.
jchandra [Wed, 4 Aug 2010 14:03:23 +0000 (14:03 +0000)]
ithd_name no longer defined, use td_name. Fix compile with KTR enabled.

13 years agoWhitespace fix for last check-in, move empty line to below endif.
jchandra [Wed, 4 Aug 2010 10:46:17 +0000 (10:46 +0000)]
Whitespace fix for last check-in, move empty line to below endif.

13 years agoMIPS 64 bit support.
jchandra [Wed, 4 Aug 2010 10:42:06 +0000 (10:42 +0000)]
MIPS 64 bit support.

When compiled for MIPS n64 ABI
- DES_LONG should be 'unsigned int'
- BN_LLONG should be undefined
- SIXTY_FOUR_BIT_LONG should be defined.

13 years agoDo not free sc if attach failed, as it was allocated by the bus
gavin [Wed, 4 Aug 2010 07:49:40 +0000 (07:49 +0000)]
Do not free sc if attach failed, as it was allocated by the bus
infrastructure, not us.  This appears to be a leftover from an older
version of the driver.

Submitted by: avg
Tested by: Anton Shterenlikht <mexas bristol.ac.uk>
MFC after: 1 week
X-MFC-Note: To stable/8 and stable/7 only

13 years agoFix typo.
joel [Wed, 4 Aug 2010 07:47:19 +0000 (07:47 +0000)]
Fix typo.

13 years agoIn order for MAXVNODES_MAX to be an "int" on powerpc and sparc, we must
alc [Wed, 4 Aug 2010 05:09:02 +0000 (05:09 +0000)]
In order for MAXVNODES_MAX to be an "int" on powerpc and sparc, we must
cast PAGE_SIZE to an "int".  (Powerpc and sparc, unlike the other
architectures, define PAGE_SIZE as a "long".)

Submitted by: Andreas Tobler

13 years agoAdd some mutex locking on the nfsnode to the regular NFS client.
rmacklem [Wed, 4 Aug 2010 01:19:11 +0000 (01:19 +0000)]
Add some mutex locking on the nfsnode to the regular NFS client.

Reviewed by: jhb

13 years agoCatch known CPUs before using IA32_TEMPERATURE_TARGET.
delphij [Wed, 4 Aug 2010 00:25:13 +0000 (00:25 +0000)]
Catch known CPUs before using IA32_TEMPERATURE_TARGET.
This way we would have an opportunity to hide the
Tj(target) value doesn't seem right stuff if we know
it's not working there.

Add temperature value for Core2 Duo Extreme Mobile that
I have access to.

13 years agosh: Return 0 from eval if no command was given.
jilles [Tue, 3 Aug 2010 22:17:29 +0000 (22:17 +0000)]
sh: Return 0 from eval if no command was given.

This makes a difference if there is a command substitution.

To make this work, evalstring() has been changed to set exitstatus to 0 if
no command was executed (the string contained only whitespace).

Example:
  eval $(false); echo $?
should print 0.

13 years agogrdc(6): de-obfuscate the timekeeping of now/delay
uqs [Tue, 3 Aug 2010 20:56:23 +0000 (20:56 +0000)]
grdc(6): de-obfuscate the timekeeping of now/delay

- 'now' only contains current time readings
- delay is only used as parameter to nanosleep
- prev_sec contains the time_t of the previous loop iteration

Submitted by: bde
MFC after: 2 weeks

13 years agoCorrectly sort usbconfig(8) within the SEE ALSO section.
bcr [Tue, 3 Aug 2010 19:25:58 +0000 (19:25 +0000)]
Correctly sort usbconfig(8) within the SEE ALSO section.

Noticed by:     dougb
MFC after:      3 days

13 years agoFix typo.
joel [Tue, 3 Aug 2010 18:29:58 +0000 (18:29 +0000)]
Fix typo.

13 years agoSpelling fixes.
joel [Tue, 3 Aug 2010 17:40:09 +0000 (17:40 +0000)]
Spelling fixes.

13 years agoAdd support for ATI Radeon HD 4250.
olli [Tue, 3 Aug 2010 16:30:56 +0000 (16:30 +0000)]
Add support for ATI Radeon HD 4250.

PR: kern/149041
Submitted by: olli
Reviewed by: rnoland
Approved by: des (mentor)
MFC after: 1 week

13 years agoUpdate references from nonexistent usbconfig(1) to usbconfig(8).
bcr [Tue, 3 Aug 2010 16:21:48 +0000 (16:21 +0000)]
Update references from nonexistent usbconfig(1) to usbconfig(8).

PR:             docs/149221
Submitted by:   Lars Hartmann (lars at chaotika dot org)
MFC after:      3 days

13 years agoRemove an unnecessary register load.
jkim [Tue, 3 Aug 2010 16:08:58 +0000 (16:08 +0000)]
Remove an unnecessary register load.

13 years agogrdc(6): Partial backout of r210755
uqs [Tue, 3 Aug 2010 16:02:57 +0000 (16:02 +0000)]
grdc(6): Partial backout of r210755

The previous revision was flawed in numerous ways:
- the if condition would depend on garbage stack values
- grdc(6) would loop n times, not n seconds. This only makes
  a difference if it takes more than 1 second to recalculate/redraw
  the display.
- style(9) violations

The following change adds argument checking and tracks the elapsed time
between loops explicitly and will exit after roughly n seconds.

While here sort headers and remove bogus #ifndef

Submitted by: bde
MFC after: 2 weeks

13 years agoProperly set ifi_datalen for compat32 struct if_data32.
kib [Tue, 3 Aug 2010 15:40:42 +0000 (15:40 +0000)]
Properly set ifi_datalen for compat32 struct if_data32.

PR: kern/149240
Submitted by: Stef Walter <stef memberwebs com>
MFC after: 1 weeks

13 years agosavectx() has not been used for fork(2) for about 15 years. [1]
jkim [Tue, 3 Aug 2010 15:32:08 +0000 (15:32 +0000)]
savectx() has not been used for fork(2) for about 15 years. [1]
Do not clobber FPU thread's PCB as it is more harmful.  When we resume CPU,
unconditionally reload FPU state.

Pointed out by: bde [1]

13 years ago- Do not use the runtime mask when logfile is specified.
fabient [Tue, 3 Aug 2010 13:46:25 +0000 (13:46 +0000)]
- Do not use the runtime mask when logfile is specified.
- Revert the fix on rtld path that is not necessary.

MFC after: 1 week

13 years agoWhen compat32 recvmsg(2) does not need to copy out control messages, set
kib [Tue, 3 Aug 2010 11:23:44 +0000 (11:23 +0000)]
When compat32 recvmsg(2) does not need to copy out control messages, set
msg_controllen to 0.

PR: kern/149227
Submitted by: Stef Walter <stef memberwebs com>
MFC after: 1 weeks

13 years agoCheck that gsp is not NULL before access. It can be NULL
ae [Tue, 3 Aug 2010 11:21:17 +0000 (11:21 +0000)]
Check that gsp is not NULL before access. It can be NULL
for some cases.

Approved by: kib (mentor)
MFC after: 1 week

13 years agoAllow file as a top source, it works with socket now.
fabient [Tue, 3 Aug 2010 09:23:53 +0000 (09:23 +0000)]
Allow file as a top source, it works with socket now.
This will allow top monitoring using socket/ssh tunnelling
of system without local symbols.

client:
pmcstat -R <ip>:<port> -T -r <symbolspath>
monitored device:
pmcstat -Sinstructions -O <ip>:<port>

- Move the file read in the event loop
- Initialize and clean log in all cases
- Preserve global stats value during top refresh
- Fix the rtld/line resolver that ignore '-r' prefix
- Support socket for '-R' (server mode)
- Display the statistics when exiting top mode

13 years agoOne question mark per question; everything else is just exaggerating.
bz [Tue, 3 Aug 2010 09:21:13 +0000 (09:21 +0000)]
One question mark per question; everything else is just exaggerating.
reply() will output a '?', when printing the question along with [yn],
so no need to have another here.

13 years agoCheck that table is not NULL before access, it can be NULL
ae [Tue, 3 Aug 2010 09:10:48 +0000 (09:10 +0000)]
Check that table is not NULL before access, it can be NULL
for some cases.

Approved by: mav (mentor)
MFC after: 2 weeks

13 years agoModify the return value for nfscl_mustflush() from boolean_t,
rmacklem [Tue, 3 Aug 2010 01:49:28 +0000 (01:49 +0000)]
Modify the return value for nfscl_mustflush() from boolean_t,
which I mistakenly thought was correct w.r.t. style(9), back
to int and add the checks for != 0. This is just a stylistic
modification.

MFC after: 1 week

13 years agoFix typo
emax [Mon, 2 Aug 2010 22:26:08 +0000 (22:26 +0000)]
Fix typo

PR: kern/140590
MFC after: 3 days

13 years agoUpdate the "desiredvnodes" calculation. In particular, make the part of
alc [Mon, 2 Aug 2010 21:33:36 +0000 (21:33 +0000)]
Update the "desiredvnodes" calculation.  In particular, make the part of
the calculation that is based on the kernel's heap size more conservative.
Hopefully, this will eliminate the need for MAXVNODES_MAX, but for the
time being set MAXVNODES_MAX to a large value.

Reviewed by: jhb@
MFC after: 6 weeks

13 years agoRearrange struct pcb. r177532 (CVS r1.64 of pcb.h) moved pcb_flags to make
jkim [Mon, 2 Aug 2010 18:12:30 +0000 (18:12 +0000)]
Rearrange struct pcb.  r177532 (CVS r1.64 of pcb.h) moved pcb_flags to make
better use of cache lines by placing it before pcb_save (now pcb_user_save),
which is moved to the end of pcb since r210777.

13 years agoFix two (very common) occurrences of s/sytem/system in comments.
bcr [Mon, 2 Aug 2010 18:06:49 +0000 (18:06 +0000)]
Fix two (very common) occurrences of s/sytem/system in comments.

Approved by:    mav
MFC after:      3 days

13 years agoGive kgdb(1) a chance to take a look at FPU state.
jkim [Mon, 2 Aug 2010 17:40:25 +0000 (17:40 +0000)]
Give kgdb(1) a chance to take a look at FPU state.

13 years ago- Merge savectx2() with savectx() and struct xpcb with struct pcb. [1]
jkim [Mon, 2 Aug 2010 17:35:00 +0000 (17:35 +0000)]
- Merge savectx2() with savectx() and struct xpcb with struct pcb. [1]
savectx() is only used for panic dump (dumppcb) and kdb (stoppcbs).  Thus,
saving additional information does not hurt and it may be even beneficial.
Unfortunately, struct pcb has grown larger to accommodate more data.
Move 512-byte long pcb_user_save to the end of struct pcb while I am here.
- savectx() now saves FPU state unconditionally and copy it to the PCB of
FPU thread if necessary.  This gives panic dump and kdb a chance to take
a look at the current FPU state even if the FPU is "supposedly" not used.
- Resuming CPU now unconditionally reinitializes FPU.  If the saved FPU
state was irrelevant, it could be in an unknown state.

Suggested by: bde [1]

13 years agoFix another mismerge: bring back the definition of DT_MUTEX_HELD().
rpaulo [Mon, 2 Aug 2010 17:31:48 +0000 (17:31 +0000)]
Fix another mismerge: bring back the definition of DT_MUTEX_HELD().

13 years agoFix the result of a mismerge. MUTEX_HELD should be DT_MUTEX_HELD() and
rpaulo [Mon, 2 Aug 2010 17:20:59 +0000 (17:20 +0000)]
Fix the result of a mismerge. MUTEX_HELD should be DT_MUTEX_HELD() and
Plmid() is not supposed to be called.

13 years agoTweak the logic to disable CLFLUSH in virtual environments to work around
jhb [Mon, 2 Aug 2010 17:01:23 +0000 (17:01 +0000)]
Tweak the logic to disable CLFLUSH in virtual environments to work around
problems with flushing the local APIC register range so that it checks
vm_guest directly.

Reviewed by: kib, alc
MFC after: 2 weeks

13 years agoAdded myself (must have forgot a couple of years ago?) and fixed the
glarkin [Mon, 2 Aug 2010 16:18:41 +0000 (16:18 +0000)]
Added myself (must have forgot a couple of years ago?) and fixed the
newline character in gerald's entry.

13 years agoSpelling fixes.
joel [Mon, 2 Aug 2010 16:01:45 +0000 (16:01 +0000)]
Spelling fixes.

13 years agoFix case for library macros
uqs [Mon, 2 Aug 2010 15:33:16 +0000 (15:33 +0000)]
Fix case for library macros

13 years agomdoc policing: use consistent section ordering, fix quotes and trailing
uqs [Mon, 2 Aug 2010 15:15:24 +0000 (15:15 +0000)]
mdoc policing: use consistent section ordering, fix quotes and trailing
whitespace

Approved by: rpaulo

13 years agoMFV OpenSolaris DTrace userland bits.
rpaulo [Mon, 2 Aug 2010 13:40:53 +0000 (13:40 +0000)]
MFV OpenSolaris DTrace userland bits.

13 years agoFix the calltree top view that incorrectly filter out some nodes.
fabient [Mon, 2 Aug 2010 13:40:19 +0000 (13:40 +0000)]
Fix the calltree top view that incorrectly filter out some nodes.

MFC after: 1 week

13 years agomdoc: remove unbalanced quotes
uqs [Mon, 2 Aug 2010 13:11:41 +0000 (13:11 +0000)]
mdoc: remove unbalanced quotes

13 years agomdoc: make sure to pass at least one argument to quotation macros
uqs [Mon, 2 Aug 2010 13:11:35 +0000 (13:11 +0000)]
mdoc: make sure to pass at least one argument to quotation macros

13 years agomdoc: remove unused/empty macros
uqs [Mon, 2 Aug 2010 13:11:27 +0000 (13:11 +0000)]
mdoc: remove unused/empty macros

13 years agoProperly warp around more code under COMPILE_ONLY to recover from build
rpaulo [Mon, 2 Aug 2010 13:05:12 +0000 (13:05 +0000)]
Properly warp around more code under COMPILE_ONLY to recover from build
errors.

13 years agogrdc(6): fix timekeeping for user-supplied value n
uqs [Mon, 2 Aug 2010 12:15:22 +0000 (12:15 +0000)]
grdc(6): fix timekeeping for user-supplied value n

- Keep timespec 'now' and 'delay' separate to avoid confusion
- Increase user-supplied n to run _at least_ n seconds, not max n

PR:            bin/149130 (based on)
Submitted by:  Andy Farkas
MFC after:     2 weeks

13 years agoUpdate DTrace userland code to the latest available.
rpaulo [Mon, 2 Aug 2010 12:13:33 +0000 (12:13 +0000)]
Update DTrace userland code to the latest available.

Summary of changes:

- libdtrace

changeset:   12902:3bb859a7330c
user:        Bryan Cantrill <Bryan.Cantrill@Sun.COM>
date:        Fri Jul 23 17:34:02 2010 -0700
summary:     6679140 asymmetric alloc/dealloc activity can induce dynamic variable drops

changeset:   12692:4341b447c069
user:        Ali Bahrami <Ali.Bahrami@Oracle.COM>
date:        Thu Jun 24 18:16:42 2010 -0600
summary:     6916796 OSnet mapfiles should use version 2 link-editor syntax

changeset:   12507:501806a754d2
user:        Alan Maguire <Alan.Maguire@Sun.COM>
date:        Thu May 27 17:29:51 2010 -0400
summary:     PSARC 2010/106 DTrace TCP and UDP providers

changeset:   11798:1e7f1f154004
user:        Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date:        Sun Feb 28 18:42:20 2010 -0800
summary:     PSARC 2009/657 delete obsolete system call traps

changeset:   11466:d60272412fb0
user:        Roger A. Faulkner <Roger.Faulkner@Sun.COM>
date:        Mon Jan 11 17:42:13 2010 -0800
summary:     6915578 MUTEX_HELD() and RW_LOCK_HELD() macros should be available to Posix threads

changeset:   11237:0d23e47ed228
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 03 13:39:19 2009 +0000
summary:     6795386 macro arguments and globbing in DTrace probe descriptions don't mix

changeset:   10791:944abfb5b345
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Wed Oct 14 11:25:23 2009 +0100
summary:     6886953 large symbols lead to stack exhaustion

changeset:   10326:8e3fbeec2d76
user:        Siddheshwar Mahesh <Siddheshwar.Mahesh@Sun.COM>
date:        Mon Aug 17 13:26:49 2009 -0500
summary:     6868411 NFS provider generates error on ci_remote on RDMA operations

changeset:   10207:87c40ea3fc4b
user:        jmcp <James.McPherson@Sun.COM>
date:        Wed Jul 29 16:56:03 2009 -0700
summary:     6864230 hiho, hiho, it'ch chtime for CH to go

changeset:   10044:2643c1cd9e2a
user:        Priya Krishnan <Priya.Krishnan@Sun.COM>
date:        Mon Jul 06 21:19:41 2009 -0400
summary:     6855027 iscsit.d breaks dtrace in osol based on snv_117

changeset:   9900:1b86d65a4f9e
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Thu Jun 18 13:16:39 2009 -0600
summary:     6851224 elf_getshnum() and elf_getshstrndx() incompatible with 2002 ELF gABI agreement

changeset:   9885:a3d5e9d9e779
user:        Robert Mastors <Robert.Mastors@Sun.COM>
date:        Tue Jun 16 15:25:25 2009 -0500
summary:     6711844 assert: vp->v_shrlocks == 0L, file: ../../common/fs/vnode.c, line: 2333

changeset:   9881:741c9e4e094c
user:        Charles Ting <Charles.Ting@Sun.COM>
date:        Tue Jun 16 14:51:40 2009 -0400
summary:     6849606 SRP DTrace Probe for xfer-done misses completion of READ transfers

changeset:   9829:e8059fcaee97
user:        Charles Ting <Charles.Ting@Sun.COM>
date:        Tue Jun 09 10:11:35 2009 -0400
summary:     6804431 Add Dtrace probes to SRPT

changeset:   9812:a2990074321f
user:        Priya Krishnan <Priya.Krishnan@Sun.COM>
date:        Mon Jun 08 09:49:48 2009 -0400
summary:     6847237 The iscsit.d DTrace translator should include iscsi.d for the definition of iscsiinfo_t

changeset:   9721:4f7e194c7c37
user:        Priya Krishnan <Priya.Krishnan@Sun.COM>
date:        Tue May 26 10:40:43 2009 -0400
summary:     6809997 COMSTAR iscsi target DTrace Provider needed

changeset:   9625:8aa5731291b4
user:        Sam Cramer <Sam.Cramer@Sun.COM>
date:        Wed May 13 17:10:06 2009 -0700
summary:     6840354 "/usr/lib/dtrace/fc.d", line 59: syntax error near "fct_local_port_t"

changeset:   9609:8874cc8d5e3f
user:        Sam Cramer <Sam.Cramer@Sun.COM>
date:        Mon May 11 21:02:27 2009 -0700
summary:     6809580 fct DTrace providers needed for qlt

changeset:   9578:c4b38ec17f4e
user:        Sam Cramer <Sam.Cramer@Sun.COM>
date:        Fri May 08 12:12:40 2009 -0700
summary:     6809580 fct DTrace providers needed for qlt

changeset:   9531:dc8924ef7839
user:        Rafael Vanoni <rafael.vanoni@sun.com>
date:        Mon May 04 11:48:15 2009 -0700
summary:     6730130 dtrace missing printf handler for stdev

changeset:   9389:750ed3471e90
user:        Vamsi Nagineni <Vamsi.Krishna@Sun.COM>
date:        Fri Apr 17 06:26:47 2009 -0700
summary:     6812050 dtrace should translate curpsinfo->pr_contract

changeset:   9085:ff7eb0bace56
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Wed Mar 18 13:28:28 2009 -0600
summary:     6813909 generalize eh_frame support to non-amd64 platforms

changeset:   8803:8c01b39012c9
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Fri Feb 13 07:13:13 2009 +0000
summary:     PSARC 2008/480 DTrace CPC Provider

changeset:   8744:03d5725cda56
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Tue Feb 10 09:38:02 2009 -0700
summary:     6798660 Cadmium .NOT file processing problem with CWD relative file paths

changeset:   8337:079ecc003ca6
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 11 11:26:47 2008 +0000
summary:     6750659 drti.o crashes app due to corrupt environment

changeset:   7991:d3b751ef3d85
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Mon Nov 03 10:26:23 2008 +0000
summary:     6738982 Representative thread after DTrace stop() action is incorrect

changeset:   7208:568549b138d8
user:        vv149972
date:        Mon Jul 28 23:14:31 2008 -0700
summary:     6696397 NFS v3 provider reports all UDP clients as 0.0.0.0

changeset:   6878:360e73ea6b0c
user:        brendan
date:        Fri Jun 13 19:06:55 2008 -0700
summary:     PSARC 2008/302 DTrace IP Provider

changeset:   6554:b5817e112852
user:        ahl
date:        Mon May 05 14:38:24 2008 -0700
summary:     6677812 race between dtrace activities in non-local zones

----

- ctf tools:

changeset:   12177:800b7f847f1e
user:        Surya Prakki <Surya.Prakki@Sun.COM>
date:        Sun Apr 18 23:59:57 2010 -0700
summary:     6941452 ctfconvert fails on VLAs with code generated by SS12u1

changeset:   11432:c1c450bf62f2
user:        John Levon <john.levon@sun.com>
date:        Tue Jan 05 06:57:53 2010 -0800
summary:     6905711 anonymous and empty SOUs crash ctfconvert

changeset:   11227:cd2ac59c39f2
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Wed Dec 02 15:37:55 2009 -0700
summary:     6900241 ld should track SHT_GROUP sections by symbol name, not section name

changeset:   10380:5394a7172e1f
user:        Ali Bahrami <Ali.Bahrami@Sun.COM>
date:        Tue Aug 25 13:51:43 2009 -0600
summary:     6866605 SUNWonbld ELF analysis tools need overhaul (fix ctfmerge/libc dependency)

changeset:   10207:87c40ea3fc4b
user:        jmcp <James.McPherson@Sun.COM>
date:        Wed Jul 29 16:56:03 2009 -0700
summary:     6864230 hiho, hiho, it'ch chtime for CH to go

changeset:   10206:51f52702df72
user:        John Levon <john.levon@sun.com>
date:        Wed Jul 29 14:36:30 2009 -0700
summary:     6854065 CTF tools should error out given 1024+-member structures

changeset:   7230:429b4f7acf1a
user:        sn199410
date:        Wed Jul 30 16:10:30 2008 -0700
summary:     6575435 ctf tools cannot handle C99 VLAs ("variable length arrays")

changeset:   6936:72189fcd99e4
user:        sommerfe
date:        Sun Jun 22 09:13:44 2008 -0700
summary:     6716983 left-for-dead ctfmerge worker threads awake to take out maker

----

- dtrace command utility:

changeset:   12507:501806a754d2
user:        Alan Maguire <Alan.Maguire@Sun.COM>
date:        Thu May 27 17:29:51 2010 -0400
summary:     PSARC 2010/106 DTrace TCP and UDP providers

changeset:   11838:32bb5d254240
user:        Liane Praza <Liane.Praza@Sun.COM>
date:        Tue Mar 02 19:29:26 2010 -0700
summary:     PSARC 2010/067 Interim modernization updates

changeset:   11270:47a962fe7b45
user:        Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date:        Mon Dec 07 13:47:36 2009 -0800
summary:     6907170 fix for 6875656 left out updates to DTrace test suite

changeset:   11237:0d23e47ed228
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 03 13:39:19 2009 +0000
summary:     6795386 macro arguments and globbing in DTrace probe descriptions don't mix

changeset:   11153:dec430d20576
user:        Frank Van Der Linden <Frank.Vanderlinden@Sun.COM>
date:        Sun Nov 22 19:22:26 2009 -0800
summary:     6875656 xdt needs to support more XenTrace probes

changeset:   11102:b91faef0c984
user:        Gavin Maltby <Gavin.Maltby@Sun.COM>
date:        Thu Nov 19 15:28:11 2009 +1100
summary:     PSARC/2009/554 door_xcreate - extended door creation interface for private doors

changeset:   11066:cebb50cbe4f9
user:        Rafael Vanoni <rafael.vanoni@sun.com>
date:        Fri Nov 13 01:32:32 2009 -0800
summary:     PSARC/2009/396 Tickless Kernel Architecture / lbolt decoupling

changeset:   10791:944abfb5b345
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Wed Oct 14 11:25:23 2009 +0100
summary:     6886953 large symbols lead to stack exhaustion

changeset:   10207:87c40ea3fc4b
user:        jmcp <James.McPherson@Sun.COM>
date:        Wed Jul 29 16:56:03 2009 -0700
summary:     6864230 hiho, hiho, it'ch chtime for CH to go

changeset:   9531:dc8924ef7839
user:        Rafael Vanoni <rafael.vanoni@sun.com>
date:        Mon May 04 11:48:15 2009 -0700
summary:     6730130 dtrace missing printf handler for stdev

changeset:   9397:e667d620a75c
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Mon Apr 20 07:58:44 2009 +0100
summary:     6806023 cpc provider event name validation needs to be a bit tighter

changeset:   8803:8c01b39012c9
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Fri Feb 13 07:13:13 2009 +0000
summary:     PSARC 2008/480 DTrace CPC Provider

changeset:   8605:0189cb9c5358
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Jan 22 12:09:13 2009 +0000
summary:     6749441 intrstat(1M) shows zeroed values after suspend/resume

changeset:   8337:079ecc003ca6
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Thu Dec 11 11:26:47 2008 +0000
summary:     6750659 drti.o crashes app due to corrupt environment

changeset:   8287:771477e4b843
user:        John Sonnenschein <John.Sonnenschein@Sun.COM>
date:        Fri Dec 05 19:08:38 2008 -0800
summary:     PSARC 2005/462 Removal of Perl 5.6.1 from Solaris 11

changeset:   7991:d3b751ef3d85
user:        Jonathan Haslam <Jonathan.Haslam@Sun.COM>
date:        Mon Nov 03 10:26:23 2008 +0000
summary:     6738982 Representative thread after DTrace stop() action is incorrect

changeset:   7502:da077e5d991e
user:        Aruna Ramakrishna <aruna@cs.umn.edu>
date:        Sat Sep 06 05:36:02 2008 -0400
summary:     6706947 tcp_trace should be replaced with dtrace probes.

changeset:   7484:a48e950bad22
user:        Tom Erickson <tomee@eng.sun.com>
date:        Wed Sep 03 15:14:25 2008 -0700
summary:     6737926 getAggregate() method fails to specify anonymous aggregation explicitly

changeset:   7299:d9a056040774
user:        John Beck <John.Beck@Sun.COM>
date:        Thu Aug 07 12:44:26 2008 -0700
summary:     6734627 protocmp complains about opt/SUNWdtrt/README after TW -> Hg switch

changeset:   6998:58787ea78303
user:        brendan
date:        Tue Jul 01 18:28:22 2008 -0700
summary:     6721426 tst.sdtargs.d passes despite dtrace "invalid address" error

changeset:   6878:360e73ea6b0c
user:        brendan
date:        Fri Jun 13 19:06:55 2008 -0700
summary:     PSARC 2008/302 DTrace IP Provider

changeset:   6670:1961a43f2335
user:        tariq
date:        Tue May 20 15:08:16 2008 -0700
summary:     6685348 Hypervisor event provider for DTrace

changeset:   6554:b5817e112852
user:        ahl
date:        Mon May 05 14:38:24 2008 -0700
summary:     6677812 race between dtrace activities in non-local zones

changeset:   6543:465433824d87
user:        rie
date:        Fri May 02 15:01:06 2008 -0700
summary:     6683064 check_rtime could do with some spring cleaning

13 years agoDocument the new argument parser for sleep(1) and SIGINFO behaviour.
kib [Mon, 2 Aug 2010 10:59:23 +0000 (10:59 +0000)]
Document the new argument parser for sleep(1) and SIGINFO behaviour.
Remove higlight for the unportability notice.

MFC after: 3 weeks

13 years agoSimplify argument parser by using sscanf(); simplify usage() by not
kib [Mon, 2 Aug 2010 10:57:56 +0000 (10:57 +0000)]
Simplify argument parser by using sscanf(); simplify usage() by not
refusing to use stdio.
Reduce nesting level in the sleep loop by returning earlier for negative
timeouts.
Limit the maximum timeout to INT_MAX seconds.

Submitted by: bde
MFC after: 3 weeks

13 years agoForward ioctl requests to original geom.
ae [Mon, 2 Aug 2010 10:30:49 +0000 (10:30 +0000)]
Forward ioctl requests to original geom.

PR: 148540
Silence from: luigi
Reviewed by: pjd
Approved by: mav (mentor)
MFC after: 2 weeks

13 years agoRelease access for consumers that are opened, but will be destroyed
ae [Mon, 2 Aug 2010 10:26:15 +0000 (10:26 +0000)]
Release access for consumers that are opened, but will be destroyed
indirectly by orphan method.

PR: 148688
Silence from: marcel
Approved by: mav (mentor)
MFC after:  2 weeks