Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/prstat/prstat.h
          +++ new/usr/src/cmd/prstat/prstat.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 2013 Gary Mills
  24   24   *
  25   25   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26   26   * Use is subject to license terms.
  27   27   *
  28   28   * Portions Copyright 2009 Chad Mynhier
       29 + * Copyright 2018 Joyent, Inc.  All rights reserved.
  29   30   */
  30   31  
  31   32  #ifndef _PRSTAT_H
  32   33  #define _PRSTAT_H
  33   34  
  34   35  #include <sys/sysmacros.h>
  35   36  #include <sys/time.h>
  36   37  #include <sys/types.h>
  37   38  #include <procfs.h>
  38   39  
↓ open down ↓ 67 lines elided ↑ open up ↑
 106  107          float           li_trp;         /* other system trap CPU time */
 107  108          float           li_tfl;         /* text page fault sleep time */
 108  109          float           li_dfl;         /* data page fault sleep time */
 109  110          float           li_lck;         /* user lock wait sleep time */
 110  111          float           li_slp;         /* all other sleep time */
 111  112          float           li_lat;         /* wait-cpu (latency) time */
 112  113          ulong_t         li_vcx;         /* voluntary context switches */
 113  114          ulong_t         li_icx;         /* involuntary context switches */
 114  115          ulong_t         li_scl;         /* system calls */
 115  116          ulong_t         li_sig;         /* received signals */
      117 +        char            li_lwpname[THREAD_NAME_MAX];
 116  118          struct lwp_info *li_next;       /* pointer to next lwp */
 117  119          struct lwp_info *li_prev;       /* pointer to previous lwp */
 118  120  } lwp_info_t;
 119  121  
 120  122  /*
 121  123   * Linked list of collective per-uid, per-taskid, per-projid or per-lgroup
 122  124   * statistics
 123  125   */
 124  126  typedef struct id_info {
 125  127          uid_t           id_uid;         /* user id */
↓ open down ↓ 34 lines elided ↑ open up ↑
 160  162  /*
 161  163   * Command line options
 162  164   */
 163  165  typedef struct optdesc {
 164  166          int             o_interval;     /* interval between updates */
 165  167          int             o_ntop;         /* number of lines in top half */
 166  168          int             o_nbottom;      /* number of lines in bottom half */
 167  169          int             o_count;        /* number of iterations */
 168  170          int             o_outpmode;     /* selected output mode */
 169  171          int             o_sortorder;    /* +1 ascending, -1 descending */
      172 +        int             o_cols;         /* number of columns */
 170  173  } optdesc_t;
 171  174  
      175 +extern optdesc_t opts;
      176 +
 172  177  #ifdef  __cplusplus
 173  178  }
 174  179  #endif
 175  180  
 176  181  #endif  /* _PRSTAT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX