Commit Graph

8639 Commits

Author SHA1 Message Date
christos
1c8ebda697 remove printf when the sensor has no statistics; requested by xtraeme. 2008-05-25 20:03:05 +00:00
tsutsui
ff1b9852ce Try DIOCWLABEL ioctl only if write op fails with EROFS
because the ioctl is required and valid only for raw devices.
2008-05-24 19:15:21 +00:00
joerg
bbdb057767 Just ignore a bunch of well-known routing socket messages ifwatchd
doesn't care about to make verbose mode less noisy.  When it does print
an unknown header type, also say which one it doesn't like.
2008-05-24 17:45:14 +00:00
christos
2fa9c865b5 Don't code using side-effects (eliminate queue variable). Unconfuses Coverity
CID 5031.
2008-05-24 15:55:13 +00:00
christos
54cf942f77 Coverity CID 5034: Use after free. Restructure the code to simplify it and
print the error.
2008-05-24 15:45:58 +00:00
lukem
6258c039ac Compile in LDAP if ${USE_LDAP} != "no".
XXX: untested.
2008-05-22 14:45:42 +00:00
ad
11a6779a98 Print AMD power management features. 2008-05-21 01:12:12 +00:00
tron
d5f41fe194 Fix builds with stack protection enabled. 2008-05-18 13:08:58 +00:00
tsutsui
9ac86cd165 Sync intel_cpuid_cache_info with src/sys/arch/x86/x86/identcpu.c. 2008-05-17 13:20:27 +00:00
chuck
77b3637f18 Disable hostname lookup for ypserv(8) libwrap access control,
as they can cause performance problems while ypserv is blocked
waiting for the DNS to respond.  initially discussed here:

	http://mail-index.netbsd.org/tech-userlevel/2006/11/01/0014.html

This diff is from Doug Needham who found an easy way to get
the desired behavior without having to change libwrap.
2008-05-16 16:41:42 +00:00
chris
f703bee5ef Fix two sizeof(__arraycount()) to not use sizeof when looking up the size
of the array.

This fixes a crash when run on amd phenom under amd64.

Issue reported and inital patch by Paul Goyette.
2008-05-15 23:31:56 +00:00
reinoud
e979c658c9 Import writing part of the UDF file system making optical media like CD's
and DVD's behave like floppy discs. Writing is supported upto and including
version 2.01; version 2.50 and 2.60 will follow.

Also extending the UDF implementation to support symbolic links and
hardlinks.

Added are the mmcformat(8) tool to format rewritable CD/DVD discs and
newfs_udf(8).

Limitations:
        all operations can be performed on the file system though the
        sheduling is currently optimised for archiving workloads.

        mv(1)/rename(2) is currently only implemented for non-directories.
2008-05-14 16:49:47 +00:00
ad
fb00930331 Clarify output of 'id' column. 2008-05-12 14:16:04 +00:00
skrll
989d6357d3 Add an option to load a generic boot image into the first 32K of the
cd9660 image.
2008-05-10 19:00:07 +00:00
martin
5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
ad
8038b5d5a5 Report: family, model, extfamily, extmodel 2008-05-10 15:01:05 +00:00
tsutsui
6eaaf9f4bd If writing the primary boot fails with EROFS, use DIOCWLABEL ioctl
then try again because some ports have to overwrite LABELSECTOR
which might be protected by bounds_check_with_label(9) on putting
primaty bootxx.
2008-05-09 10:53:55 +00:00
tsutsui
a9e4cec8d9 Use DIOCWLABEL ioctl before writing block 0 which might be
protected by (now MI) bounds_check_with_label(9).
Fixes a problem on sysinst mentioned in PR port-macppc/38016.
2008-05-09 10:14:35 +00:00
christos
8eef858ae2 patch from Dennis den Brok for foomatic 2008-05-07 17:44:44 +00:00
skrll
65d8db46d0 Make this compile. 2008-05-06 09:10:25 +00:00
ad
51e7ff401b PR port-amd64/37461 x86 cpu dmesg output is noisy
Port identifycpu() to userspace. The kernel lies and reports on cpuN while
actually using the values from cpu0, but this attempts to bind itself to the
requested CPU if running as root. That doesn't work properly yet due to
kern/38588, but will do once that's fixed.
2008-05-05 17:54:14 +00:00
martin
592397db3f Move to standard TNF 2 clause license 2008-05-04 12:59:38 +00:00
lukem
66176dfdff Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
apb
bf49cd32ad Try to make it clear that local changes will be overwritten
by "postinstall fix".
2008-05-03 09:44:45 +00:00
xtraeme
b2bb69490d WARNS=4 love. 2008-05-02 19:59:19 +00:00
xtraeme
c8f61d2b50 WARNS=4 2008-05-02 19:22:10 +00:00
xtraeme
7097d2c139 Constify and other misc fixes to make this build with WARNS=4. 2008-05-02 19:07:44 +00:00
martin
cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
4b1e6a65be Convert to 2 clause license 2008-04-30 08:20:03 +00:00
xtraeme
dbce9233f7 Don't show statistics in sensors that will provide a percentage. 2008-04-29 21:46:17 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ad
1f959cb4ab Use symbolic names for -C. 2008-04-28 16:52:17 +00:00
ad
4c7ba24481 Add MI code to support in-kernel preemption. Preemption is deferred by
one of the following:

