PERFORCE change 133153 for review

John Birrell jb at FreeBSD.org
Sat Jan 12 19:05:24 PST 2008


http://perforce.freebsd.org/chv.cgi?CH=133153

Change 133153 by jb at jb_freebsd1 on 2008/01/13 03:05:07

	Remove the kvm references. kevent replaced what I was going to use
	kvm for, so that left just opening and closing kvm.

Affected files ...

.. //depot/projects/dtrace/src/lib/libproc/Makefile#2 edit
.. //depot/projects/dtrace/src/lib/libproc/_libproc.h#2 edit
.. //depot/projects/dtrace/src/lib/libproc/proc_create.c#2 edit
.. //depot/projects/dtrace/src/lib/libproc/proc_free.c#2 edit

Differences ...

==== //depot/projects/dtrace/src/lib/libproc/Makefile#2 (text+ko) ====

@@ -13,8 +13,6 @@
 
 SHLIB_MAJOR=	1
 
-LDADD=	-lkvm
-
 WARNS?=	6
 
 WITHOUT_MAN=	yes

==== //depot/projects/dtrace/src/lib/libproc/_libproc.h#2 (text+ko) ====

@@ -31,13 +31,11 @@
 #include <sys/types.h>
 #include <sys/event.h>
 #include <sys/ptrace.h>
-#include <kvm.h>
 
 #include "libproc.h"
 
 struct proc_handle {
 	pid_t	pid;			/* Process ID. */
-	kvm_t	*kd;			/* KVM descriptor. */
 	int	kq;			/* Kernel event queue ID. */
 	int	status;			/* Process status (PS_*). */
 };

==== //depot/projects/dtrace/src/lib/libproc/proc_create.c#2 (text+ko) ====

@@ -90,10 +90,6 @@
                 	err(4, "ERROR: child process %d status 0x%x", pid, status);
 		else
 			phdl->status = PS_STOP;
-
-		if ((phdl->kd = kvm_openfiles(NULL, NULL, NULL,
-		    O_RDWR, errbuf)) == NULL)
-			errx(5, "%s", errbuf);
 	}
 
 	if (error)

==== //depot/projects/dtrace/src/lib/libproc/proc_free.c#2 (text+ko) ====

@@ -32,8 +32,5 @@
 void
 proc_free(struct proc_handle *phdl)
 {
-	if (phdl->kd != NULL)
-		kvm_close(phdl->kd);
-
 	free(phdl);
 }


More information about the p4-projects mailing list