The NetBSD Project

CVS log for src/lib/libkvm/kvm.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libkvm

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.111 / (download) - annotate - [select for diffs], Wed Aug 23 14:00:11 2023 UTC (7 months ago) by rin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.110: +6 -6 lines
Diff to previous 1.110 (colored) to selected 1.79 (colored)

libkvm: whitespace

Revision 1.110 / (download) - annotate - [select for diffs], Mon Jan 10 19:51:30 2022 UTC (2 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.109: +3 -3 lines
Diff to previous 1.109 (colored) to selected 1.79 (colored)

Get rid of usrstack/USRSTACK. Document that the old version of getargv is
broken because of ASLR.

Revision 1.109 / (download) - annotate - [select for diffs], Sat May 2 14:31:13 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.108: +4 -4 lines
Diff to previous 1.108 (colored) to selected 1.79 (colored)

Cast off_t to size_t to appease lint:
warning: conversion from 'long long' to 'int' may lose accuracy

Revision 1.108 / (download) - annotate - [select for diffs], Tue Apr 28 14:27:41 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.107: +2 -4 lines
Diff to previous 1.107 (colored) to selected 1.79 (colored)

Don't treat failure to map the file as fatal.

Revision 1.107 / (download) - annotate - [select for diffs], Tue Apr 28 00:19:23 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.106: +11 -2 lines
Diff to previous 1.106 (colored) to selected 1.79 (colored)

make kvm_pread use the mapped buffer if it is available.

Revision 1.106 / (download) - annotate - [select for diffs], Tue Apr 28 00:12:01 2020 UTC (3 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.105: +63 -5 lines
Diff to previous 1.105 (colored) to selected 1.79 (colored)

Implement kvm_write() for dump files. We map the file privately so that
changes don't get propagated back, and then write to the private buffer.
This is not useful yes, but it is simple enough to make pread use the buffer
if it is available.

Revision 1.103.4.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:14 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.103.4.1: +8 -3 lines
Diff to previous 1.103.4.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored) to selected 1.79 (colored)

Merge changes from current as of 20200406

Revision 1.104.2.1 / (download) - annotate - [select for diffs], Sun Mar 8 10:57:15 2020 UTC (4 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.104: +8 -3 lines
Diff to previous 1.104 (colored) next main 1.105 (colored) to selected 1.79 (colored)

Pull up following revision(s) (requested by chs in ticket #763):

	lib/libkvm/kvm.c: revision 1.105
	lib/libkvm/kvm_x86_64.c: revision 1.11

only do bounce buffering for character devices.

use a binary search in _kvm_pa2off().  this helps a lot for sparse dumps,
which can have millions of memory segments.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Mar 8 00:06:42 2020 UTC (4 years ago) by chs
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406
Changes since 1.104: +8 -3 lines
Diff to previous 1.104 (colored) to selected 1.79 (colored)

only do bounce buffering for character devices.

Revision 1.103.4.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:24 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.103: +6 -3 lines
Diff to previous 1.103 (colored) to selected 1.79 (colored)

Sync with HEAD

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:12 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.103: +6 -3 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.79 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.104 / (download) - annotate - [select for diffs], Mon Nov 5 00:43:30 2018 UTC (5 years, 4 months ago) by mrg
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp
Branch point for: netbsd-9
Changes since 1.103: +6 -3 lines
Diff to previous 1.103 (colored) to selected 1.79 (colored)

initialise the kvm errbuf so that if an error occurs, but the
internal _kvm_*err() functions aren't called, stack garbage is
not reported as an error string.

call _kvm_err() if _kvm_kvatop() fails.  now the above is not
triggered anymore :-)

Revision 1.103 / (download) - annotate - [select for diffs], Wed Feb 7 14:03:18 2018 UTC (6 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.102: +4 -30 lines
Diff to previous 1.102 (colored) to selected 1.79 (colored)

Keep /dev/ksyms open in _kvm_open(). This way /dev/ksyms can be put into
$g_kmem without breaking the tools that need kmem+ksyms.

Discussed on tech-kern@ three weeks ago. The original issue was reported
by maya@, the patch was written by Tom Ivar Helbekkmo, ok christos@.

Revision 1.102 / (download) - annotate - [select for diffs], Tue Mar 29 06:51:40 2016 UTC (8 years ago) by mrg
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Changes since 1.101: +10 -5 lines
Diff to previous 1.101 (colored) to selected 1.79 (colored)

distinguish between partial and failed read, so that "read 0xffffffff bytes failed"
is not output..

Revision 1.100.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:02:17 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.100: +2 -3 lines
Diff to previous 1.100 (colored) next main 1.101 (colored) to selected 1.79 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.99.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:36:56 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.99.2.1: +2 -3 lines
Diff to previous 1.99.2.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.79 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.101 / (download) - annotate - [select for diffs], Wed Feb 19 20:21:22 2014 UTC (10 years, 1 month ago) by dsl
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.100: +2 -3 lines
Diff to previous 1.100 (colored) to selected 1.79 (colored)

Remove the #include <sys/user.h> from all of libkvm.
sys/user.h is a stub that just #includes sys/pcb.h.
There are no 'struct pcb' anywhere in here, so I'm extremely doubtful
any of the builds will fail.
OTOH it might be relying on a header that pcb.h includes.
In any case i386 and amd64 build.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Tue Oct 30 18:59:11 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.99: +21 -7 lines
Diff to previous 1.99 (colored) to selected 1.79 (colored)

sync with head

Revision 1.100 / (download) - annotate - [select for diffs], Sun Aug 26 23:09:42 2012 UTC (11 years, 7 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, agc-symver-base, agc-symver
Branch point for: tls-maxphys
Changes since 1.99: +21 -7 lines
Diff to previous 1.99 (colored) to selected 1.79 (colored)

Do not fail kvm_dump_mkheader without setting an error message

Revision 1.99 / (download) - annotate - [select for diffs], Sat Oct 15 21:08:53 2011 UTC (12 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: yamt-pagecache
Changes since 1.98: +8 -30 lines
Diff to previous 1.98 (colored) to selected 1.79 (colored)

kill open_cloexec()

Revision 1.98 / (download) - annotate - [select for diffs], Mon Sep 12 21:11:32 2011 UTC (12 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.97: +10 -2 lines
Diff to previous 1.97 (colored) to selected 1.79 (colored)

add a function to report the name of the file kvm_open{,.files} is using.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Nov 26 22:01:53 2010 UTC (13 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.96: +3 -3 lines
Diff to previous 1.96 (colored) to selected 1.79 (colored)

Return error on failure instead of hiding it and always returning zero.
From Henning Petersen in PR 44152.

Revision 1.96 / (download) - annotate - [select for diffs], Sat Oct 23 14:34:12 2010 UTC (13 years, 5 months ago) by stacktic
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) to selected 1.79 (colored)

Do not return -1 on _kvm_read when all the requested data could be read (fix bin/38648)

Revision 1.95 / (download) - annotate - [select for diffs], Mon Sep 20 23:23:16 2010 UTC (13 years, 6 months ago) by jym
Branch: MAIN
Changes since 1.94: +7 -6 lines
Diff to previous 1.94 (colored) to selected 1.79 (colored)

Change kvm_pa2off() and kvm_kvatop() prototypes (private to kvm(3)):

-int     _kvm_kvatop(kvm_t *, u_long, u_long *);
-off_t   _kvm_pa2off(kvm_t *, u_long);
+int     _kvm_kvatop(kvm_t *, vaddr_t, paddr_t *);
+off_t   _kvm_pa2off(kvm_t *, paddr_t);

Basically, use vaddr_t for VA and paddr_t for PA. In addition, for variables
representing addresses, use paddr_t or vaddr_t, depending on the context.

For most arches, vaddr_t and paddr_t are equivalent to unsigned long. However,
the change was needed for exotic situations, like i386 PAE, were unsigned long
is not suitable for PA which are 64 bits long. As this required a complete
change of the function prototypes, all arches had to be adapted accordingly.

Core files from before this commit should still work with the new code; I did
not see any direct dependency between core's structure and kvatop/pa2off.

The change was compile tested for all arches, as it impacts all of them.

See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html

Revision 1.94 / (download) - annotate - [select for diffs], Mon Sep 14 19:29:20 2009 UTC (14 years, 6 months ago) by apb
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.93: +27 -33 lines
Diff to previous 1.93 (colored) to selected 1.79 (colored)

Move the code that tries to open _PATH_KSYMS first into a common path,
so that it is used both for the /dev/mem case and the core dump case.

Output from savecore(8) before:
    savecore - - - (null): kvm_openfiles: /netbsd: No such file or directory
and after:
    savecore - - - no core dump

Revision 1.93 / (download) - annotate - [select for diffs], Thu Aug 20 11:18:55 2009 UTC (14 years, 7 months ago) by he
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) to selected 1.79 (colored)

Anoter instance of <sys/exec_aout.h> -> <sys/exec.h>.

Revision 1.87.10.2 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:27 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.87.10.1: +79 -27 lines
Diff to previous 1.87.10.1 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored) to selected 1.79 (colored)

sync with HEAD

Revision 1.92 / (download) - annotate - [select for diffs], Tue Jan 15 14:16:30 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base
Changes since 1.91: +20 -6 lines
Diff to previous 1.91 (colored) to selected 1.79 (colored)

... and make kvm_dump_inval() work on the raw device.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Jan 15 13:57:41 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.90: +61 -23 lines
Diff to previous 1.90 (colored) to selected 1.79 (colored)

Handle reading from raw disk devices.

Revision 1.87.10.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:25 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.87: +72 -99 lines
Diff to previous 1.87 (colored) to selected 1.79 (colored)

sync with HEAD

Revision 1.90 / (download) - annotate - [select for diffs], Thu Nov 8 21:58:26 2007 UTC (16 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: matt-armv6-base, cube-autoconf-base, cube-autoconf
Changes since 1.89: +3 -3 lines
Diff to previous 1.89 (colored) to selected 1.79 (colored)

Fix a typo in the last change that broke a comparision.

Revision 1.89 / (download) - annotate - [select for diffs], Thu Nov 8 20:48:05 2007 UTC (16 years, 4 months ago) by joerg
Branch: MAIN
Changes since 1.88: +47 -27 lines
Diff to previous 1.88 (colored) to selected 1.79 (colored)

Add kvm_dump_header and implement kvm_dump_wrtheader on top of it.
This function allows the caller finer control of how the writes happen
and doesn't force stdio as interface. Optimise clear_gap a bit to not
fill the gap byte-wise. Bump minor version of libkvm.

Revision 1.88 / (download) - annotate - [select for diffs], Thu Nov 8 17:32:30 2007 UTC (16 years, 4 months ago) by joerg
Branch: MAIN
Changes since 1.87: +30 -77 lines
Diff to previous 1.87 (colored) to selected 1.79 (colored)

ANSIfy.

Revision 1.87 / (download) - annotate - [select for diffs], Thu May 11 12:00:20 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: matt-armv6
Changes since 1.86: +3 -2 lines
Diff to previous 1.86 (colored) to selected 1.79 (colored)

#include a necessary header directly, rather than via user.h.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Mar 21 23:47:51 2006 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.85: +5 -4 lines
Diff to previous 1.85 (colored) to selected 1.79 (colored)

Coverity CID 881: Always print an error if allocation failed.
If the program is not specified use getprogname()

Revision 1.85 / (download) - annotate - [select for diffs], Thu Feb 16 20:48:42 2006 UTC (18 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.84: +17 -14 lines
Diff to previous 1.84 (colored) to selected 1.79 (colored)

1. Eliminate some unnecessary to kvm_{m,re}alloc.
2. Don't malloc/free procbase/procbase2/lwpbase continuously. Keep track
   of the size, and only do it if necessary.
3. Write a macro to malloc/realloc and set the size of members so that it
   is done correctly. Previous open coded version in kvm_file.c always
   set the length, which is incorrect.
4. Remove bogus check against INT_MAX.
5. use NULL to initialize pointers instead of 0.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Jul 30 16:32:29 2005 UTC (18 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.83: +7 -4 lines
Diff to previous 1.83 (colored) to selected 1.79 (colored)

as swap is now optional, ENXIO on /dev/drum is normal.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:08 2004 UTC (20 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored) to selected 1.79 (colored)

Uppercase CPU, plural is CPUs.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Nov 4 14:59:10 2003 UTC (20 years, 4 months ago) by cube
Branch: MAIN
Changes since 1.81: +33 -4 lines
Diff to previous 1.81 (colored) to selected 1.79 (colored)

When using /dev/ksyms, don't keep it open more than strictly necessary.
This allows LKM manipulation while an application using libkvm, such as
vmstat or gkrellm, is running.

Patch reviewed by Anders Magnusson.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Aug 7 16:44:36 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.80: +3 -7 lines
Diff to previous 1.80 (colored) to selected 1.79 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Mon Jun 16 13:41:19 2003 UTC (20 years, 9 months ago) by grant
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.70: +39 -8 lines
Diff to previous 1.70 (colored) next main 1.71 (colored) to selected 1.79 (colored)

Pull up revision 1.65.4.2 from netbsd-1-5 branch (requested by david in
ticket #1255):

Set the close-on-exec bit on all file descriptors we open. Inspired by
a FreeBSD security advisory.

Revision 1.80 / (download) - annotate - [select for diffs], Sun May 11 13:37:34 2003 UTC (20 years, 10 months ago) by ragge
Branch: MAIN
Changes since 1.79: +18 -132 lines
Diff to previous 1.79 (colored)

Make the kvm routines use /dev/ksyms to get the kernel namelist.
If it fails, use /netbsd instead.

Revision 1.79 / (download) - annotate - [selected], Sat Jan 18 10:40:41 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.78: +6 -2 lines
Diff to previous 1.78 (colored)

Merge the nathanw_sa branch.

Revision 1.70.2.3 / (download) - annotate - [select for diffs], Thu Dec 19 02:26:14 2002 UTC (21 years, 3 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.70.2.2: +68 -40 lines
Diff to previous 1.70.2.2 (colored) to branchpoint 1.70 (colored) next main 1.71 (colored) to selected 1.79 (colored)

Sync with HEAD.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Nov 16 23:34:30 2002 UTC (21 years, 4 months ago) by itojun
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.79 (colored)

use strlcpy to ensure string termination

Revision 1.65.4.2 / (download) - annotate - [select for diffs], Thu Sep 19 18:54:19 2002 UTC (21 years, 6 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.65.4.1: +39 -8 lines
Diff to previous 1.65.4.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.79 (colored)

lib/libkvm/kvm.c				1.72-1.75,1.77

  Set the close-on-exec bit on all file descriptors we open. Inspired by a
  FreeBSD security advisory.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Sep 17 21:37:13 2002 UTC (21 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.76: +5 -5 lines
Diff to previous 1.76 (colored) to selected 1.79 (colored)

Use FD_CLOEXEC instead of `1' and don't cast.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Sep 17 20:34:08 2002 UTC (21 years, 6 months ago) by atatat
Branch: MAIN
Changes since 1.75: +28 -4 lines
Diff to previous 1.75 (colored) to selected 1.79 (colored)

Default using the value of machdep.booted_kernel from sysctl() if it
is available and points to a file.  The value of "/netbsd" is still
the ultimate fallback.

Revision 1.75 / (download) - annotate - [select for diffs], Tue Sep 17 19:50:48 2002 UTC (21 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.74: +4 -8 lines
Diff to previous 1.74 (colored) to selected 1.79 (colored)

another SETFL->SETFD

Revision 1.74 / (download) - annotate - [select for diffs], Tue Sep 17 19:38:26 2002 UTC (21 years, 6 months ago) by drochner
Branch: MAIN
Changes since 1.73: +3 -5 lines
Diff to previous 1.73 (colored) to selected 1.79 (colored)

actually do the close-on-exec

Revision 1.73 / (download) - annotate - [select for diffs], Mon Sep 16 17:20:45 2002 UTC (21 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.72: +44 -7 lines
Diff to previous 1.72 (colored) to selected 1.79 (colored)

Set the close-on-exec bit on all file descriptors we open. Inspired by a
FreeBSD security advisory.

Reviewed by thorpej

Revision 1.72 / (download) - annotate - [select for diffs], Thu Aug 8 01:30:09 2002 UTC (21 years, 7 months ago) by soren
Branch: MAIN
Changes since 1.71: +3 -3 lines
Diff to previous 1.71 (colored) to selected 1.79 (colored)

Don't omit third argument to open(2).
PR lib/15752 from Stephen Ma.

Revision 1.71 / (download) - annotate - [select for diffs], Sun May 26 18:33:25 2002 UTC (21 years, 10 months ago) by wiz
Branch: MAIN
Changes since 1.70: +3 -30 lines
Diff to previous 1.70 (colored) to selected 1.79 (colored)

__STDC__ is always defined on NetBSD.

Revision 1.70.2.2 / (download) - annotate - [select for diffs], Tue Apr 23 20:10:19 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.70.2.1: +964 -0 lines
Diff to previous 1.70.2.1 (colored) to branchpoint 1.70 (colored) to selected 1.79 (colored)

Make libkvm able to cope with a LWPified kernel.

Add a kvm_getlwps() function to retrieve the LWPs of a specific process.

Revision 1.70.2.1, Tue Sep 18 18:15:49 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.70: +0 -960 lines
FILE REMOVED

file kvm.c was added on branch nathanw_sa on 2002-04-23 20:10:19 +0000

Revision 1.70 / (download) - annotate - [select for diffs], Tue Sep 18 18:15:49 2001 UTC (22 years, 6 months ago) by wiz
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6, nathanw_sa
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.79 (colored)

Give initiali[sz]e all the "i"s it deserves.

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Sat Feb 3 20:32:33 2001 UTC (23 years, 1 month ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored) to selected 1.79 (colored)

Pull up revision 1.69 (requested by msaitoh):
  Add forgotten initialization.  Fixes PR#11446.

Revision 1.69 / (download) - annotate - [select for diffs], Thu Nov 16 08:57:15 2000 UTC (23 years, 4 months ago) by msaitoh
Branch: MAIN
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored) to selected 1.79 (colored)

Add forgotten initialization.
Fixed PR#11446.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Wed Oct 4 16:22:12 2000 UTC (23 years, 5 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.63: +3 -3 lines
Diff to previous 1.63 (colored) next main 1.64 (colored) to selected 1.79 (colored)

Pull up revision 1.68 (requested by sommerfeld):
  Format string audit.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Oct 4 16:11:27 2000 UTC (23 years, 5 months ago) by sommerfeld
Branch: MAIN
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored) to selected 1.79 (colored)

format-string audit cleanups

Revision 1.67 / (download) - annotate - [select for diffs], Thu Jun 29 06:34:22 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored) to selected 1.79 (colored)

<vm/vm.h> -> <uvm/uvm_extern.h>

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jun 26 15:34:55 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.65: +2 -3 lines
Diff to previous 1.65 (colored) to selected 1.79 (colored)

remove redundant vm includes

Revision 1.65 / (download) - annotate - [select for diffs], Fri May 26 02:42:21 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.64: +22 -4 lines
Diff to previous 1.64 (colored) to selected 1.79 (colored)

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.

Revision 1.64 / (download) - annotate - [select for diffs], Fri Jul 2 15:28:49 1999 UTC (24 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, comdex-fall-1999-base, comdex-fall-1999
Changes since 1.63: +9 -9 lines
Diff to previous 1.63 (colored) to selected 1.79 (colored)

More trailing white space.

Revision 1.63 / (download) - annotate - [select for diffs], Thu Apr 1 09:53:09 1999 UTC (25 years ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Changes since 1.62: +2 -3 lines
Diff to previous 1.62 (colored) to selected 1.79 (colored)

Nuke swap_pager.h.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Sep 27 18:15:58 1998 UTC (25 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.61: +10 -11 lines
Diff to previous 1.61 (colored) to selected 1.79 (colored)

Remove lint

Revision 1.61 / (download) - annotate - [select for diffs], Mon Aug 10 02:46:06 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.60: +9 -9 lines
Diff to previous 1.60 (colored) to selected 1.79 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.60 / (download) - annotate - [select for diffs], Sat Aug 1 21:29:41 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.59: +16 -15 lines
Diff to previous 1.59 (colored) to selected 1.79 (colored)

Remove some lint.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jul 26 18:00:50 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.79 (colored)

const poisoning.

Revision 1.58 / (download) - annotate - [select for diffs], Tue Jun 30 20:40:44 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.57: +33 -36 lines
Diff to previous 1.57 (colored) to selected 1.79 (colored)

Oops, missed a couple of pread(2) uses.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Jun 30 20:29:39 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.56: +9 -29 lines
Diff to previous 1.56 (colored) to selected 1.79 (colored)

Use pread(2) and pwrite(2) rather than lseek(2)/{read,write}(2).

Revision 1.56 / (download) - annotate - [select for diffs], Mon Jun 29 20:36:30 1998 UTC (25 years, 9 months ago) by msaitoh
Branch: MAIN
Changes since 1.55: +9 -9 lines
Diff to previous 1.55 (colored) to selected 1.79 (colored)

fix return value of kvm_read() and kvm_write()

Revision 1.55 / (download) - annotate - [select for diffs], Tue Feb 3 19:12:42 1998 UTC (26 years, 1 month ago) by perry
Branch: MAIN
Changes since 1.54: +22 -22 lines
Diff to previous 1.54 (colored) to selected 1.79 (colored)

remove obsolete register declarations

Revision 1.54 / (download) - annotate - [select for diffs], Fri Oct 10 08:45:31 1997 UTC (26 years, 5 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored) to selected 1.79 (colored)

clean up WARNS on the alpha.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Aug 15 02:21:56 1997 UTC (26 years, 7 months ago) by mikel
Branch: MAIN
Changes since 1.52: +3 -2 lines
Diff to previous 1.52 (colored) to selected 1.79 (colored)

use <sys/cdefs.h> __RCSID() macro

Revision 1.52 / (download) - annotate - [select for diffs], Tue Aug 12 16:28:32 1997 UTC (26 years, 7 months ago) by gwr
Branch: MAIN
Changes since 1.51: +11 -2 lines
Diff to previous 1.51 (colored) to selected 1.79 (colored)

Call _kvm_mdopen(kd) to do machine-dependent initialization.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Apr 9 21:11:41 1997 UTC (26 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.79 (colored)

Add missing argument to fprintf().

Revision 1.50 / (download) - annotate - [select for diffs], Thu Jan 23 14:02:52 1997 UTC (27 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.49: +4 -4 lines
Diff to previous 1.49 (colored) to selected 1.79 (colored)

- convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.

Revision 1.49 / (download) - annotate - [select for diffs], Sat Nov 9 23:44:53 1996 UTC (27 years, 4 months ago) by pk
Branch: MAIN
Changes since 1.48: +5 -5 lines
Diff to previous 1.48 (colored) to selected 1.79 (colored)

Check return value of _kvm_initvtop().

Revision 1.48 / (download) - annotate - [select for diffs], Sat Oct 12 00:50:11 1996 UTC (27 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.47: +14 -20 lines
Diff to previous 1.47 (colored) to selected 1.79 (colored)

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.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Oct 4 03:34:09 1996 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.46: +6 -6 lines
Diff to previous 1.46 (colored) to selected 1.79 (colored)

some spaces -> tabs

Revision 1.46 / (download) - annotate - [select for diffs], Tue Oct 1 18:56:14 1996 UTC (27 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.45: +9 -5 lines
Diff to previous 1.45 (colored) to selected 1.79 (colored)

add code so that if kvm_nlist() failed because __fdnlist() failed,
kvm_geterr() actually provides useful information rather than just an
empty string.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jun 23 20:28:05 1996 UTC (27 years, 9 months ago) by leo
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.79 (colored)

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'.

Revision 1.44 / (download) - annotate - [select for diffs], Sun Jun 23 13:56:54 1996 UTC (27 years, 9 months ago) by leo
Branch: MAIN
Changes since 1.43: +6 -5 lines
Diff to previous 1.43 (colored) to selected 1.79 (colored)

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.

Revision 1.43 / (download) - annotate - [select for diffs], Sun May 5 04:31:59 1996 UTC (27 years, 11 months ago) by gwr
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.42: +138 -116 lines
Diff to previous 1.42 (colored) to selected 1.79 (colored)

Allow more flexibility in the format of cpu_kcore_hdr_t and isolate
the knowledge of that struct in the machine-dependent module.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Mar 18 22:33:13 1996 UTC (28 years ago) by thorpej
Branch: MAIN
Changes since 1.41: +6 -0 lines
Diff to previous 1.41 (colored) to selected 1.79 (colored)

RCS id police.

Revision 1.41 / (download) - annotate - [select for diffs], Mon Mar 18 21:14:44 1996 UTC (28 years ago) by leo
Branch: MAIN
Changes since 1.40: +30 -34 lines
Diff to previous 1.40 (colored) to selected 1.79 (colored)

Nuke the kd_live argument to kvm_dump_mkheader(). it's not needed anymore...

Revision 1.40 / (download) - annotate - [select for diffs], Sat Mar 16 10:23:49 1996 UTC (28 years ago) by leo
Branch: MAIN
Changes since 1.39: +387 -6 lines
Diff to previous 1.39 (colored) to selected 1.79 (colored)

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.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Jul 4 03:03:30 1995 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.38: +4 -2 lines
Diff to previous 1.38 (colored) to selected 1.79 (colored)

slight type cleanup.  add some prototypes for internal functions,
some 'const' poisoning, some lvalue lossage.

Revision 1.38 / (download) - annotate - [select for diffs], Tue May 16 14:21:08 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +3 -0 lines
Diff to previous 1.37 (colored) to selected 1.79 (colored)

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.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Jan 9 08:59:25 1995 UTC (29 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.36: +4 -3 lines
Diff to previous 1.36 (colored) to selected 1.79 (colored)

Eliminate _kvm_uvatop(), in favor of using the machine-independent VM structures.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Sep 18 01:52:01 1994 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.35: +6 -0 lines
Diff to previous 1.35 (colored) to selected 1.79 (colored)

Move the swap page buffer into struct __kvm.  Cache the page size during
kvm_open().  Fix an existing memory leak.

Revision 1.35 / (download) - annotate - [select for diffs], Mon May 9 03:17:35 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.34: +420 -1219 lines
Diff to previous 1.34 (colored) to selected 1.79 (colored)

clean up import

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Mon May 9 03:15:43 1994 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: lite-1
Changes since 1.1.1.1: +422 -1058 lines
Diff to previous 1.1.1.1 (colored) to selected 1.79 (colored)

new libkvm

Revision 1.34 / (download) - annotate - [select for diffs], Thu May 5 06:03:26 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) to selected 1.79 (colored)

field name change, and safety (minor)

Revision 1.33 / (download) - annotate - [select for diffs], Thu May 5 02:04:10 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored) to selected 1.79 (colored)

update for changed flags

Revision 1.32 / (download) - annotate - [select for diffs], Sat Apr 23 02:42:01 1994 UTC (29 years, 11 months ago) by briggs
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored) to selected 1.79 (colored)

Add mac68k to amiga in looking for cpu040.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 17 04:48:31 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored) to selected 1.79 (colored)

kill end-check bug.

Revision 1.30 / (download) - annotate - [select for diffs], Fri Apr 15 23:36:38 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored) to selected 1.79 (colored)

queue foo

Revision 1.29 / (download) - annotate - [select for diffs], Thu Mar 31 06:08:28 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) to selected 1.79 (colored)

quiet compiler, too

Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 31 06:06:00 1994 UTC (30 years ago) by cgd
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored) to selected 1.79 (colored)

bad cast, pointed out by Rafal Boni

Revision 1.27 / (download) - annotate - [select for diffs], Tue Mar 1 22:14:13 1994 UTC (30 years, 1 month ago) by phil
Branch: MAIN
Changes since 1.26: +5 -1 lines
Diff to previous 1.26 (colored) to selected 1.79 (colored)

Adding a ns32k definition for X_DEADKERNEL.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Feb 14 13:46:01 1994 UTC (30 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.25: +100 -32 lines
Diff to previous 1.25 (colored) to selected 1.79 (colored)

Sparc specific memory translations.
Some reorganization of the kernel nlist array.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Feb 14 04:34:44 1994 UTC (30 years, 1 month ago) by chopps
Branch: MAIN
Changes since 1.24: +17 -1 lines
Diff to previous 1.24 (colored) to selected 1.79 (colored)

temporary additional lookup of cpu040 for amiga's until new kvm stuff or new
amiga 040 VM stuff.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Feb 1 02:17:21 1994 UTC (30 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.23: +52 -32 lines
Diff to previous 1.23 (colored) to selected 1.79 (colored)

Always read CLBYTES chunks, and cache the last one read.  Don't allocate two
large arrays statically.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Jan 7 19:10:06 1994 UTC (30 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.22: +1 -3 lines
Diff to previous 1.22 (colored) to selected 1.79 (colored)

get rid of the awful RSS hack

Revision 1.22 / (download) - annotate - [select for diffs], Wed Dec 15 00:53:29 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored) to selected 1.79 (colored)

P[GD]_SHIFT --> P[GD]SHIFT

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 5 00:33:30 1993 UTC (30 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.20: +6 -6 lines
Diff to previous 1.20 (colored) to selected 1.79 (colored)

look for m68k, rather than hp300 or amiga

Revision 1.20 / (download) - annotate - [select for diffs], Wed Oct 13 15:49:55 1993 UTC (30 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored) to selected 1.79 (colored)

Forgot to initialize `cp' in setsyserr().

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 2 07:07:43 1993 UTC (30 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +115 -425 lines
Diff to previous 1.18 (colored) to selected 1.79 (colored)

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.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Aug 16 07:27:06 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +64 -31 lines
Diff to previous 1.17 (colored) to selected 1.79 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Aug 15 13:57:51 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +8 -8 lines
Diff to previous 1.16 (colored) to selected 1.79 (colored)

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.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 15 01:54:29 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.15: +44 -21 lines
Diff to previous 1.15 (colored) to selected 1.79 (colored)

Fix a bug in virtual to physical address translation on hp300s, and add support
for Amigas.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 14 11:47:51 1993 UTC (30 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.14: +6 -4 lines
Diff to previous 1.14 (colored) to selected 1.79 (colored)

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...

Revision 1.14 / (download) - annotate - [select for diffs], Sat Aug 14 11:44:45 1993 UTC (30 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.13: +12 -6 lines
Diff to previous 1.13 (colored) to selected 1.79 (colored)

implement kvm_procread for the hp300.  now things mostly work on
the hp300, in terms of kvm.  still minor strangeness re: sendmail...

Revision 1.13 / (download) - annotate - [select for diffs], Sat Aug 14 02:20:27 1993 UTC (30 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored) to selected 1.79 (colored)

#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).

Revision 1.12 / (download) - annotate - [select for diffs], Sun Aug 1 18:31:57 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored) to selected 1.79 (colored)

Add RCS identifiers.

Revision 1.11.2.2 / (download) - annotate - [select for diffs], Mon Jul 19 12:37:14 1993 UTC (30 years, 8 months ago) by mycroft
Branch: netbsd-0-9
Changes since 1.11.2.1: +1479 -0 lines
Diff to previous 1.11.2.1 (colored) to branchpoint 1.11 (colored) next main 1.12 (colored) to selected 1.79 (colored)

Read swap in CLBYTES blocks.

Revision 1.11.2.1, Mon Jul 19 12:37:13 1993 UTC (30 years, 8 months ago) by mycroft
Branch: netbsd-0-9
Changes since 1.11: +0 -1479 lines
FILE REMOVED

file kvm.c was added on branch netbsd-0-9 on 1993-07-19 12:37:14 +0000

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 19 12:37:13 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA
Branch point for: netbsd-0-9
Changes since 1.10: +24 -17 lines
Diff to previous 1.10 (colored) to selected 1.79 (colored)

Read swap in CLBYTES blocks.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jun 15 07:16:06 1993 UTC (30 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +12 -8 lines
Diff to previous 1.9 (colored) to selected 1.79 (colored)

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)

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jun 1 01:48:36 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored) to selected 1.79 (colored)

misc minor changes

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jun 1 01:35:01 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.7: +166 -193 lines
Diff to previous 1.7 (colored) to selected 1.79 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 20 11:53:04 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored) to selected 1.79 (colored)

don't inlude select.h, but keep header cleanups

Revision 1.6 / (download) - annotate - [select for diffs], Thu May 20 10:30:31 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.5: +3 -9 lines
Diff to previous 1.5 (colored) to selected 1.79 (colored)

fix new select stuff

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 11 06:44:54 1993 UTC (30 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored) to selected 1.79 (colored)

fix problem where kvm_getprocs(), ..., kvm_freeprocs(), kvm_getprocs()
would get no processes.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 27 20:58:44 1993 UTC (30 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +12 -5 lines
Diff to previous 1.3 (colored) to selected 1.79 (colored)

Fix memory leak.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Apr 10 15:02:41 1993 UTC (30 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.2: +300 -35 lines
Diff to previous 1.2 (colored) to selected 1.79 (colored)

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.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (31 years ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2
Changes since 1.1: +82 -28 lines
Diff to previous 1.1 (colored) to selected 1.79 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.79 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN
Diff to selected 1.79 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>