CVS log for src/lib/libkvm/kvm_proc.c
Up to [cvs.NetBSD.org] / src / lib / libkvm
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.100: download - view: text, markup, annotated - select for diffs
Sun Dec 15 12:58:38 2024 UTC (4 months, 1 week ago) by christos
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +4 -43
lines
remove unused.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Thu Aug 10 20:38:00 2023 UTC (20 months, 2 weeks ago) by mrg
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Tue Apr 19 20:32:16 2022 UTC (3 years ago) by rillig
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-1-RELEASE,
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
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +5 -5
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 10 20:04:01 2022 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +5 -5
lines
read the ps arguments from the correct place.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Mon Jan 10 19:51:30 2022 UTC (3 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +5 -3
lines
Get rid of usrstack/USRSTACK. Document that the old version of getargv is
broken because of ASLR.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Mon Jul 19 10:30:36 2021 UTC (3 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +5 -3
lines
Match the declaration in <sys/kauth.h>
Revision 1.92.16.1: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:07:14 2020 UTC (5 years ago) by martin
Branches: phil-wifi
Diff to: previous 1.92: preferred, colored; next MAIN 1.93: preferred, colored
Changes since revision 1.92: +3 -3
lines
Merge changes from current as of 20200406
Revision 1.94: download - view: text, markup, annotated - select for diffs
Wed Dec 11 20:19:27 2019 UTC (5 years, 4 months ago) by ad
Branches: 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
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +3 -3
lines
Redo previous more conventionally. Requested by kre@.
Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Dec 10 18:13:07 2019 UTC (5 years, 4 months ago) by ad
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +3 -3
lines
Mask out always zero bits off pg->phys_addr.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Mon Apr 4 22:14:38 2016 UTC (9 years ago) by christos
Branches: 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-4-RELEASE,
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-3-RELEASE,
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
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -2
lines
some ports need <sys/wait.h>
Revision 1.91: download - view: text, markup, annotated - select for diffs
Mon Apr 4 21:08:44 2016 UTC (9 years ago) by christos
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +3 -3
lines
catch up with p_xstat split.
Revision 1.89.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:17 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89: +2 -3
lines
Rebase to HEAD as of a few days ago.
Revision 1.88.6.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:36:56 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.88.6.1: preferred, colored; branchpoint 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88.6.1: +2 -3
lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 19 20:21:22 2014 UTC (11 years, 2 months ago) by dsl
Branches: 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
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +2 -3
lines
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 - view: text, markup, annotated - select for diffs
Tue Oct 30 18:59:11 2012 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3
lines
sync with head
Revision 1.88.8.1: download - view: text, markup, annotated - select for diffs
Tue Jun 12 17:18:22 2012 UTC (12 years, 10 months ago) by riz
Branches: 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
Diff to: previous 1.88: preferred, colored; next MAIN 1.89: preferred, colored
Changes since revision 1.88: +2 -1
lines
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 - view: text, markup, annotated - select for diffs
Tue Jun 5 08:23:06 2012 UTC (12 years, 10 months ago) by martin
Branches: 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
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +4 -3
lines
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 - view: text, markup, annotated - select for diffs
Fri Nov 12 04:52:08 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: 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
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +3 -2
lines
Fix build.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Sep 26 22:28:05 2010 UTC (14 years, 7 months ago) by jym
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +2 -5
lines
Define KREAD() inside kvm_private.h, for reusability.
Revision 1.86: download - view: text, markup, annotated - select for diffs
Mon Sep 20 23:23:16 2010 UTC (14 years, 7 months ago) by jym
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun Sep 19 02:07:00 2010 UTC (14 years, 7 months ago) by jym
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +46 -120
lines
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 - view: text, markup, annotated - select for diffs
Wed Oct 21 21:11:58 2009 UTC (15 years, 6 months ago) by rmind
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat May 16 11:56:47 2009 UTC (15 years, 11 months ago) by yamt
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -7
lines
kvm_getprocs actually works with KVM_NO_FILES.
Revision 1.81.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:18:34 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.81: preferred, colored; next MAIN 1.82: preferred, colored
Changes since revision 1.81: +9 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Apr 1 00:25:21 2009 UTC (16 years ago) by snj
Branches: 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
Diff to: previous 1.78.6.1: preferred, colored; branchpoint 1.78: preferred, colored; next MAIN 1.79: preferred, colored
Changes since revision 1.78.6.1: +9 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun Mar 29 01:02:49 2009 UTC (16 years, 1 month ago) by mrg
Branches: MAIN
CVS tags: jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +9 -2
lines
- 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 - view: text, markup, annotated - select for diffs
Sun Dec 28 19:49:26 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +4 -4
lines
tdev is unsigned
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Dec 28 19:46:47 2008 UTC (16 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +4 -4
lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 29 21:00:00 2008 UTC (16 years, 4 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +12 -2
lines
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 - view: text, markup, annotated - select for diffs
Sat Nov 29 18:24:58 2008 UTC (16 years, 4 months ago) by cegger
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +12 -2
lines
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 - view: text, markup, annotated - select for diffs
Sun May 18 12:30:38 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.77: preferred, colored; next MAIN 1.78: preferred, colored
Changes since revision 1.77: +2 -9
lines
sync with head.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:01 2008 UTC (17 years ago) by martin
Branches: 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
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.73.4.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 00:40:27 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.73.4.2: preferred, colored; branchpoint 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73.4.2: +5 -5
lines
sync with HEAD
Revision 1.77: download - view: text, markup, annotated - select for diffs
Tue Feb 5 15:56:01 2008 UTC (17 years, 2 months ago) by elad
Branches: 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
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
PR/37962: Andrew Doran: libkvm is busted due to kauth_cred redefinition
Sync structure with kernel version.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Tue Jan 15 13:57:42 2008 UTC (17 years, 3 months ago) by ad
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +4 -4
lines
Handle reading from raw disk devices.
Revision 1.73.4.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:36:26 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.73.4.1: preferred, colored; branchpoint 1.73: preferred, colored
Changes since revision 1.73.4.1: +7 -6
lines
sync with HEAD
Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Dec 22 01:22:03 2007 UTC (17 years, 4 months ago) by yamt
Branches: MAIN
CVS tags: matt-armv6-base
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +7 -6
lines
sync with kernel.
Revision 1.73.4.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:11:34 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -5
lines
sync with HEAD
Revision 1.74: download - view: text, markup, annotated - select for diffs
Tue Nov 6 01:46:08 2007 UTC (17 years, 5 months ago) by ad
Branches: MAIN
CVS tags: cube-autoconf-base,
cube-autoconf
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -5
lines
Catch up with scheduling changes in the kernel.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Jul 9 22:28:13 2007 UTC (17 years, 9 months ago) by ad
Branches: MAIN
CVS tags: matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: matt-armv6
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -4
lines
'true' is a C99 keyword.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Sat Jul 7 18:27:26 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -4
lines
treat ESRCH as a soft error. From Anon Ymous
Revision 1.71: download - view: text, markup, annotated - select for diffs
Fri Jul 6 14:25:42 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +24 -10
lines
- 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 - view: text, markup, annotated - select for diffs
Thu May 17 21:42:32 2007 UTC (17 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +12 -5
lines
fix for yamt-idlelwp
Revision 1.69: download - view: text, markup, annotated - select for diffs
Tue May 1 06:58:08 2007 UTC (17 years, 11 months ago) by dsl
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +7 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Feb 24 20:41:34 2007 UTC (18 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +27 -6
lines
Revert the kauth_impl.h change. Elad is going to maintain this. Asked by core@
Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Feb 18 15:22:44 2007 UTC (18 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +5 -5
lines
Update only user code that uses the types of the e_[pu]cred members
of struct kinfo_proc.
Revision 1.62.4.2: download - view: text, markup, annotated - select for diffs
Fri Feb 16 20:26:01 2007 UTC (18 years, 2 months ago) by riz
Branches: 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
Diff to: previous 1.62.4.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.4.1: +2 -1
lines
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 - view: text, markup, annotated - select for diffs
Sun Feb 11 13:40:55 2007 UTC (18 years, 2 months ago) by tron
Branches: netbsd-4
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +61 -9
lines
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 - view: text, markup, annotated - select for diffs
Fri Feb 9 22:08:48 2007 UTC (18 years, 2 months ago) by ad
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -31
lines
Sync with kernel changes introduced by merging the newlock2 branch.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Tue Feb 6 21:21:51 2007 UTC (18 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +61 -9
lines
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 - view: text, markup, annotated - select for diffs
Sun Jan 28 21:31:13 2007 UTC (18 years, 3 months ago) by chs
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -3
lines
fill in p_stat for crashdumps like the kernel does for the sysctl.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Dec 31 16:20:18 2006 UTC (18 years, 3 months ago) by yamt
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +7 -2
lines
kvm_getproc2: retry on ENOMEM.
it happens when the number of processes are changed in the mean time.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Thu May 11 12:00:20 2006 UTC (18 years, 11 months ago) by yamt
Branches: MAIN
CVS tags: netbsd-4-base,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Branch point for: netbsd-4
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +3 -2
lines
#include a necessary header directly, rather than via user.h.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Thu Feb 16 20:48:42 2006 UTC (19 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +29 -91
lines
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 - view: text, markup, annotated - select for diffs
Sat Jul 30 16:32:29 2005 UTC (19 years, 9 months ago) by yamt
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -3
lines
as swap is now optional, ENXIO on /dev/drum is normal.
Revision 1.59: download - view: text, markup, annotated - select for diffs
Wed May 11 17:41:52 2005 UTC (19 years, 11 months ago) by jmc
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -3
lines
Fix fallout from vm_anon changes
Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed May 12 17:20:01 2004 UTC (20 years, 11 months ago) by toshii
Branches: 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
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -4
lines
Fix typos.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Thu Feb 19 04:13:28 2004 UTC (21 years, 2 months ago) by atatat
Branches: 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
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +21 -23
lines
Use new PTRTOUINT64() macro instead of local PTRTOINT64() macro.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Nov 17 20:41:54 2003 UTC (21 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -2
lines
zero out nl, from Todd Miller. thanks!
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Sep 29 09:50:21 2003 UTC (21 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +3 -3
lines
available, not avaliable. From miod@openbsd.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:44:39 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +3 -7
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 28 14:01:32 2003 UTC (22 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +12 -26
lines
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 - view: text, markup, annotated - select for diffs
Thu Mar 20 22:53:12 2003 UTC (22 years, 1 month ago) by ross
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +29 -23
lines
fix LP64 and other warnings
Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Mar 19 11:36:34 2003 UTC (22 years, 1 month ago) by dsl
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3
lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 1 05:41:56 2003 UTC (22 years, 2 months ago) by atatat
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -2
lines
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 - view: text, markup, annotated - select for diffs
Wed Feb 26 23:05:53 2003 UTC (22 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3
lines
Use _kvm_freeprocs() rather than free() so that kvm_close() won't
free already free'ed region.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Feb 26 23:04:37 2003 UTC (22 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +110 -93
lines
Cosmetic changes.
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Feb 2 02:29:59 2003 UTC (22 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +7 -6
lines
delint (unsigned long long) -> (unsigned long) casts.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Jan 18 10:40:41 2003 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +161 -45
lines
Merge the nathanw_sa branch.
Revision 1.45.2.5: download - view: text, markup, annotated - select for diffs
Thu May 9 22:22:39 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.45.2.4: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.4: +8 -2
lines
Fill in new kinfo_proc2 flags from core.
Revision 1.45.2.4: download - view: text, markup, annotated - select for diffs
Thu May 9 21:56:57 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.3: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.3: +5 -4
lines
Use kvm_read() to get l.l_wmesg from a core file.
Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 23 22:03:39 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.2: +2 -4
lines
Freeing the kinfo_lwp structure is centralized.
Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 23 20:10:20 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +1267 -0
lines
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 - view: text, markup, annotated - select for diffs
Fri Mar 30 22:33:42 2001 UTC (24 years, 1 month ago) by he
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +3 -2
lines
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 (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
FILE REMOVED
Changes since revision 1.45: +0 -1156
lines
file kvm_proc.c was added on branch nathanw_sa on 2002-04-23 20:10:20 +0000
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Mar 24 10:02:45 2001 UTC (24 years, 1 month ago) by jdolecek
Branches: 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
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Sat Mar 24 09:54:52 2001 UTC (24 years, 1 month ago) by jdolecek
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +3 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri Dec 22 23:11:19 2000 UTC (24 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -6
lines
adapt to latest struct proc, struct sigacts, struct sigctx changes
Revision 1.30.2.2: download - view: text, markup, annotated - select for diffs
Sun Oct 8 15:32:18 2000 UTC (24 years, 6 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.30.2.1: preferred, colored; branchpoint 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30.2.1: +5 -4
lines
Pull up revision 1.42 (via patch, requested by he):
Fix compilation problem after format string audit fixes.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Oct 5 03:21:01 2000 UTC (24 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -4
lines
Make this file compiles on alpha.
Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Wed Oct 4 16:26:46 2000 UTC (24 years, 6 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +9 -9
lines
Pull up revision 1.41 (via patch, requested by sommerfeld):
Format string audit.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Wed Oct 4 16:11:27 2000 UTC (24 years, 6 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +9 -9
lines
format-string audit cleanups
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Jul 16 02:20:03 2000 UTC (24 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
revert part of previous; u_long -> uintptr_t now that uintptr_t is u_long.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Jul 16 02:04:11 2000 UTC (24 years, 9 months ago) by christos
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +29 -21
lines
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 - view: text, markup, annotated - select for diffs
Thu Jun 29 06:34:25 2000 UTC (24 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -4
lines
<vm/vm.h> -> <uvm/uvm_extern.h>
Revision 1.37: download - view: text, markup, annotated - select for diffs
Mon Jun 26 15:35:03 2000 UTC (24 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -3
lines
remove redundant vm includes
Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 23 16:16:48 2000 UTC (24 years, 10 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +33 -33
lines
Sync w/ netbsd-1-5-base.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Jun 4 23:03:27 2000 UTC (24 years, 10 months ago) by tron
Branches: 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
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +33 -33
lines
Use "NULL" instead of "0" in pointer assignments and comparisons.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sat May 27 01:03:00 2000 UTC (24 years, 11 months ago) by thorpej
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +6 -2
lines
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 - view: text, markup, annotated - select for diffs
Fri May 26 02:42:22 2000 UTC (24 years, 11 months ago) by simonb
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +440 -61
lines
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 - view: text, markup, annotated - select for diffs
Sat Apr 15 15:52:52 2000 UTC (25 years ago) by simonb
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +3 -2
lines
Fill in e_sid when building the eproc from a crash dump.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Jan 15 19:16:32 2000 UTC (25 years, 3 months ago) by chs
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -2
lines
in kvm_getprocs(), check for error from kvm_deadprocs().
Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Jul 2 15:28:50 1999 UTC (25 years, 10 months ago) by simonb
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221,
wrstuden-devbsize,
comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +12 -12
lines
More trailing white space.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Wed Mar 24 05:50:50 1999 UTC (26 years, 1 month ago) by mrg
Branches: 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
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -199
lines
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 - view: text, markup, annotated - select for diffs
Mon Jan 25 03:38:57 1999 UTC (26 years, 3 months ago) by mrg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -3
lines
catch up with the UVM amap changes.. tested by nathanw@mit.edu, thanks.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Sep 27 18:16:00 1998 UTC (26 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +34 -29
lines
Remove lint
Revision 1.27: download - view: text, markup, annotated - select for diffs
Wed Sep 9 00:31:25 1998 UTC (26 years, 7 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +23 -10
lines
Adjust for the reaper process.
XXX Would really like to use proclists[] here, but not right now.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Aug 15 09:16:28 1998 UTC (26 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +38 -3
lines
Assign my copyrights to TNF.
Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Aug 10 02:46:07 1998 UTC (26 years, 8 months ago) by perry
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +5 -5
lines
bzero->memset, bcopy->memcpy, bcmp->memcmp
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue Jun 30 20:29:40 1998 UTC (26 years, 10 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +8 -15
lines
Use pread(2) and pwrite(2) rather than lseek(2)/{read,write}(2).
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Feb 12 06:55:29 1998 UTC (27 years, 2 months ago) by chs
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +70 -7
lines
add UVM support.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Feb 11 12:00:37 1998 UTC (27 years, 2 months ago) by mrg
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +7 -2
lines
while it is still kinda broken, at least let it compile -DUVM...
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Feb 3 19:12:44 1998 UTC (27 years, 2 months ago) by perry
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +27 -27
lines
remove obsolete register declarations
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Aug 15 17:52:46 1997 UTC (27 years, 8 months ago) by drochner
Branches: 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
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +8 -6
lines
Fix compiler warnings.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Aug 15 02:22:02 1997 UTC (27 years, 8 months ago) by mikel
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +3 -2
lines
use <sys/cdefs.h> __RCSID() macro
Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Aug 12 16:30:15 1997 UTC (27 years, 8 months ago) by gwr
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +8 -6
lines
Instead of: USRSTACK, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS
Use these: kd->usrstack, kd->min_uva, kd->max_uva
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Jun 20 05:18:22 1997 UTC (27 years, 10 months ago) by mikel
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +8 -6
lines
fix some printf() formats
Revision 1.16: download - view: text, markup, annotated - select for diffs
Mon Mar 18 22:33:57 1996 UTC (29 years, 1 month ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +6 -0
lines
RCS id police.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Tue Jul 4 03:03:32 1995 UTC (29 years, 9 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +17 -5
lines
slight type cleanup. add some prototypes for internal functions,
some 'const' poisoning, some lvalue lossage.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu May 25 03:03:42 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -1
lines
Fix up the last argv pointer correctly when terminating early.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu May 18 13:59:25 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -1
lines
Fix one more reallocing bug.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu May 18 12:21:54 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -1
lines
Fix up another pointer if we realloc the argument list.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 16 14:26:15 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -1
lines
Update copyright.
Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue May 16 14:21:12 1995 UTC (29 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +45 -30
lines
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 - view: text, markup, annotated - select for diffs
Thu Jan 12 16:30:52 1995 UTC (30 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +1 -9
lines
The sparc port no longer needs special casing.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 9 08:59:33 1995 UTC (30 years, 3 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +105 -46
lines
Eliminate _kvm_uvatop(), in favor of using the machine-independent VM structures.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Wed Oct 19 03:03:40 1994 UTC (30 years, 6 months ago) by cgd
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -2
lines
fix type of variables, add headers, protos, where necessary.
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Sep 18 01:52:05 1994 UTC (30 years, 7 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +16 -22
lines
Move the swap page buffer into struct __kvm. Cache the page size during
kvm_open(). Fix an existing memory leak.
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Sep 18 00:22:22 1994 UTC (30 years, 7 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +19 -10
lines
Don't use NBPG/PGOFSET/PGSHIFT. Use getpagesize() and calculate them.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Aug 30 17:39:15 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -1
lines
Update to match include files.
Revision 1.2.2.1: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:15:39 1994 UTC (30 years, 8 months ago) by mycroft
Branches: 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
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +2 -0
lines
update from trunk
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Aug 13 10:15:02 1994 UTC (30 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -0
lines
Don't return garbage if there are no argument and/or environment strings.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon May 23 22:22:24 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +82 -42
lines
Deal with shadow objects correctly.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Mon May 9 03:15:36 1994 UTC (30 years, 11 months ago) by cgd
Branches: CSRG
CVS tags: lite-1
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
new libkvm
Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon May 9 03:15:35 1994 UTC (30 years, 11 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>