Commit Graph

159220 Commits

Author SHA1 Message Date
agc 15a3a67ede Various changes for better Linux emulation:
+ in /proc/<pid>/statm emulation, use the memory values from vmspace,
rather than struct rusage, since the rusage values appear to be 0 for
all processes except zombies.  cf dsl's comment in
kvm_proc.c::kvm_getproc2()

+ in /proc/<pid>/stat, instead of returning the tv_sec value, return the
number of ticks we've had (roughly equivalent to the Linux jiffies).
Calculate these values from the tv_usec values.

Also:

+ enclose CPU_INFO_ITERATOR and CPU_INFO_FOREACH usage in #ifdef
MULTIPROCESSOR, at the request of Nick Hudson

Together, these changes allow htop to work on NetBSD.
2007-05-25 19:20:06 +00:00
macallan 98d7e24ac1 add ofctl 2007-05-25 18:28:53 +00:00
macallan b1563bcc6b build ofctl on sparc 2007-05-25 18:27:25 +00:00
macallan 74ab4a8402 make this work with OBP2 2007-05-25 18:27:05 +00:00
yamt 68f37fd0aa amd64nbsd_supply_pcb: as dumpsys() was changed to prepare switchframe,
always use switchframe.  fixes a build problem after yamt-idlelwp.
update some comments.  reviewed by Frank van der Linden.
2007-05-25 15:14:21 +00:00
yamt 8e69ce0726 dumpsys: build a fake switchframe for postmortem debugging.
reviewed by Frank van der Linden.
2007-05-25 15:09:50 +00:00
yamt 2d653f2875 yamt-lazymbuf: some notes 2007-05-25 14:34:11 +00:00
martin 95f43235b7 remove some debugging printfs for the MULTIPROCESSOR case 2007-05-25 12:42:07 +00:00
skrll 178869e145 Fix typo in comment. 2007-05-25 12:11:28 +00:00
tsutsui 0f31f5cb6c Preserve local symbols on linking a kernel so that
we can get more useful trace on ddb(4).
2007-05-25 10:44:27 +00:00
skrll 71c04700f6 No need to check if oldl == newl in cpu_switchto. All the callers ensure
this is never the case.

Fixup a few comments while I'm here.
2007-05-25 10:40:04 +00:00
martti 6b17040b66 Fix problems with stateful filtering. Patch received from darrenr@. 2007-05-25 06:44:20 +00:00
macallan 8add5b3a22 defflag SPARCBOOK_CMD 2007-05-25 02:01:41 +00:00
mjacob 3470b7cb13 Whoops- I almost forgot. Thank MetrumRG Associates for material
support in making 4Gb NetBSD support possible.
2007-05-25 01:59:24 +00:00
jnemeth c0e06197a8 Add a caveat about reboot(8) not running shutdown scripts. This addresses
(at least partially) PR/35067 by Blair Sadewitz.
2007-05-24 23:19:43 +00:00
degroote b6a3dbd139 Sync with reality
Ipv6 and Ipcomp are now supported
2007-05-24 23:03:52 +00:00
mjacob 8e237f7550 Major update to isp(4) driver to bring it in line with external sources.
The major changes are:

 + 4Gb (24XX) card support
 + Rewritten fabric and loop evaluation code
 + New f/w sets

The 4Gb changes required major rototilling, which caused a rewrite of
fabric and loop eval code. The latter can now be set up to tune for
dynamic device arrival/departure if the framework is set up for it,
or to be firm about waiting for devices.

Testing has been principally on amd64, i386 and sparc64 and seems to
not have broken things for me.
2007-05-24 22:12:02 +00:00
mjacob f0b57d5f54 Major update to isp(4) driver to bring it in line with external sources.
The major changes are:

 + 4Gb (24XX) card support
 + Rewritten fabric and loop evaluation code
 + New f/w sets

The 4Gb changes required major rototilling, which caused a rewrite of
fabric and loop eval code. The latter can now be set up to tune for
dynamic device arrival/departure if the framework is set up for it,
or to be firm about waiting for devices.

Testing has been principally on amd64, i386 and sparc64 and seems to
not have broken things for me.
2007-05-24 21:30:41 +00:00
christos 534e84b17b mention bcopy and bzero. 2007-05-24 20:50:28 +00:00
ad 085b4a04e0 Add new keys to the help screen. 2007-05-24 20:09:44 +00:00
ad 42f48e85b3 top(1): Allow a single process to be selected by pid.
Add a 'thread mode' that displays LWPs.
                [ad 20070524]
