Commit Graph

67 Commits

Author SHA1 Message Date
mrg 3b8ac18da2 <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-29 06:34:22 +00:00
mrg 10a6db97ee remove redundant vm includes 2000-06-26 15:34:55 +00:00
simonb a9f690ae2a Add kvm interface to the new sysctls:
kvm_getproc2() -> sysctl(KERN_PROC2)
	kvm_getargv2() -> sysctl(KERN_PROC_ARGS, KERN_PROC_ARGV)
	kvm_getenvv2() -> sysctl(KERN_PROC_ARGS, KERN_PROC_ENV)
Add new KVM_NO_FILES flag to kvm_open*() - set up enough state to
use the above calls without having to open any kernel files.

XXX: kvm_getprocs.3 and kvm_open.3 to be updated soon.
2000-05-26 02:42:21 +00:00
simonb f68ec00b50 More trailing white space. 1999-07-02 15:28:49 +00:00
mycroft 5412e6f2c7 Nuke swap_pager.h. 1999-04-01 09:53:09 +00:00
christos cc7ffa0da4 Remove lint 1998-09-27 18:15:58 +00:00
perry a843f0f8a5 bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:43:08 +00:00
thorpej 9aae5a60db Remove some lint. 1998-08-01 21:29:41 +00:00
mycroft 0c4d98ae35 const poisoning. 1998-07-26 17:53:10 +00:00
thorpej 5bc2ba5c36 Oops, missed a couple of pread(2) uses. 1998-06-30 20:40:44 +00:00
thorpej 55c7ea7c28 Use pread(2) and pwrite(2) rather than lseek(2)/{read,write}(2). 1998-06-30 20:29:39 +00:00
msaitoh 1666d3766d fix return value of kvm_read() and kvm_write() 1998-06-29 20:36:30 +00:00
perry 0b7831a37b remove obsolete register declarations 1998-02-03 19:12:13 +00:00
mrg 395c20ea27 clean up WARNS on the alpha. 1997-10-10 08:45:29 +00:00
mikel b4119f6b37 use <sys/cdefs.h> __RCSID() macro 1997-08-15 02:21:56 +00:00
gwr ab2c3b0106 Call _kvm_mdopen(kd) to do machine-dependent initialization. 1997-08-12 16:28:32 +00:00
thorpej 669065c879 Add missing argument to fprintf(). 1997-04-09 21:11:41 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
pk dbaf74ae49 Check return value of _kvm_initvtop(). 1996-11-09 23:44:53 +00:00
cgd e79d25e2e9 Don't use a kernel database based on the file name, use only
/var/db/kvm.db, and only use that if no kernel namelist file
is named.  Update the documentation to describe this.
1996-10-12 00:50:11 +00:00
cgd 8cf4d8ab67 some spaces -> tabs 1996-10-04 03:34:09 +00:00
cgd 2af2958a7d add code so that if kvm_nlist() failed because __fdnlist() failed,
kvm_geterr() actually provides useful information rather than just an
empty string.
1996-10-01 18:56:11 +00:00
leo fa72190309 Fix the empty error message problem more completely. When the magic-check
fails on the cpu_hdr, return 0 instead of -1. This allows the caller to
distinguise between fatal errors and 'nothing there'.
1996-06-23 20:28:05 +00:00
leo cca068a144 Fix the mysterious empty error message when savecore is executed and no
dump is present. This was caused by the fact that kvm_dump_mkheader() was
called *before* savecore checks the dump magic and kvm_dump_mkheader() returned
-1 without setting an error message. The latter is fixed now.
1996-06-23 13:56:54 +00:00
gwr 82118b75d6 Allow more flexibility in the format of cpu_kcore_hdr_t and isolate
the knowledge of that struct in the machine-dependent module.
1996-05-05 04:31:59 +00:00
thorpej 346e67f879 RCS id police. 1996-03-18 22:33:07 +00:00
leo be74d305c7 Nuke the kd_live argument to kvm_dump_mkheader(). it's not needed anymore... 1996-03-18 21:14:44 +00:00
leo 9c2128ecdd New libkvm/savecore implementation. With the following differences:
1) savecore will not access the dump or live-kernel directly. It
        will always use the kvm-functions. Allowing it to work on kernels
        that don't have a 1-1 PA-VA mapping.
     2) the kvm-lib has some additional functions to accomplish 1
          - kvm_dump_mkheader()
          - kvm_dump_wrtheader()
          - kvm_dump_inval()
     3) the file formats of the dump generated by the kernel and the dump
        generated by savecore have been changed. The file format now looks
        like the format produced for 'normal' core dumps.
