summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/sys/procfs.h
diff options
context:
space:
mode:
authorakolb <none@none>2006-09-06 11:54:18 -0700
committerakolb <none@none>2006-09-06 11:54:18 -0700
commitc64027834c5ffc60c557c2b12555e0cd4d30320c (patch)
tree795abc626b4f567a60b01b6e1ae7a867f8a3a2fb /usr/src/uts/common/sys/procfs.h
parent8a16ae8f6efb5a6c02ab0aec860e229706335bb9 (diff)
downloadillumos-joyent-c64027834c5ffc60c557c2b12555e0cd4d30320c.tar.gz
PSARC 2006/421 MPO Control And Observability Tools
4698370 Want tool for applying advice to affect memory allocation via madvise(3C) 5048416 Want to be able to observe lgroup memory placement via pmap(1) 5048789 Want tool for observing and affecting thread placement on lgroups 6424359 Want Perl interface to liblgrp(3LIB) library 6424363 Want tool for observing lgroup information 6424366 Want walkers for lgroup resources and lineage 6424384 Want ps(1) to be lgroup-aware 6424387 Want prstat(1M) to be lgroup-aware 6455612 DTrace proc provider should have inline for thread home lgroup 6455724 Want thread home lgroup visibility via /proc 6457390 threads should rehome to lgroup with same (or more affinity) than existing home lgroup 6457640 Want to expose lgroup load average scale to user-land
Diffstat (limited to 'usr/src/uts/common/sys/procfs.h')
-rw-r--r--usr/src/uts/common/sys/procfs.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/usr/src/uts/common/sys/procfs.h b/usr/src/uts/common/sys/procfs.h
index 995870f7fc..6f8e1a663d 100644
--- a/usr/src/uts/common/sys/procfs.h
+++ b/usr/src/uts/common/sys/procfs.h
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -61,6 +61,7 @@ extern "C" {
#include <sys/pset.h>
#include <sys/procfs_isa.h>
#include <sys/priv.h>
+#include <sys/lgrp.h>
#if !defined(_LP64) && _FILE_OFFSET_BITS == 64
#error "Cannot use procfs in the large file compilation environment"
@@ -262,7 +263,8 @@ typedef struct lwpsinfo {
processorid_t pr_onpro; /* processor which last ran this lwp */
processorid_t pr_bindpro; /* processor to which lwp is bound */
psetid_t pr_bindpset; /* processor set to which lwp is bound */
- int pr_filler[5]; /* reserved for future use */
+ lgrp_id_t pr_lgrp; /* lwp home lgroup */
+ int pr_filler[4]; /* reserved for future use */
} lwpsinfo_t;
/*
@@ -633,7 +635,8 @@ typedef struct lwpsinfo32 {
processorid_t pr_onpro; /* processor which last ran this lwp */
processorid_t pr_bindpro; /* processor to which lwp is bound */
psetid_t pr_bindpset; /* processor set to which lwp is bound */
- int pr_filler[5]; /* reserved for future use */
+ lgrp_id_t pr_lgrp; /* lwp home lgroup */
+ int pr_filler[4]; /* reserved for future use */
} lwpsinfo32_t;
/*