Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
@@ -24,10 +24,11 @@
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* Portions Copyright 2009 Chad Mynhier
+ * Copyright 2018 Joyent, Inc. All rights reserved.
*/
#ifndef _PRSTAT_H
#define _PRSTAT_H
@@ -111,10 +112,11 @@
float li_lat; /* wait-cpu (latency) time */
ulong_t li_vcx; /* voluntary context switches */
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;
/*
@@ -165,12 +167,15 @@
int o_ntop; /* number of lines in top half */
int o_nbottom; /* number of lines in bottom half */
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
#endif /* _PRSTAT_H */