- Holding kernel_lock (indicating that the code is not MT safe).
- Bracketing critical sections with kpreempt_disable/kpreempt_enable.
- Holding the interrupt priority level above IPL_NONE.

Statistics on kernel preemption are reported via event counters, and
where preemption is deferred for some reason, it's also reported via
lockstat. The LWP priority at which preemption is triggered is tuneable
via sysctl.
2008-04-28 15:36:01 +00:00
tsutsui
c007028e0b Enable gcc optimization on m68000 (sun2) again with minimum hacks.
gcc -O0 generates a bit fat binaries.
2008-04-27 03:06:46 +00:00
xtraeme
b02a77aff5 Add missing cast, noticed by Paul Goyette in current-users@. 2008-04-26 20:58:51 +00:00
xtraeme
f4ac0ac2c7 Cur -> Current for the header. 2008-04-26 11:28:26 +00:00
xtraeme
7dbfb3923c In default display mode, fix up the indentation for the critical
limits so that they appear in the correct column.
2008-04-26 11:15:14 +00:00
xtraeme
f960b01be8 * Improve default display output by adding a header that will match
current value as well as critical limits set and sensor unit.

* Add a new flag: -T. When it's enabled statistics will be created for
  the sensors. Max, min and average statistics as well as sensor unit
  will be displayed. Must be used with an interval.

You can see the new code in action here:

http://www.netbsd.org/~xtraeme/envstat_stats.txt

Thanks to jmcneill@ for comments and ideas.
2008-04-26 02:56:57 +00:00
cegger
68519ac971 amdtemp(4): Driver for AMD CPU Temperature Sensors. Adopted from OpenBSD's kate(4).
Changes beyond OpenBSD's driver:
- Improved support for AMD K8
- Added support for AMD Barcelona, AMD Phenom and AMD Griffin
Tested on various single and multi-socket machines.
Review and OK xtreame
2008-04-22 22:37:12 +00:00
plunky
9abc85a7e2 use __arraycount macro instead of rolling our own 2008-04-20 19:34:23 +00:00
xtraeme
e7638e85c4 Remove the 'dvnprinted' bool member of sensor_t, it's unused. 2008-04-17 21:19:12 +00:00
xtraeme
b16a06cd38 * Add support to show output from specified sensors in multiple devices
via the -s flag (the requirement for -d is not there anymore). [1]

You can do something like the following now:

$ envstat -s "acpibat0:charge,acpibat0:charge state,acpitz0:temperature"
[acpibat0]
       charge:      3.015 Ah (79.70%)
 charge state:     NORMAL
[acpitz0]
  temperature:     54.000 degC
$

* As bonus, the code has been modified to use a simple queue for
  the sensors, and this has simplified and improved some parts of the
  code as well.

[1] Item requested by joerg@ yesterday.
2008-04-17 20:51:48 +00:00
plunky
486e4624e5 some changes to serial bluetooth host controller interfaces
btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
2008-04-15 11:17:47 +00:00
tsutsui
df870ff695 Add more libraries required by libkrb5 etc. in NOPIC case. 2008-04-10 15:42:06 +00:00
ad
15efd9ad99 Do adaptive spinning for rwlocks, but only if the lock is write held and
there are no waiters. This gives a major boost to build.sh on larger
systems as directory vnode locks are exclusive for lookup, but are often
only held for a very short period of time.

This change has the potential to more readily expose lock order reversals
and other types of deadlock.
2008-04-04 17:25:09 +00:00
xtraeme
ba517bc7f5 Mention finsio(4). 2008-04-03 22:51:53 +00:00
xtraeme
979262d0fe Mention pic16lc(4). 2008-04-02 14:29:45 +00:00
xtraeme
e984f5b1da Mention cac(4). 2008-04-02 14:17:40 +00:00