summaryrefslogtreecommitdiff
path: root/usr/src/cmd/prstat/prstat.h
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-10-15 14:57:13 +0000
committerJohn Levon <john.levon@joyent.com>2018-10-15 14:57:13 +0000
commitf5733417953d12d5f4b44353b59c3b14f13696c2 (patch)
tree3e8c4bc1ee61164386f7dfc70c4b8b760731d843 /usr/src/cmd/prstat/prstat.h
parent8bd1e5ed2443eb501ddfba4147e769b6d0074ef3 (diff)
parentf35f236324c07bf560ad6481307ea93b1261d636 (diff)
downloadillumos-joyent-gcc-update.tar.gz
Merge remote-tracking branch 'ctf/OS-7275' into gcc-updategcc-update
Diffstat (limited to 'usr/src/cmd/prstat/prstat.h')
-rw-r--r--usr/src/cmd/prstat/prstat.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/cmd/prstat/prstat.h b/usr/src/cmd/prstat/prstat.h
index ddb7416213..7d3913f731 100644
--- a/usr/src/cmd/prstat/prstat.h
+++ b/usr/src/cmd/prstat/prstat.h
@@ -26,7 +26,7 @@
* Use is subject to license terms.
*
* Portions Copyright 2009 Chad Mynhier
- * Copyright 2017 Joyent, Inc. All rights reserved.
+ * Copyright 2018 Joyent, Inc. All rights reserved.
*/
#ifndef _PRSTAT_H
@@ -115,6 +115,7 @@ typedef struct lwp_info {
ulong_t li_icx; /* involuntary context switches */
ulong_t li_scl; /* system calls */
ulong_t li_sig; /* received signals */
+ char li_lwpname[THREAD_NAME_MAX];
struct lwp_info *li_next; /* pointer to next lwp */
struct lwp_info *li_prev; /* pointer to previous lwp */
} lwp_info_t;
@@ -169,8 +170,11 @@ typedef struct optdesc {
int o_count; /* number of iterations */
int o_outpmode; /* selected output mode */
int o_sortorder; /* +1 ascending, -1 descending */
+ int o_cols; /* number of columns */
} optdesc_t;
+extern optdesc_t opts;
+
#ifdef __cplusplus
}
#endif