2007-05-24 20:05:02 +00:00
ad 009dcab90b - Allow a single process to be selected by pid.
- Add a 'thread mode' that displays LWPs.
2007-05-24 20:04:04 +00:00
christos 35d9d3fddf Make sure we don't run over the end of the argument array while scanning
for input. This can happen if we have a unary not without an argument. When
we scan for the argument, we are already at the NULL element of the argument
array. Then when we scan ahead for a -a or -o, we end up testing the next
element after the NULL.
2007-05-24 18:47:08 +00:00
christos 41d09357f2 Instead of putting a full copy of realpath here, use the system's realpath. 2007-05-24 18:18:43 +00:00
plunky 28aef083c5 add generic Device Controls usage page information 2007-05-24 18:05:11 +00:00
xtraeme 3e72ab4fab ses.h is located on dev/scsipi and not dev/scsi... well 6 years later
we fix it.

Looks like not many developers pay attention to update the manual
pages.
2007-05-24 16:40:46 +00:00
briggs 9e95a6e477 The number of max_lat units in 1 sec is 4000000 instead of 40000000 (an
extra 0 snuck into the code).
Found when looking at this with dyoung.
2007-05-24 15:57:58 +00:00
tsutsui 1f40a9d3d4 Remove more dup entries uniq(1) can't detect. 2007-05-24 15:55:50 +00:00
briggs 4208391f45 Some changes from the FreeBSD driver:
* Include definitions of adapter-initiated fibs.
* Send aifs back to the adapter after we receive them.
* Use indexes instead of pointers in 32-bit hardware registers.
* If we get a message that there's a printf from the adapter, but we have
  a NUL in the first character of the printf string, change the NUL to a
  space.
2007-05-24 15:07:47 +00:00
christos e3d9822168 PR/36384: Patrick Welche: triplicate udp entries in /etc/services
ran it through uniq
2007-05-24 15:01:47 +00:00
xtraeme 8f6f7665fa Indentation. 2007-05-24 13:36:57 +00:00
njoly f70cd37804 Fix restart of interrupted system calls.
- Make linux_sys_rt_sigreturn() return EJUSTRETURN on success.
- Add missing rax to linux_sigcontext structure; and save/restore
  its value like other members in linux_sendsig()/linux_sys_rt_sigreturn().

With valuable help from manu.
2007-05-24 11:21:52 +00:00
dogcow 905b715a4b use PRIu64, not llu, to unbork on 64-bit platforms. 2007-05-24 05:33:08 +00:00
lukem f4f2ed1c79 Display times in RFC2822 form rather than using ctime(3), since
the former is more explicit about the timezone offset.
2007-05-24 05:05:18 +00:00
lukem 6ca11a7da7 Revert previous "64bit fix" because it actually removed desired functionality.
Instead, use the appropriate format specifier & cast to display the time_t.
2007-05-24 02:51:41 +00:00
agc 9cdcc01daf After we've malloc'd an area of storage, zero out this storage, "just in
case".
2007-05-24 00:55:57 +00:00
agc 4dbe5ed7e7 Extend the Linux emulation of /proc to include
/proc/stat
	/proc/loadavg and
	/proc/<pid>/statm.

These are only present when -o linux is specified as a mount option
to procfs.

Factor out some common code so that it can be used by a number of
functions.

XXX The values returned in the statm emulation need to be verified.
2007-05-24 00:37:40 +00:00
christos 94b0103837 add ssp/strings.h 2007-05-23 23:41:51 +00:00
christos 0fb2cf5330 forgot to pass the len argument; pointed out by thor. 2007-05-23 23:38:40 +00:00
tls 1f3bd3b216 memset does not have 'src' as its second argument. or, at least, in my
opinion it shouldn't.
2007-05-23 22:50:04 +00:00
tls 3c0130638c The b-functions (bcopy, bzero) should not be in string.h, and we were
missing strings.h.  Fix this so we mirror the organization of these
header files in /usr/include proper.
2007-05-23 22:35:38 +00:00
tls 8c0e7700ad Fix typo: "lne"->"len" 2007-05-23 21:38:00 +00:00
tls 019754b194 From christos: make inline functions static __inline, because some userland programs might redefine inline, or the compiler might not listen to us although we use __attribute__((__always_inline__)) 2007-05-23 21:13:14 +00:00
dsl 1752887780 Delete some comments that refer to long-extinct code. 2007-05-23 19:03:56 +00:00
christos 68a6db0f0b fix typos in previous 2007-05-23 17:32:46 +00:00
christos 72cfe7327b Ansify + add a few comments, from Karl Sjödahl 2007-05-23 17:14:59 +00:00
christos 01e5675c2a add libssp here. requested by wiz 2007-05-23 17:01:25 +00:00
christos 4320602b61 back out previous, requested by wiz 2007-05-23 16:59:03 +00:00
kleink 33ad2f35ea tz{code,data}2007f out; tzdata2007f in. 2007-05-23 15:42:57 +00:00
christos 35b6e48aee fix tyops 2007-05-23 15:00:39 +00:00