Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Oct 2008 09:09:55 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 152142 for review
Message-ID:  <200810290909.m9T99txI086831@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=152142

Change 152142 by peter@peter_overcee on 2008/10/29 09:09:52

	record KERN_PROC_VMMAP structures (used instead of procfs)

Affected files ...

.. //depot/projects/valgrind/include/vki/vki-freebsd.h#7 edit

Differences ...

==== //depot/projects/valgrind/include/vki/vki-freebsd.h#7 (text+ko) ====

@@ -1740,6 +1740,54 @@
 	vki_uint8_t	node[6];
 };
 
+//----------------------------------------------------------------------
+// From sys/user.h
+//----------------------------------------------------------------------
+
+#define VKI_KVME_TYPE_NONE          0
+#define VKI_KVME_TYPE_DEFAULT       1
+#define VKI_KVME_TYPE_VNODE         2
+#define VKI_KVME_TYPE_SWAP          3
+#define VKI_KVME_TYPE_DEVICE        4
+#define VKI_KVME_TYPE_PHYS          5
+#define VKI_KVME_TYPE_DEAD          6
+#define VKI_KVME_TYPE_UNKNOWN       255
+
+#define VKI_KVME_PROT_READ          0x00000001
+#define VKI_KVME_PROT_WRITE         0x00000002
+#define VKI_KVME_PROT_EXEC          0x00000004
+
+#define VKI_KVME_FLAG_COW           0x00000001
+#define VKI_KVME_FLAG_NEEDS_COPY    0x00000002
+
+struct vki_kinfo_vmentry {
+	int	kve_structsize;
+	int	kve_type;
+	void *	kve_start;
+	void *	kve_end;
+	int	kve_flags;
+	int	kve_resident;
+	int	kve_private_resident;
+	int	kve_protection;
+	int	kve_ref_count;
+	int	kve_shadow_count;
+	char	kve_path[VKI_PATH_MAX];
+	Off64T	kve_offset;
+#ifdef VGA_amd64
+	long	kve_pad;
+#endif
+	void *	kve_pspare[6];
+	int	kve_ispare[8];
+};
+
+//----------------------------------------------------------------------
+// From sys/sysctl.h (and related)
+//----------------------------------------------------------------------
+
+#define VKI_CTL_KERN         1
+#define VKI_KERN_PROC        14
+#define VKI_KERN_PROC_VMMAP  13
+
 /*--------------------------------------------------------------------*/
 /*--- end                                                          ---*/
 /*--------------------------------------------------------------------*/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810290909.m9T99txI086831>