Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 19:11:14 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r262228 - in stable: 10/sys/kern 10/sys/sys 10/usr.bin/procstat 9/sys/kern 9/sys/sys 9/usr.bin/procstat
Message-ID:  <201402191911.s1JJBE5L020268@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Wed Feb 19 19:11:14 2014
New Revision: 262228
URL: http://svnweb.freebsd.org/changeset/base/262228

Log:
  MFC 261780:
  Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an
  explicit object type.

Modified:
  stable/10/sys/kern/kern_proc.c
  stable/10/sys/sys/user.h
  stable/10/usr.bin/procstat/procstat.1
  stable/10/usr.bin/procstat/procstat_vm.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/9/sys/kern/kern_proc.c
  stable/9/sys/sys/user.h
  stable/9/usr.bin/procstat/procstat.1
  stable/9/usr.bin/procstat/procstat_vm.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/sys/   (props changed)
  stable/9/usr.bin/procstat/   (props changed)

Modified: stable/10/sys/kern/kern_proc.c
==============================================================================
--- stable/10/sys/kern/kern_proc.c	Wed Feb 19 18:36:53 2014	(r262227)
+++ stable/10/sys/kern/kern_proc.c	Wed Feb 19 19:11:14 2014	(r262228)
@@ -2256,6 +2256,9 @@ kern_proc_vmmap_out(struct proc *p, stru
 			case OBJT_SG:
 				kve->kve_type = KVME_TYPE_SG;
 				break;
+			case OBJT_MGTDEVICE:
+				kve->kve_type = KVME_TYPE_MGTDEVICE;
+				break;
 			default:
 				kve->kve_type = KVME_TYPE_UNKNOWN;
 				break;

Modified: stable/10/sys/sys/user.h
==============================================================================
--- stable/10/sys/sys/user.h	Wed Feb 19 18:36:53 2014	(r262227)
+++ stable/10/sys/sys/user.h	Wed Feb 19 19:11:14 2014	(r262228)
@@ -414,6 +414,7 @@ struct kinfo_file {
 #define	KVME_TYPE_PHYS		5
 #define	KVME_TYPE_DEAD		6
 #define	KVME_TYPE_SG		7
+#define	KVME_TYPE_MGTDEVICE	8
 #define	KVME_TYPE_UNKNOWN	255
 
 #define	KVME_PROT_READ		0x00000001

Modified: stable/10/usr.bin/procstat/procstat.1
==============================================================================
--- stable/10/usr.bin/procstat/procstat.1	Wed Feb 19 18:36:53 2014	(r262227)
+++ stable/10/usr.bin/procstat/procstat.1	Wed Feb 19 19:11:14 2014	(r262228)
@@ -25,7 +25,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 27, 2013
+.Dd February 11, 2014
 .Dt PROCSTAT 1
 .Os
 .Sh NAME
@@ -416,6 +416,9 @@ dead
 default
 .It dv
 device
+.It md
+device with managed pages
+.Pq GEM/TTM
 .It ph
 physical
 .It sg

Modified: stable/10/usr.bin/procstat/procstat_vm.c
==============================================================================
--- stable/10/usr.bin/procstat/procstat_vm.c	Wed Feb 19 18:36:53 2014	(r262227)
+++ stable/10/usr.bin/procstat/procstat_vm.c	Wed Feb 19 19:11:14 2014	(r262228)
@@ -100,6 +100,9 @@ procstat_vm(struct procstat *procstat, s
 		case KVME_TYPE_SG:
 			str = "sg";
 			break;
+		case KVME_TYPE_MGTDEVICE:
+			str = "md";
+			break;
 		case KVME_TYPE_UNKNOWN:
 		default:
 			str = "??";



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