The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.99 / (download) - annotate - [select for diffs], Thu Aug 10 20:38:00 2023 UTC (8 months ago) by mrg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored) to selected 1.81 (colored)

avoid various use-after-free issues.

create a ptrdiff_t offset between the start of an allocation region and
some interesting pointer, so it can be adjusted with this offset after
realloc() returns.

found by GCC 12.

Revision 1.98 / (download) - annotate - [select for diffs], Tue Apr 19 20:32:16 2022 UTC (23 months, 3 weeks ago) by rillig
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.97: +5 -5 lines
Diff to previous 1.97 (colored) to selected 1.81 (colored)

lib: remove CONSTCOND comment

Since 2021-01-31, lint doesn't need it anymore for the common pattern of
'do ... while (0)'.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Jan 10 20:04:01 2022 UTC (2 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.96: +5 -5 lines
Diff to previous 1.96 (colored) to selected 1.81 (colored)

read the ps arguments from the correct place.

Revision 1.96 / (download) - annotate - [select for diffs], Mon Jan 10 19:51:30 2022 UTC (2 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.95: +5 -3 lines
Diff to previous 1.95 (colored) to selected 1.81 (colored)

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

Revision 1.95 / (download) - annotate - [select for diffs], Mon Jul 19 10:30:36 2021 UTC (2 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.94: +5 -3 lines
Diff to previous 1.94 (colored) to selected 1.81 (colored)

Match the declaration in <sys/kauth.h>

Revision 1.92.16.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:07:14 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) next main 1.93 (colored) to selected 1.81 (colored)

Merge changes from current as of 20200406

Revision 1.94 / (download) - annotate - [select for diffs], Wed Dec 11 20:19:27 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.93: +3 -3 lines
Diff to previous 1.93 (colored) to selected 1.81 (colored)

Redo previous more conventionally.  Requested by kre@.

Revision 1.93 / (download) - annotate - [select for diffs], Tue Dec 10 18:13:07 2019 UTC (4 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) to selected 1.81 (colored)

Mask out always zero bits off pg->phys_addr.

Revision 1.92 / (download) - annotate - [select for diffs], Mon Apr 4 22:14:38 2016 UTC (8 years ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, 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, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, 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
Branch point for: phil-wifi
Changes since 1.91: +3 -2 lines
Diff to previous 1.91 (colored) to selected 1.81 (colored)

some ports need <sys/wait.h>

Revision 1.91 / (download) - annotate - [select for diffs], Mon Apr 4 21:08:44 2016 UTC (8 years ago) by christos
Branch: MAIN
Changes since 1.90: +3 -3 lines
Diff to previous 1.90 (colored) to selected 1.81 (colored)

catch up with p_xstat split.

Revision 1.89.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.89: +2 -3 lines
Diff to previous 1.89 (colored) next main 1.90 (colored) to selected 1.81 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.88.6.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.88.6.1: +2 -3 lines
Diff to previous 1.88.6.1 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored) to selected 1.81 (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.90 / (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.89: +2 -3 lines
Diff to previous 1.89 (colored) to selected 1.81 (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.88.6.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.88: +4 -3 lines
Diff to previous 1.88 (colored) to selected 1.81 (colored)

sync with head

Revision 1.88.8.1 / (download) - annotate - [select for diffs], Tue Jun 12 17:18:22 2012 UTC (11 years, 10 months ago) by riz
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.88: +2 -1 lines
Diff to previous 1.88 (colored) next main 1.89 (colored) to selected 1.81 (colored)

Pull up following revision(s) (requested by martin in ticket #310):
	sys/kern/kern_proc.c: revision 1.184
	lib/libkvm/kvm_proc.c: revision 1.89
Measure kinfo_proc2::p_vm_vsize in pages, as it was always documented.
This value seems to never have been used anywhere.
This makes it consistent with it's cousin p_vm_msize (which is in pages as
well and has several uses).

Revision 1.89 / (download) - annotate - [select for diffs], Tue Jun 5 08:23:06 2012 UTC (11 years, 10 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.88: +4 -3 lines
Diff to previous 1.88 (colored) to selected 1.81 (colored)

Measure kinfo_proc2::p_vm_vsize in pages, as it was always documented.
This value seems to never have been used anywhere.
This makes it consistent with it's cousin p_vm_msize (which is in pages as
well and has several uses).

Revision 1.88 / (download) - annotate - [select for diffs], Fri Nov 12 04:52:08 2010 UTC (13 years, 5 months ago) by uebayasi
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.87: +3 -2 lines
Diff to previous 1.87 (colored) to selected 1.81 (colored)

Fix build.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Sep 26 22:28:05 2010 UTC (13 years, 6 months ago) by jym
Branch: MAIN
Changes since 1.86: +2 -5 lines
Diff to previous 1.86 (colored) to selected 1.81 (colored)

Define KREAD() inside kvm_private.h, for reusability.

Revision 1.86 / (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.85: +3 -2 lines
Diff to previous 1.85 (colored) to selected 1.81 (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.85 / (download) - annotate - [select for diffs], Sun Sep 19 02:07:00 2010 UTC (13 years, 7 months ago) by jym
Branch: MAIN
Changes since 1.84: +46 -120 lines
Diff to previous 1.84 (colored) to selected 1.81 (colored)

Ansify and KNF all functions within kvm(3). No objection on current-users@.

Used as ground for u_long => vaddr_t/paddr_t replacements in kvm(3)
private functions.

Compile tested for all arches. See also:

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

Revision 1.84 / (download) - annotate - [select for diffs], Wed Oct 21 21:11:58 2009 UTC (14 years, 5 months ago) by rmind
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.83: +3 -3 lines
Diff to previous 1.83 (colored) to selected 1.81 (colored)

Remove uarea swap-out functionality:

- Addresses the issue described in PR/38828.
- Some simplification in threading and sleepq subsystems.
- Eliminates pmap_collect() and, as a side note, allows pmap optimisations.
- Eliminates XS_CTL_DATA_ONSTACK in scsipi code.
- Avoids few scans on LWP list and thus potentially long holds of proc_lock.
- Cuts ~1.5k lines of code.  Reduces amd64 kernel size by ~4k.
- Removes __SWAP_BROKEN cases.

Tested on x86, mips, acorn32 (thanks <mpumford>) and partly tested on
acorn26 (thanks to <bjh21>).

Discussed on <tech-kern>, reviewed by <ad>.

Revision 1.83 / (download) - annotate - [select for diffs], Sat May 16 11:56:47 2009 UTC (14 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.82: +3 -7 lines
Diff to previous 1.82 (colored) to selected 1.81 (colored)

kvm_getprocs actually works with KVM_NO_FILES.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:34 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.81: +9 -2 lines
Diff to previous 1.81 (colored) next main 1.82 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.78.6.2 / (download) - annotate - [select for diffs], Wed Apr 1 00:25:21 2009 UTC (15 years ago) by snj
Branch: netbsd-5
CVS Tags: 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-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, 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
Changes since 1.78.6.1: +9 -2 lines
Diff to previous 1.78.6.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored) to selected 1.81 (colored)

Pull up following revision(s) (requested by mrg in ticket #622):
	bin/csh/csh.1: revision 1.46
	bin/csh/func.c: revision 1.37
	bin/ps/print.c: revision 1.111
	bin/ps/ps.c: revision 1.74
	bin/sh/miscbltin.c: revision 1.38
	bin/sh/sh.1: revision 1.92 via patch
	external/bsd/top/dist/machine/m_netbsd.c: revision 1.7
	lib/libkvm/kvm_proc.c: revision 1.82
	sys/arch/mips/mips/cpu_exec.c: revision 1.55
	sys/compat/darwin/darwin_exec.c: revision 1.57
	sys/compat/ibcs2/ibcs2_exec.c: revision 1.73
	sys/compat/irix/irix_resource.c: revision 1.15
	sys/compat/linux/arch/amd64/linux_exec_machdep.c: revision 1.16
	sys/compat/linux/arch/i386/linux_exec_machdep.c: revision 1.12
	sys/compat/linux/common/linux_limit.h: revision 1.5
	sys/compat/osf1/osf1_resource.c: revision 1.14
	sys/compat/svr4/svr4_resource.c: revision 1.18
	sys/compat/svr4_32/svr4_32_resource.c: revision 1.17
	sys/kern/exec_subr.c: revision 1.62
	sys/kern/init_sysctl.c: revision 1.160
	sys/kern/kern_exec.c: revision 1.288
	sys/kern/kern_resource.c: revision 1.151
	sys/sys/param.h: patch
	sys/sys/resource.h: revision 1.31
	sys/sys/sysctl.h: revision 1.184
	sys/uvm/uvm_extern.h: revision 1.153
	sys/uvm/uvm_glue.c: revision 1.136
	sys/uvm/uvm_mmap.c: revision 1.128
	usr.bin/systat/ps.c: revision 1.32
- - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes.  this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.
- - adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.
- - add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)
- - patch sh, and csh to notice RLIMIT_AS.  (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)
- - patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.
- - update irix, svr4, svr4_32, linux and osf1 emulations to support
this information.  (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)
this addresses PR 7897.  it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.
tested on i386 and sparc64, build tested on several other platforms.
thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)

Revision 1.82 / (download) - annotate - [select for diffs], Sun Mar 29 01:02:49 2009 UTC (15 years ago) by mrg
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.81: +9 -2 lines
Diff to previous 1.81 (colored)

- add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes.  this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.

- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.

- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)

- patch sh, and csh to notice RLIMIT_AS.  (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)

- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.

- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information.  (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)


this addresses PR 7897.  it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.

tested on i386 and sparc64, build tested on several other platforms.

thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)

Revision 1.81 / (download) - annotate - [selected], Sun Dec 28 19:49:26 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored)

tdev is unsigned

Revision 1.80 / (download) - annotate - [select for diffs], Sun Dec 28 19:46:47 2008 UTC (15 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.79: +4 -4 lines
Diff to previous 1.79 (colored) to selected 1.81 (colored)

cast dev_t's to int32_t because XXX: sysctl can't change size. This should
be not a problem since tty's live in the low part of the dev range.

Revision 1.78.6.1 / (download) - annotate - [select for diffs], Sat Nov 29 21:00:00 2008 UTC (15 years, 4 months ago) by bouyer
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1
Changes since 1.78: +12 -2 lines
Diff to previous 1.78 (colored) to selected 1.81 (colored)

Pull up following revision(s) (requested by cegger in ticket #146):
	lib/libkvm/kvm_proc.c: revision 1.79
check error case for kvm_getlwps or SIGSEGV occurs due to dereferecing a
NULL pointer.
return NULL if there are no threads or proceed further through all loops.
Fixes PR 40004. Ok rmind@

Revision 1.79 / (download) - annotate - [select for diffs], Sat Nov 29 18:24:58 2008 UTC (15 years, 4 months ago) by cegger
Branch: MAIN
Changes since 1.78: +12 -2 lines
Diff to previous 1.78 (colored) to selected 1.81 (colored)

check error case for kvm_getlwps or SIGSEGV occurs due to dereferecing a NULL pointer.
return NULL if there are no threads or proceed further through all loops.
Fixes PR 40004. Ok rmind@

Revision 1.77.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:38 2008 UTC (15 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.77: +2 -9 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.81 (colored)

sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:01 2008 UTC (15 years, 11 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: netbsd-5
Changes since 1.77: +2 -9 lines
Diff to previous 1.77 (colored) to selected 1.81 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.73.4.3 / (download) - annotate - [select for diffs], Sun Mar 23 00:40:27 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.73.4.2: +5 -5 lines
Diff to previous 1.73.4.2 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.81 (colored)

sync with HEAD

Revision 1.77 / (download) - annotate - [select for diffs], Tue Feb 5 15:56:01 2008 UTC (16 years, 2 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored) to selected 1.81 (colored)

PR/37962: Andrew Doran: libkvm is busted due to kauth_cred redefinition

Sync structure with kernel version.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jan 15 13:57:42 2008 UTC (16 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.75: +4 -4 lines
Diff to previous 1.75 (colored) to selected 1.81 (colored)

Handle reading from raw disk devices.

Revision 1.73.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:26 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.73.4.1: +7 -6 lines
Diff to previous 1.73.4.1 (colored) to branchpoint 1.73 (colored) to selected 1.81 (colored)

sync with HEAD

Revision 1.75 / (download) - annotate - [select for diffs], Sat Dec 22 01:22:03 2007 UTC (16 years, 3 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.74: +7 -6 lines
Diff to previous 1.74 (colored) to selected 1.81 (colored)

sync with kernel.

Revision 1.73.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:11:34 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.73: +5 -5 lines
Diff to previous 1.73 (colored) to selected 1.81 (colored)

sync with HEAD

Revision 1.74 / (download) - annotate - [select for diffs], Tue Nov 6 01:46:08 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: cube-autoconf-base, cube-autoconf
Changes since 1.73: +5 -5 lines
Diff to previous 1.73 (colored) to selected 1.81 (colored)

Catch up with scheduling changes in the kernel.

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jul 9 22:28:13 2007 UTC (16 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.72: +3 -4 lines
Diff to previous 1.72 (colored) to selected 1.81 (colored)

'true' is a C99 keyword.

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jul 7 18:27:26 2007 UTC (16 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.71: +6 -4 lines
Diff to previous 1.71 (colored) to selected 1.81 (colored)

treat ESRCH as a soft error. From Anon Ymous

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jul 6 14:25:42 2007 UTC (16 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.70: +24 -10 lines
Diff to previous 1.70 (colored) to selected 1.81 (colored)

- Fix kvm_getlwps not to spit errors if we lose the race:
	- if the process does not exist anymore, return NULL
	- if the process has created more lwps retry
	XXX[1]: We should fix sysctl_kern_lwp() to return the number of lwps it
		needs in oldlenp when ENOMEM. The we can avoid calling sysctl
		twice (by starting let's say with always 1 lwp, or 10).
	XXX[2]: We should fix kvm_getlwps to never spit errors.
- Silence new lint warnings

Revision 1.70 / (download) - annotate - [select for diffs], Thu May 17 21:42:32 2007 UTC (16 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.69: +12 -5 lines
Diff to previous 1.69 (colored) to selected 1.81 (colored)

fix for yamt-idlelwp

Revision 1.69 / (download) - annotate - [select for diffs], Tue May 1 06:58:08 2007 UTC (16 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.68: +7 -3 lines
Diff to previous 1.68 (colored) to selected 1.81 (colored)

Set  kp2p->p_ru = 0 in the kproc2 structure.
It was only ever non-zero for zombies, and now doesn't exist.
The 'pstats' field has been valid for zombies for a while (it isn't in
the uarea any more).
Fixes part of build breakage.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Feb 24 20:41:34 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.67: +27 -6 lines
Diff to previous 1.67 (colored) to selected 1.81 (colored)

Revert the kauth_impl.h change. Elad is going to maintain this. Asked by core@

Revision 1.67 / (download) - annotate - [select for diffs], Sun Feb 18 15:22:44 2007 UTC (17 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.66: +5 -5 lines
Diff to previous 1.66 (colored) to selected 1.81 (colored)

Update only user code that uses the types of the e_[pu]cred members
of struct kinfo_proc.

Revision 1.62.4.2 / (download) - annotate - [select for diffs], Fri Feb 16 20:26:01 2007 UTC (17 years, 2 months ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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
Changes since 1.62.4.1: +2 -1 lines
Diff to previous 1.62.4.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.81 (colored)

Pull up following revision(s) (requested by chs in ticket #421):
	lib/libkvm/kvm_proc.c: revision 1.64
fill in p_stat for crashdumps like the kernel does for the sysctl.

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Sun Feb 11 13:40:55 2007 UTC (17 years, 2 months ago) by tron
Branch: netbsd-4
Changes since 1.62: +61 -9 lines
Diff to previous 1.62 (colored) to selected 1.81 (colored)

Pull up following revision(s) (requested by elad in ticket #415):
	lib/libkvm/kvm_proc.c: revision 1.65
PR/35506: Chuck Silvers: ps doesn't work on crash dumps, libkvm doesn't
know about kauth
Implemented _kvm_convertcred() to handle copying kauth_cred_t to userspace
and converting it to the appropriate 'struct eproc' members ('pcred' and
'ucred' respectively).
Okay mlelstv@.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Feb 9 22:08:48 2007 UTC (17 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.65: +13 -31 lines
Diff to previous 1.65 (colored) to selected 1.81 (colored)

Sync with kernel changes introduced by merging the newlock2 branch.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Feb 6 21:21:51 2007 UTC (17 years, 2 months ago) by elad
Branch: MAIN
Changes since 1.64: +61 -9 lines
Diff to previous 1.64 (colored) to selected 1.81 (colored)

PR/35506: Chuck Silvers: ps doesn't work on crash dumps, libkvm doesn't
know about kauth

Implemented _kvm_convertcred() to handle copying kauth_cred_t to userspace
and converting it to the appropriate 'struct eproc' members ('pcred' and
'ucred' respectively).

Okay mlelstv@.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jan 28 21:31:13 2007 UTC (17 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.63: +4 -3 lines
Diff to previous 1.63 (colored) to selected 1.81 (colored)

fill in p_stat for crashdumps like the kernel does for the sysctl.

Revision 1.63 / (download) - annotate - [select for diffs], Sun Dec 31 16:20:18 2006 UTC (17 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.62: +7 -2 lines
Diff to previous 1.62 (colored) to selected 1.81 (colored)

kvm_getproc2: retry on ENOMEM.
it happens when the number of processes are changed in the mean time.

Revision 1.62 / (download) - annotate - [select for diffs], Thu May 11 12:00:20 2006 UTC (17 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: netbsd-4
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored) to selected 1.81 (colored)

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

Revision 1.61 / (download) - annotate - [select for diffs], Thu Feb 16 20:48:42 2006 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.60: +29 -91 lines
Diff to previous 1.60 (colored) to selected 1.81 (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.60 / (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.59: +4 -3 lines
Diff to previous 1.59 (colored) to selected 1.81 (colored)

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

Revision 1.59 / (download) - annotate - [select for diffs], Wed May 11 17:41:52 2005 UTC (18 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.81 (colored)

Fix fallout from vm_anon changes

Revision 1.58 / (download) - annotate - [select for diffs], Wed May 12 17:20:01 2004 UTC (19 years, 11 months ago) by toshii
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
Changes since 1.57: +4 -4 lines
Diff to previous 1.57 (colored) to selected 1.81 (colored)

Fix typos.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Feb 19 04:13:28 2004 UTC (20 years, 2 months ago) by atatat
Branch: MAIN
CVS Tags: 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.56: +21 -23 lines
Diff to previous 1.56 (colored) to selected 1.81 (colored)

Use new PTRTOUINT64() macro instead of local PTRTOINT64() macro.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Nov 17 20:41:54 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.55: +3 -2 lines
Diff to previous 1.55 (colored) to selected 1.81 (colored)

zero out nl, from Todd Miller. thanks!

Revision 1.55 / (download) - annotate - [select for diffs], Mon Sep 29 09:50:21 2003 UTC (20 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.54: +3 -3 lines
Diff to previous 1.54 (colored) to selected 1.81 (colored)

available, not avaliable. From miod@openbsd.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Aug 7 16:44:39 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.53: +3 -7 lines
Diff to previous 1.53 (colored) to selected 1.81 (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.53 / (download) - annotate - [select for diffs], Fri Mar 28 14:01:32 2003 UTC (21 years ago) by christos
Branch: MAIN
Changes since 1.52: +12 -26 lines
Diff to previous 1.52 (colored) to selected 1.81 (colored)

remove scanning of deadproc, since zombproc should contain all the processes
in deadproc according to the comment in kern_proc.c. deadproc is not a
struct proclist anymore, so it would require more work to scan anyway, and
this is unnecessary.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Mar 20 22:53:12 2003 UTC (21 years, 1 month ago) by ross
Branch: MAIN
Changes since 1.51: +29 -23 lines
Diff to previous 1.51 (colored) to selected 1.81 (colored)

fix LP64 and other warnings

Revision 1.51 / (download) - annotate - [select for diffs], Wed Mar 19 11:36:34 2003 UTC (21 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) to selected 1.81 (colored)

Alternative pid/proc allocater, removes all searches associated with pid
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Mar 1 05:41:56 2003 UTC (21 years, 1 month ago) by atatat
Branch: MAIN
Changes since 1.49: +4 -2 lines
Diff to previous 1.49 (colored) to selected 1.81 (colored)

Add p_svuid and p_svgid to kinfo_proc2.  Populate them in the kernel
and in libkvm.  Then teach ps how to show them to you.

Also, teach ps how to show the names for all the uids, the rest of the
group numbers, and the "group access list".

Revision 1.49 / (download) - annotate - [select for diffs], Wed Feb 26 23:05:53 2003 UTC (21 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored) to selected 1.81 (colored)

Use _kvm_freeprocs() rather than free() so that kvm_close() won't
free already free'ed region.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Feb 26 23:04:37 2003 UTC (21 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.47: +110 -93 lines
Diff to previous 1.47 (colored) to selected 1.81 (colored)

Cosmetic changes.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Feb 2 02:29:59 2003 UTC (21 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.46: +7 -6 lines
Diff to previous 1.46 (colored) to selected 1.81 (colored)

delint (unsigned long long) -> (unsigned long) casts.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Jan 18 10:40:41 2003 UTC (21 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +161 -45 lines
Diff to previous 1.45 (colored) to selected 1.81 (colored)

Merge the nathanw_sa branch.

Revision 1.45.2.5 / (download) - annotate - [select for diffs], Thu May 9 22:22:39 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.45.2.4: +8 -2 lines
Diff to previous 1.45.2.4 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.81 (colored)

Fill in new kinfo_proc2 flags from core.

Revision 1.45.2.4 / (download) - annotate - [select for diffs], Thu May 9 21:56:57 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.45.2.3: +5 -4 lines
Diff to previous 1.45.2.3 (colored) to branchpoint 1.45 (colored) to selected 1.81 (colored)

Use kvm_read() to get l.l_wmesg from a core file.

Revision 1.45.2.3 / (download) - annotate - [select for diffs], Tue Apr 23 22:03:39 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.45.2.2: +2 -4 lines
Diff to previous 1.45.2.2 (colored) to branchpoint 1.45 (colored) to selected 1.81 (colored)

Freeing the kinfo_lwp structure is centralized.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Tue Apr 23 20:10:20 2002 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.45.2.1: +1267 -0 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) to selected 1.81 (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.36.2.1 / (download) - annotate - [select for diffs], Fri Mar 30 22:33:42 2001 UTC (23 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.36: +3 -2 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.81 (colored)

Pull up revision 1.45 (requested by jdolecek):
  Properly '\0'-terminate data from sysctl() which might not end
  properly if data would be longer than requested.  Fixes PR#11467,
  PR#12389 and possibly PR#12439.

Revision 1.45.2.1, Sat Mar 24 10:02:45 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.45: +0 -1156 lines
FILE REMOVED

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

Revision 1.45 / (download) - annotate - [select for diffs], Sat Mar 24 10:02:45 2001 UTC (23 years ago) by jdolecek
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-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, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, fvdl_fs64_base
Branch point for: nathanw_sa
Changes since 1.44: +3 -2 lines
Diff to previous 1.44 (colored) to selected 1.81 (colored)

kvm_doargv2(): make sure the string ends with '\0'; sysctl() might not
	properly end it if the data would be longer than the supplied
	buffer

This fixes lib/11467 by SAITOH Masanobu and lib/12389, maybe also
lib/12439.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 24 09:54:52 2001 UTC (23 years ago) by jdolecek
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43 (colored) to selected 1.81 (colored)

Minor fix to kvm_doargv2() - if the kd->argv is reallocated, reinitialize
'ap' too. This doesn't seem to have any effect either way; seems like the
condition is never met?

Revision 1.43 / (download) - annotate - [select for diffs], Fri Dec 22 23:11:19 2000 UTC (23 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.42: +6 -6 lines
Diff to previous 1.42 (colored) to selected 1.81 (colored)

adapt to latest struct proc, struct sigacts, struct sigctx changes

Revision 1.30.2.2 / (download) - annotate - [select for diffs], Sun Oct 8 15:32:18 2000 UTC (23 years, 6 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.30.2.1: +5 -4 lines
Diff to previous 1.30.2.1 (colored) to branchpoint 1.30 (colored) next main 1.31 (colored) to selected 1.81 (colored)

Pull up revision 1.42 (via patch, requested by he):
  Fix compilation problem after format string audit fixes.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 5 03:21:01 2000 UTC (23 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored) to selected 1.81 (colored)

Make this file compiles on alpha.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Wed Oct 4 16:26:46 2000 UTC (23 years, 6 months ago) by he
Branch: netbsd-1-4
Changes since 1.30: +9 -9 lines
Diff to previous 1.30 (colored) to selected 1.81 (colored)

Pull up revision 1.41 (via patch, requested by sommerfeld):
  Format string audit.

Revision 1.41 / (download) - annotate - [select for diffs], Wed Oct 4 16:11:27 2000 UTC (23 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.40: +9 -9 lines
Diff to previous 1.40 (colored) to selected 1.81 (colored)

format-string audit cleanups

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 16 02:20:03 2000 UTC (23 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.39: +3 -3 lines
Diff to previous 1.39 (colored) to selected 1.81 (colored)

revert part of previous; u_long -> uintptr_t now that uintptr_t is u_long.

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 16 02:04:11 2000 UTC (23 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.38: +29 -21 lines
Diff to previous 1.38 (colored) to selected 1.81 (colored)

de-lint. Most important problem was the cast from pointer to uintptr_t to
u_int64_t; changed the uintptr_t to u_long.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Jun 29 06:34:25 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.37: +2 -4 lines
Diff to previous 1.37 (colored) to selected 1.81 (colored)

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

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

remove redundant vm includes

Revision 1.35.2.1 / (download) - annotate - [select for diffs], Fri Jun 23 16:16:48 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.35: +33 -33 lines
Diff to previous 1.35 (colored) next main 1.36 (colored) to selected 1.81 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 4 23:03:27 2000 UTC (23 years, 10 months ago) by tron
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.35: +33 -33 lines
Diff to previous 1.35 (colored) to selected 1.81 (colored)

Use "NULL" instead of "0" in pointer assignments and comparisons.

Revision 1.35 / (download) - annotate - [select for diffs], Sat May 27 01:03:00 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.34: +6 -2 lines
Diff to previous 1.34 (colored) to selected 1.81 (colored)

p_schedflags doesn't exist anymore; just set it to zero for now,
although we'll be able to get the correct info through kmem
groveling later.

Revision 1.34 / (download) - annotate - [select for diffs], Fri May 26 02:42:22 2000 UTC (23 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.33: +440 -61 lines
Diff to previous 1.33 (colored) to selected 1.81 (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.33 / (download) - annotate - [select for diffs], Sat Apr 15 15:52:52 2000 UTC (24 years ago) by simonb
Branch: MAIN
Changes since 1.32: +3 -2 lines
Diff to previous 1.32 (colored) to selected 1.81 (colored)

Fill in e_sid when building the eproc from a crash dump.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Jan 15 19:16:32 2000 UTC (24 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.31: +4 -2 lines
Diff to previous 1.31 (colored) to selected 1.81 (colored)

in kvm_getprocs(), check for error from kvm_deadprocs().

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 2 15:28:50 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.30: +12 -12 lines
Diff to previous 1.30 (colored) to selected 1.81 (colored)

More trailing white space.

Revision 1.30 / (download) - annotate - [select for diffs], Wed Mar 24 05:50:50 1999 UTC (25 years ago) by mrg
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.29: +2 -199 lines
Diff to previous 1.29 (colored) to selected 1.81 (colored)

completely remove Mach VM support.  all that is left is the all the
header files as UVM still uses (most of) these.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jan 25 03:38:57 1999 UTC (25 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.28: +4 -3 lines
Diff to previous 1.28 (colored) to selected 1.81 (colored)

catch up with the UVM amap changes.. tested by nathanw@mit.edu, thanks.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Sep 27 18:16:00 1998 UTC (25 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.27: +34 -29 lines
Diff to previous 1.27 (colored) to selected 1.81 (colored)

Remove lint

Revision 1.27 / (download) - annotate - [select for diffs], Wed Sep 9 00:31:25 1998 UTC (25 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.26: +23 -10 lines
Diff to previous 1.26 (colored) to selected 1.81 (colored)

Adjust for the reaper process.

XXX Would really like to use proclists[] here, but not right now.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Aug 15 09:16:28 1998 UTC (25 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +38 -3 lines
Diff to previous 1.25 (colored) to selected 1.81 (colored)

Assign my copyrights to TNF.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Aug 10 02:46:07 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.24: +5 -5 lines
Diff to previous 1.24 (colored) to selected 1.81 (colored)

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

Revision 1.24 / (download) - annotate - [select for diffs], Tue Jun 30 20:29:40 1998 UTC (25 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +8 -15 lines
Diff to previous 1.23 (colored) to selected 1.81 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 12 06:55:29 1998 UTC (26 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.22: +70 -7 lines
Diff to previous 1.22 (colored) to selected 1.81 (colored)

add UVM support.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 11 12:00:37 1998 UTC (26 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.21: +7 -2 lines
Diff to previous 1.21 (colored) to selected 1.81 (colored)

while it is still kinda broken, at least let it compile -DUVM...

Revision 1.21 / (download) - annotate - [select for diffs], Tue Feb 3 19:12:44 1998 UTC (26 years, 2 months ago) by perry
Branch: MAIN
Changes since 1.20: +27 -27 lines
Diff to previous 1.20 (colored) to selected 1.81 (colored)

remove obsolete register declarations

Revision 1.20 / (download) - annotate - [select for diffs], Fri Aug 15 17:52:46 1997 UTC (26 years, 8 months ago) by drochner
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.19: +8 -6 lines
Diff to previous 1.19 (colored) to selected 1.81 (colored)

Fix compiler warnings.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Aug 15 02:22:02 1997 UTC (26 years, 8 months ago) by mikel
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored) to selected 1.81 (colored)

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

Revision 1.18 / (download) - annotate - [select for diffs], Tue Aug 12 16:30:15 1997 UTC (26 years, 8 months ago) by gwr
Branch: MAIN
Changes since 1.17: +8 -6 lines
Diff to previous 1.17 (colored) to selected 1.81 (colored)

Instead of: USRSTACK, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS
Use these:  kd->usrstack, kd->min_uva, kd->max_uva

Revision 1.17 / (download) - annotate - [select for diffs], Fri Jun 20 05:18:22 1997 UTC (26 years, 10 months ago) by mikel
Branch: MAIN
Changes since 1.16: +8 -6 lines
Diff to previous 1.16 (colored) to selected 1.81 (colored)

fix some printf() formats

Revision 1.16 / (download) - annotate - [select for diffs], Mon Mar 18 22:33:57 1996 UTC (28 years, 1 month ago) by thorpej
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.15: +6 -0 lines
Diff to previous 1.15 (colored) to selected 1.81 (colored)

RCS id police.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jul 4 03:03:32 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.14: +17 -5 lines
Diff to previous 1.14 (colored) to selected 1.81 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Thu May 25 03:03:42 1995 UTC (28 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored) to selected 1.81 (colored)

Fix up the last argv pointer correctly when terminating early.

Revision 1.13 / (download) - annotate - [select for diffs], Thu May 18 13:59:25 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored) to selected 1.81 (colored)

Fix one more reallocing bug.

Revision 1.12 / (download) - annotate - [select for diffs], Thu May 18 12:21:54 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored) to selected 1.81 (colored)

Fix up another pointer if we realloc the argument list.

Revision 1.11 / (download) - annotate - [select for diffs], Tue May 16 14:26:15 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored) to selected 1.81 (colored)

Update copyright.

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 16 14:21:12 1995 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +45 -30 lines
Diff to previous 1.9 (colored) to selected 1.81 (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.9 / (download) - annotate - [select for diffs], Thu Jan 12 16:30:52 1995 UTC (29 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.8: +1 -9 lines
Diff to previous 1.8 (colored) to selected 1.81 (colored)

The sparc port no longer needs special casing.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jan 9 08:59:33 1995 UTC (29 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.7: +105 -46 lines
Diff to previous 1.7 (colored) to selected 1.81 (colored)

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

Revision 1.7 / (download) - annotate - [select for diffs], Wed Oct 19 03:03:40 1994 UTC (29 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.6: +5 -2 lines
Diff to previous 1.6 (colored) to selected 1.81 (colored)

fix type of variables, add headers, protos, where necessary.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Sep 18 01:52:05 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +16 -22 lines
Diff to previous 1.5 (colored) to selected 1.81 (colored)

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

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 18 00:22:22 1994 UTC (29 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +19 -10 lines
Diff to previous 1.4 (colored) to selected 1.81 (colored)

Don't use NBPG/PGOFSET/PGSHIFT. Use getpagesize() and calculate them.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Aug 30 17:39:15 1994 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored) to selected 1.81 (colored)

Update to match include files.

Revision 1.2.2.1 / (download) - annotate - [select for diffs], Sat Aug 13 10:15:39 1994 UTC (29 years, 8 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: 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
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored) next main 1.3 (colored) to selected 1.81 (colored)

update from trunk

Revision 1.3 / (download) - annotate - [select for diffs], Sat Aug 13 10:15:02 1994 UTC (29 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -0 lines
Diff to previous 1.2 (colored) to selected 1.81 (colored)

Don't return garbage if there are no argument and/or environment strings.

Revision 1.2 / (download) - annotate - [select for diffs], Mon May 23 22:22:24 1994 UTC (29 years, 11 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.1: +82 -42 lines
Diff to previous 1.1 (colored) to selected 1.81 (colored)

Deal with shadow objects correctly.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Mon May 9 03:15:36 1994 UTC (29 years, 11 months ago) by cgd
Branch: CSRG
CVS Tags: lite-1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.81 (colored)

new libkvm

Revision 1.1 / (download) - annotate - [select for diffs], Mon May 9 03:15:35 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Diff to selected 1.81 (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>