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

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/dtrace.h
          +++ new/usr/src/uts/common/sys/dtrace.h
↓ open down ↓ 17 lines elided ↑ open up ↑
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*
  28      - * Copyright 2017 Joyent, Inc.
       28 + * Copyright 2018 Joyent, Inc.
  29   29   * Copyright (c) 2013 by Delphix. All rights reserved.
  30   30   */
  31   31  
  32   32  #ifndef _SYS_DTRACE_H
  33   33  #define _SYS_DTRACE_H
  34   34  
  35   35  #ifdef  __cplusplus
  36   36  extern "C" {
  37   37  #endif
  38   38  
↓ open down ↓ 196 lines elided ↑ open up ↑
 235  235  #define DIF_VAR_TID             0x0117  /* (per-process) thread ID */
 236  236  #define DIF_VAR_EXECNAME        0x0118  /* name of executable */
 237  237  #define DIF_VAR_ZONENAME        0x0119  /* zone name associated with process */
 238  238  #define DIF_VAR_WALLTIMESTAMP   0x011a  /* wall-clock timestamp */
 239  239  #define DIF_VAR_USTACKDEPTH     0x011b  /* user-land stack depth */
 240  240  #define DIF_VAR_UCALLER         0x011c  /* user-level caller */
 241  241  #define DIF_VAR_PPID            0x011d  /* parent process ID */
 242  242  #define DIF_VAR_UID             0x011e  /* process user ID */
 243  243  #define DIF_VAR_GID             0x011f  /* process group ID */
 244  244  #define DIF_VAR_ERRNO           0x0120  /* thread errno */
      245 +#define DIF_VAR_THREADNAME      0x0121  /* thread name */
 245  246  
 246  247  #define DIF_SUBR_RAND                   0
 247  248  #define DIF_SUBR_MUTEX_OWNED            1
 248  249  #define DIF_SUBR_MUTEX_OWNER            2
 249  250  #define DIF_SUBR_MUTEX_TYPE_ADAPTIVE    3
 250  251  #define DIF_SUBR_MUTEX_TYPE_SPIN        4
 251  252  #define DIF_SUBR_RW_READ_HELD           5
 252  253  #define DIF_SUBR_RW_WRITE_HELD          6
 253  254  #define DIF_SUBR_RW_ISWRITER            7
 254  255  #define DIF_SUBR_COPYIN                 8
↓ open down ↓ 1950 lines elided ↑ open up ↑
2205 2206   *
2206 2207   *   dtms_remove_pid() is called from either ioctl() or exit() context.
2207 2208   *   The DTrace framework is locked in such a way that meta providers may not
2208 2209   *   register or unregister. This means that the meta provider cannot call
2209 2210   *   dtrace_meta_register() or dtrace_meta_unregister(). However, the context
2210 2211   *   is such that the provider may -- and is expected to -- call
2211 2212   *   provider-related DTrace provider APIs including dtrace_unregister().
2212 2213   */
2213 2214  typedef struct dtrace_helper_probedesc {
2214 2215          char *dthpb_mod;                        /* probe module */
2215      -        char *dthpb_func;                       /* probe function */
2216      -        char *dthpb_name;                       /* probe name */
     2216 +        char *dthpb_func;                       /* probe function */
     2217 +        char *dthpb_name;                       /* probe name */
2217 2218          uint64_t dthpb_base;                    /* base address */
2218 2219          uint32_t *dthpb_offs;                   /* offsets array */
2219 2220          uint32_t *dthpb_enoffs;                 /* is-enabled offsets array */
2220 2221          uint32_t dthpb_noffs;                   /* offsets count */
2221 2222          uint32_t dthpb_nenoffs;                 /* is-enabled offsets count */
2222 2223          uint8_t *dthpb_args;                    /* argument mapping array */
2223 2224          uint8_t dthpb_xargc;                    /* translated argument count */
2224 2225          uint8_t dthpb_nargc;                    /* native argument count */
2225 2226          char *dthpb_xtypes;                     /* translated types strings */
2226 2227          char *dthpb_ntypes;                     /* native types strings */
↓ open down ↓ 126 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX