DragonFly BSD

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

[BACK] Up to [DragonFly] / src / lib / libkvm

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Feb 13 00:12:46 2008 UTC (6 years, 10 months ago) by corecode
Branches: MAIN
CVS tags: HEAD, DragonFly_RELEASE_2_0_Slip, DragonFly_RELEASE_2_0, DragonFly_Preview
Diff to: previous 1.11: preferred, unified
Changes since revision 1.11: +7 -2 lines
Don't forget to set internal error message in kvm_nlist().

Obtained-from:  FreeBSD

Revision 1.11: download - view: text, markup, annotated - select for diffs
Mon Dec 3 14:42:45 2007 UTC (7 years ago) by hasso
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_12_Slip, DragonFly_RELEASE_1_12
Diff to: previous 1.10: preferred, unified
Changes since revision 1.10: +6 -5 lines
Some trivial changes from FreeBSD that allow to  use kgdb on /dev/fwmem0.0.
It also fixes an obvious typo (vmfd -> pmfd).

Dragonfly-bug: <http://bugs.dragonflybsd.org/issue839>
Submitted-by: Aggelos Economopoulos <aoiko@cc.ece.ntua.gr>
Obtained-from: FreeBSD

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Apr 29 01:36:04 2007 UTC (7 years, 7 months ago) by dillon
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_10_Slip, DragonFly_RELEASE_1_10
Diff to: previous 1.9: preferred, unified
Changes since revision 1.9: +1 -1 lines
When <sys/user.h> is included, it MUST be included first because it sets
a preprocessor variable that effects other header files.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Feb 1 10:33:25 2007 UTC (7 years, 10 months ago) by corecode
Branches: MAIN
Diff to: previous 1.8: preferred, unified
Changes since revision 1.8: +4 -3 lines
Change kinfo_proc interface between kernel and userland.

Before, we were embedding a struct proc (among others) into struct
kinfo_proc.  Every time we change implementation details in the kernel,
userland has to be adapted (recompiled).  In preparation for the coming
LWP changes this interface has been reworked.  Now kinfo_proc is a
structure which does not depend on other structures on the kernel which
are subject to change.  Instead, the routines fill_kinfo_proc and
fill_kinfo_lwp copy all values which are of interest between the kernel
structure and the stable kinfo_proc structure.

Furthermore, this change adds infrastructure to export LWP-specific data.
If userland requests LWP data, it sets the flag KERN_PROC_FLAG_LWP in the
sysctl oid.  This leads to multiple kinfo_procs being exported.  If not
set, the first LWP will used.  This is like FreeBSD do it, and it seems
easy and simple.  Note that userland was not yet adjusted to actually
request LWPs and aggregate this information if necessary.  Besides, the
kernel does not yet have more than one LWP per process anyways.

This introduces a new file, kern/kern_kinfo.c, which is shared between
kernel and libkvm.  This was done to avoid and remove code duplication.
Now kvm_getprocs constructs a complete struct proc, including pointers,
and then calls fill_kinfo_proc to do its job.

In-collaboration-with: Thomas E. Spanjaard <tgen@netphreax.net>

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 11 01:12:59 2006 UTC (8 years, 11 months ago) by corecode
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_8_Slip, DragonFly_RELEASE_1_8, DragonFly_RELEASE_1_6_Slip, DragonFly_RELEASE_1_6
Diff to: previous 1.7: preferred, unified
Changes since revision 1.7: +97 -0 lines
Add kvm_readstr, a convenience helper which lets you read C strings from
kernel cores/kmem.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Oct 24 19:59:51 2005 UTC (9 years, 1 month ago) by dillon
Branches: MAIN
CVS tags: DragonFly_RELEASE_1_4_Slip, DragonFly_RELEASE_1_4
Diff to: previous 1.6: preferred, unified
Changes since revision 1.6: +10 -0 lines
Temporarily work around a race in the kernel.  The kernel does a sanity check
on the KVM memory range read via /dev/[k]mem.  However, if the user buffer
takes a VM fault and blocks the process, the related kernel memory could
become invalid while the process was blocked.  Try to avoid taking faults on
the user buffer by touching it first.

Reported-by: =?ISO-8859-1?Q?Stefan_Kr=FCger?= <skrueger@meinberlikomm.de>

