summaryrefslogtreecommitdiff
path: root/usr/src/cmd/prstat/prstat.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/prstat/prstat.h')
-rw-r--r--usr/src/cmd/prstat/prstat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/cmd/prstat/prstat.h b/usr/src/cmd/prstat/prstat.h
index 293123c5b9..e205a98bd2 100644
--- a/usr/src/cmd/prstat/prstat.h
+++ b/usr/src/cmd/prstat/prstat.h
@@ -26,6 +26,7 @@
* Use is subject to license terms.
*
* Portions Copyright 2009 Chad Mynhier
+ * Copyright 2018 Joyent, Inc. All rights reserved.
*/
#ifndef _PRSTAT_H
@@ -113,6 +114,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;
@@ -167,8 +169,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