Ports not yet supporting the new kvm-format will be using libkvm.old/
savecore.old for the time being.
1996-03-16 10:23:29 +00:00
cgd 00fd6050b6 slight type cleanup. add some prototypes for internal functions,
some 'const' poisoning, some lvalue lossage.
1995-07-04 03:03:30 +00:00
mycroft 6506fa2b16 Use the new ps_strings format. Find the arguments using their
addresses in the argv array, rather than guessing based on the location
of NULs.
1995-05-16 14:21:08 +00:00
mycroft c304971439 Eliminate _kvm_uvatop(), in favor of using the machine-independent VM structures. 1995-01-09 08:59:25 +00:00
mycroft b707f8aa13 Move the swap page buffer into struct __kvm. Cache the page size during
kvm_open().  Fix an existing memory leak.
1994-09-18 01:52:01 +00:00
cgd 429f62a616 clean up import 1994-05-09 03:17:28 +00:00
cgd 3edc6dae4e field name change, and safety (minor) 1994-05-05 06:03:26 +00:00
cgd 25718695be update for changed flags 1994-05-05 02:04:10 +00:00
briggs d036d0a3e0 Add mac68k to amiga in looking for cpu040. 1994-04-23 02:41:59 +00:00
cgd 5cf4188e1c kill end-check bug. 1994-04-17 04:48:31 +00:00
cgd 8d3d58da00 queue foo 1994-04-15 23:36:38 +00:00
cgd ce2b1e5418 quiet compiler, too 1994-03-31 06:08:28 +00:00
cgd af2b263be0 bad cast, pointed out by Rafal Boni 1994-03-31 06:06:00 +00:00
phil 60b49f98f2 Adding a ns32k definition for X_DEADKERNEL. 1994-03-01 22:14:13 +00:00
pk 7b1fbb1ca1 Sparc specific memory translations.
Some reorganization of the kernel nlist array.
1994-02-14 13:46:01 +00:00
chopps 3ed937bcf0 temporary additional lookup of cpu040 for amiga's until new kvm stuff or new
amiga 040 VM stuff.
1994-02-14 04:34:42 +00:00
mycroft 22eaa1f29e Always read CLBYTES chunks, and cache the last one read. Don't allocate two
large arrays statically.
1994-02-01 02:17:21 +00:00
cgd 3a44018403 get rid of the awful RSS hack 1994-01-07 19:10:06 +00:00
mycroft cbe3d33b6d P[GD]_SHIFT --> P[GD]SHIFT 1993-12-15 00:50:45 +00:00
cgd f7c20a904e look for m68k, rather than hp300 or amiga 1993-12-05 00:33:30 +00:00
mycroft ababab0671 Forgot to initialize `cp' in setsyserr(). 1993-10-13 15:49:55 +00:00
mycroft db3323c9ef Remove code for old VM system. Don't use page tables in kvm_procread().
Change `#if DEBUG' to `#ifdef DEBUG'.  Read some symbols from the kernel
only once.
1993-10-02 07:07:43 +00:00
mycroft 669b9e506a Last change was almost correct, but we have to check that the pager actually
has the page.  If not, we go up the shadow chain.
1993-08-16 07:27:06 +00:00