Commit Graph

198 Commits

Author SHA1 Message Date
cgd 1d7d5ec2f8 add support for real KV addresses, and clean up some. 1996-10-01 21:12:05 +00:00
cgd 4540a28ede Real alpha support, minus actual KV -> physical translation. (Does K0SEG ->
physical translation, though, which is enough for e.g. dmesg and vmstat -i.)
1996-10-01 19:04:02 +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
cgd 51e3315ea1 stub _kvm_pa2off so that new libkvm links 1996-10-01 14:37:00 +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
mrg ef2bde6bce update to reflect reality. 1996-05-20 16:58:03 +00:00
leo 287a3d660a Fix small typo in last commit. 1996-05-07 06:09:11 +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
cgd 82501b607b sync with libkvm.old sources (change committed by pk):
>Catch up with system PMAP.
1996-04-01 19:23:03 +00:00
mrg 301aee8168 libkvm has totally changed, bump major version. 1996-03-20 23:11:56 +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 c458aad2bf Add a manual page for the kvm_dump_* functions. 1996-03-18 21:11:10 +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
mycroft bd267b1b3c Clean up a bit. 1996-03-08 10:45:16 +00:00
mark d1c55d0bd8 Initial commit of the libkvm code for the arm32 port. 1996-02-02 15:35:41 +00:00
phil 57cd9a2c29 Update for recent changes in the kernel. 1996-02-01 07:24:37 +00:00
cgd 46d2a53848 reminder to not forget k0seg translations. (nothing done here yet, though.) 1995-09-29 03:57:48 +00:00
pk 16e30a94d1 Deal with crash dumps again. 1995-07-05 18:41:25 +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
briggs bc09c2e1b0 Take out cpu040 case for mac68k. 1995-07-01 19:26:03 +00:00
cgd d8eaa29f0f fix a piece of sloppy coding on my part. gdb -k still doesn't work, though. 1995-06-29 11:41:45 +00:00
cgd 64b09480bb update to match reality. 1995-06-26 13:19:27 +00:00
mycroft ee7138ecea Fix up the last argv pointer correctly when terminating early. 1995-05-25 03:03:42 +00:00
mycroft ac582e04f5 Fix one more reallocing bug. 1995-05-18 13:59:25 +00:00
mycroft 70258d9a3a Fix up another pointer if we realloc the argument list. 1995-05-18 12:21:54 +00:00
mycroft 470f22b967 Update copyright. 1995-05-16 14:26:15 +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
ragge 5993e44288 kvm_vax.c added. 1995-04-25 15:41:11 +00:00
ragge 460abf6176 kvm machine specific code for VAX. 1995-04-17 12:44:34 +00:00
pk 3c8e6db690 Disable "dead kernel" stuff until we have something new. 1995-04-13 19:32:40 +00:00
chopps b331e63615 should work without specialization now. 1995-04-02 20:45:26 +00:00
jtc a5c856b8c8 KERNEL -> _KERNEL 1995-03-28 17:29:16 +00:00
jtc ae0b9c2010 KERNEL -> _KERNEL 1995-03-28 17:18:59 +00:00
cgd 5eecfd8983 stubs. 1995-02-10 17:51:56 +00:00
pk 762232f3d7 The sparc port no longer needs special casing. 1995-01-12 16:30:52 +00:00
mycroft c304971439 Eliminate _kvm_uvatop(), in favor of using the machine-independent VM structures. 1995-01-09 08:59:25 +00:00
cgd ae9172d6cd specify man pages the new way. 1994-12-22 09:57:51 +00:00
deraadt 12e0db7fb1 make this work (with a horrible hack for determining the cputyp) 1994-11-02 04:51:38 +00:00
cgd 8c814fd78b fix type of variables, add headers, protos, where necessary. 1994-10-19 03:03:39 +00:00
mycroft 09aa8eb440 Clean up deleted files. 1994-09-18 03:32:52 +00:00
mycroft 96e437894b Merge the m68k files. The code itself should be merged. 1994-09-18 03:32:50 +00:00
deraadt fdf894abcd should work for sun4 and sun4c 1994-09-18 02:32:50 +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
deraadt dbccee1a87 Don't use NBPG/PGOFSET/PGSHIFT. Use getpagesize() and calculate them. 1994-09-18 00:22:22 +00:00
mycroft 0e2293a33e Update to match include files. 1994-08-30 17:39:11 +00:00
mycroft b2ea31e355 Update to match current pmap. 1994-08-15 15:57:36 +00:00
mycroft 6e04a46b3a Don't return garbage if there are no argument and/or environment strings. 1994-08-13 10:15:02 +00:00
jtc 1d1682d63c vmunix -> netbsd (PR #375) 1994-08-06 06:11:03 +00:00
gwr d416f9adc8 Add sun3 support (only "live" kernels for now). 1994-07-28 21:46:34 +00:00
pk 24c3ce74de Changes in pmap structures. 1994-06-10 14:34:58 +00:00
mycroft c812277652 Deal with shadow objects correctly. 1994-05-23 22:22:24 +00:00
phil b1c25077d4 pc532 support in libkvm 1994-05-20 23:31:06 +00:00
pk 62b40e28b0 Fix kvm_uvatop(). 1994-05-18 09:31:52 +00:00
chopps 6c2f28403d add support for current m68k based pmaps till they can be "fixed" 1994-05-16 05:31:19 +00:00
cgd a901a9cb96 just punt for now; don't want to deal with this & don't want it to core 1994-05-09 07:01:14 +00:00
mycroft 715255df06 Clean up deleted files. 1994-05-09 04:09:26 +00:00
cgd 54774f9293 m68k-ify the hp300 kvm file; use MACHINE_ARCH to pick files up 1994-05-09 04:09:21 +00:00
cgd b1b6dfafbe the world has changed 1994-05-09 03:18:05 +00:00
cgd 429f62a616 clean up import 1994-05-09 03:17:28 +00:00
cgd 0215cc7d1f new libkvm 1994-05-09 03:15:36 +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
cgd 19601b5460 _double_ major number bump! joy! 1994-03-27 09:18:25 +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 86b9f0e123 create this in preparation for later. 1994-01-27 23:31:08 +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
mycroft 9b8df6ad33 Fix an off-by-one error when scanning the vm map for a page. Also, if the
page is not in core, don't recurse into shadow objects if we've already found
a pager.
1993-08-15 13:57:51 +00:00
mycroft cfafc9262a Fix a bug in virtual to physical address translation on hp300s, and add support
for Amigas.
1993-08-15 01:54:29 +00:00
cgd 7fa14d416e line 860: use CLSHIFT rather than PGSHIFT.
line 927: fix bogus indentation
also make sure first chars of buffers are null char, just in
case nothing rational is read...
1993-08-14 11:47:51 +00:00
cgd b24744dc1d implement kvm_procread for the hp300. now things mostly work on
the hp300, in terms of kvm.  still minor strangeness re: sendmail...
1993-08-14 11:44:45 +00:00
mycroft a617b72b1f #include <machine/pte.h>, not <hp300/hp300/pte.h>. Also, make it at least
compile for non-i386 architectures, but exit with an error message (for now).
1993-08-14 02:20:27 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft 81c63e588b Read swap in CLBYTES blocks. 1993-07-19 12:37:13 +00:00
deraadt 5c20ccab8b kernel string read function takes much less time. could be optimized further,
by making block reads kernel page aligned. (cgd will make the next optimization
in this file)
1993-06-15 07:16:06 +00:00
cgd 566dd48a95 misc minor changes 1993-06-01 01:48:36 +00:00
cgd 5089c41368 update kvm.c for the new way of doing things:
(1) add support for new stack format/PS_STRINGS
	(2) add support for kvm_getenv
the HP300 support in kvm_procread needs to be looked at/filled in,
from example code in kvm_getu, plus hacks
1993-06-01 01:35:01 +00:00
cgd 12279683e7 don't inlude select.h, but keep header cleanups 1993-05-20 11:53:04 +00:00
cgd 2c6296eff4 fix new select stuff 1993-05-20 10:30:31 +00:00
cgd de5b7fe74a fix problem where kvm_getprocs(), ..., kvm_freeprocs(), kvm_getprocs()
would get no processes.
1993-05-11 06:44:54 +00:00
mycroft 9222eca1f3 Fix memory leak. 1993-04-27 20:58:44 +00:00
cgd ea0119db71 From: pk@cs.few.eur.nl (Paul Kranenburg)
patch which allows ps(1) and w(1) to lay
their hands on process command line arguments.
1993-04-10 15:02:41 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd 61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00