Print this page
2916 DTrace in a zone should be able to access fds[]

@@ -915,10 +915,11 @@
         int dtms_ipl;                           /* cached interrupt pri lev */
         int dtms_fltoffs;                       /* faulting DIFO offset */
         uintptr_t dtms_strtok;                  /* saved strtok() pointer */
         uint32_t dtms_access;                   /* memory access rights */
         dtrace_difo_t *dtms_difo;               /* current dif object */
+        file_t *dtms_getf;                      /* cached rval of getf() */
 } dtrace_mstate_t;
 
 #define DTRACE_COND_OWNER       0x1
 #define DTRACE_COND_USERMODE    0x2
 #define DTRACE_COND_ZONEOWNER   0x4

@@ -1135,10 +1136,11 @@
         int dts_nformats;                       /* number of formats */
         char **dts_formats;                     /* format string array */
         dtrace_optval_t dts_options[DTRACEOPT_MAX]; /* options */
         dtrace_cred_t dts_cred;                 /* credentials */
         size_t dts_nretained;                   /* number of retained enabs */
+        int dts_getf;                           /* number of getf() calls */
 };
 
 struct dtrace_provider {
         dtrace_pattr_t dtpv_attr;               /* provider attributes */
         dtrace_ppriv_t dtpv_priv;               /* provider privileges */