Revision 1.6: download - view: text, markup, annotated - select for diffs
Mon Feb 28 12:57:43 2005 UTC (9 years, 9 months ago) by joerg
Branches: MAIN
CVS tags: DragonFly_Stable, DragonFly_RELEASE_1_2_Slip, DragonFly_RELEASE_1_2
Diff to: previous 1.5: preferred, unified
Changes since revision 1.5: +1 -1 lines
lvalue cast.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Oct 25 19:38:45 2004 UTC (10 years, 1 month ago) by drhodus
Branches: MAIN
Diff to: previous 1.4: preferred, unified
Changes since revision 1.4: +1 -1 lines
Remove register keyword usage.

Add missing $DragonFly$ keyword to the following files:
src/lib/libc/db/btree/bt_utils.c
src/lib/libc/db/hash/hash_log2.c
src/lib/libc/net/getproto.c
src/lib/libc/net/getprotoent.c
src/lib/libc/net/getprotoname.c
src/lib/libc/net/getservbyname.c
src/lib/libc/net/getservbyport.c
src/lib/libc/net/iso_addr.c
src/lib/libc/net/linkaddr.c
src/lib/libc/net/ns_ntoa.c
src/lib/libc/quad/muldi3.c
src/lib/libc/quad/qdivrem.c
src/lib/libc/rpc/authdes_prot.c
src/lib/libc/rpc/key_prot_xdr.c
src/lib/libcompat/4.3/insque.c
src/lib/libcompat/4.3/lsearch.c
src/lib/libcompat/4.3/remque.c
src/lib/libcompat/4.4/cuserid.c
src/lib/libcompat/regexp/regexp.c
src/lib/libcompat/regexp/regsub.c
src/lib/libcr/db/btree/bt_utils.c
src/lib/libcr/db/hash/hash_log2.c
src/lib/libcr/net/getproto.c
src/lib/libcr/net/getprotoent.c
src/lib/libcr/net/getprotoname.c
src/lib/libcr/net/getservbyname.c
src/lib/libcr/net/getservbyport.c
src/lib/libcr/net/iso_addr.c
src/lib/libcr/net/linkaddr.c
src/lib/libcr/net/ns_ntoa.c
src/lib/libcr/quad/muldi3.c
src/lib/libcr/quad/qdivrem.c
src/lib/libcr/rpc/authdes_prot.c
src/lib/libcr/rpc/key_prot_xdr.c
src/lib/libedit/common.c
src/lib/libedit/emacs.c
src/lib/libipx/ipx_ntoa.c
src/lib/libm/common_source/fmod.c
src/lib/libstand/ether.c
src/lib/libstand/fstat.c
src/lib/libstand/gets.c
src/lib/libstand/ioctl.c
src/lib/libstand/netif.c
src/lib/libstand/rarp.c
src/lib/libstand/rpc.c
src/lib/libstand/strcasecmp.c
src/lib/libstand/strtol.c
src/lib/libstand/write.c

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Apr 11 21:28:03 2004 UTC (10 years, 8 months ago) by cpressey
Branches: MAIN
CVS tags: DragonFly_Snap29Sep2004, DragonFly_Snap13Sep2004, DragonFly_1_0_REL, DragonFly_1_0_RC1, DragonFly_1_0A_REL
Diff to: previous 1.3: preferred, unified
Changes since revision 1.3: +21 -75 lines
Style(9) cleanup.

- Convert K&R-style function definitions to ANSI style.
- Remove `register' keywords.
- Use stdarg.h instead of varargs.h for variable numbers of arguments.
- #define _KERNEL_STRUCTURES when accessing kernel structures.
- No functional changes.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Wed Nov 12 20:21:30 2003 UTC (11 years, 1 month ago) by eirikn
Branches: MAIN
Diff to: previous 1.2: preferred, unified
Changes since revision 1.2: +2 -2 lines
 * Removed the __P macros from lib/

 * Small fixups by me in lib/libcr, there was some stale ')' after the __P( was
   removed from the line above.

Submitted-by: Craig Dooley <craig@xlnx-x.net>

Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 04:26:49 2003 UTC (11 years, 6 months ago) by dillon
Branches: MAIN
Diff to: previous 1.1: preferred, unified
Changes since revision 1.1: +4 -9 lines
Add the DragonFly cvs id and perform general cleanups on cvs/rcs/sccs ids.  Most
ids have been removed from !lint sections and moved into comment sections.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jun 17 02:51:28 2003 UTC (11 years, 6 months ago) by dillon
Branches: MAIN
CVS tags: FREEBSD_4_FORK
import from FreeBSD RELENG_4 1.12.2.3

Diff request

This form allows you to request diffs 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.

Log view options