Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an

explicit object type.

Reviewed by:	kib
MFC after:	1 week
This commit is contained in:
John Baldwin 2014-02-11 21:57:37 +00:00
parent 7233ddb0cb
commit 2db08c03f0
4 changed files with 11 additions and 1 deletions

View File

@ -2255,6 +2255,9 @@ kern_proc_vmmap_out(struct proc *p, struct sbuf *sb)
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;

View File

@ -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

View File

@ -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

View File

@ -100,6 +100,9 @@ procstat_vm(struct procstat *procstat, struct kinfo_proc *kipp)
case KVME_TYPE_SG:
str = "sg";
break;
case KVME_TYPE_MGTDEVICE:
str = "md";
break;
case KVME_TYPE_UNKNOWN:
default:
str = "??";