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


  27 #include <sys/dtrace.h>
  28 #include <sys/cmn_err.h>
  29 #include <sys/tnf.h>
  30 #include <sys/atomic.h>
  31 #include <sys/prsystm.h>
  32 #include <sys/modctl.h>
  33 #include <sys/aio_impl.h>
  34 
  35 #ifdef __sparc
  36 #include <sys/privregs.h>
  37 #endif
  38 
  39 void (*dtrace_cpu_init)(processorid_t);
  40 void (*dtrace_modload)(struct modctl *);
  41 void (*dtrace_modunload)(struct modctl *);
  42 void (*dtrace_helpers_cleanup)(void);
  43 void (*dtrace_helpers_fork)(proc_t *, proc_t *);
  44 void (*dtrace_cpustart_init)(void);
  45 void (*dtrace_cpustart_fini)(void);
  46 void (*dtrace_cpc_fire)(uint64_t);

  47 
  48 void (*dtrace_debugger_init)(void);
  49 void (*dtrace_debugger_fini)(void);
  50 
  51 dtrace_vtime_state_t dtrace_vtime_active = 0;
  52 dtrace_cacheid_t dtrace_predcache_id = DTRACE_CACHEIDNONE + 1;
  53 
  54 /*
  55  * dtrace_cpc_in_use usage statement: this global variable is used by the cpc
  56  * hardware overflow interrupt handler and the kernel cpc framework to check
  57  * whether or not the DTrace cpc provider is currently in use. The variable is
  58  * set before counters are enabled with the first enabling and cleared when
  59  * the last enabling is disabled. Its value at any given time indicates the
  60  * number of active dcpc based enablings. The global 'kcpc_cpuctx_lock' rwlock
  61  * is held during initial setting to protect races between kcpc_open() and the
  62  * first enabling. The locking provided by the DTrace subsystem, the kernel
  63  * cpc framework and the cpu management framework protect consumers from race
  64  * conditions on enabling and disabling probes.
  65  */
  66 uint32_t dtrace_cpc_in_use = 0;




  27 #include <sys/dtrace.h>
  28 #include <sys/cmn_err.h>
  29 #include <sys/tnf.h>
  30 #include <sys/atomic.h>
  31 #include <sys/prsystm.h>
  32 #include <sys/modctl.h>
  33 #include <sys/aio_impl.h>
  34 
  35 #ifdef __sparc
  36 #include <sys/privregs.h>
  37 #endif
  38 
  39 void (*dtrace_cpu_init)(processorid_t);
  40 void (*dtrace_modload)(struct modctl *);
  41 void (*dtrace_modunload)(struct modctl *);
  42 void (*dtrace_helpers_cleanup)(void);
  43 void (*dtrace_helpers_fork)(proc_t *, proc_t *);
  44 void (*dtrace_cpustart_init)(void);
  45 void (*dtrace_cpustart_fini)(void);
  46 void (*dtrace_cpc_fire)(uint64_t);
  47 void (*dtrace_closef)(void);
  48 
  49 void (*dtrace_debugger_init)(void);
  50 void (*dtrace_debugger_fini)(void);
  51 
  52 dtrace_vtime_state_t dtrace_vtime_active = 0;
  53 dtrace_cacheid_t dtrace_predcache_id = DTRACE_CACHEIDNONE + 1;
  54 
  55 /*
  56  * dtrace_cpc_in_use usage statement: this global variable is used by the cpc
  57  * hardware overflow interrupt handler and the kernel cpc framework to check
  58  * whether or not the DTrace cpc provider is currently in use. The variable is
  59  * set before counters are enabled with the first enabling and cleared when
  60  * the last enabling is disabled. Its value at any given time indicates the
  61  * number of active dcpc based enablings. The global 'kcpc_cpuctx_lock' rwlock
  62  * is held during initial setting to protect races between kcpc_open() and the
  63  * first enabling. The locking provided by the DTrace subsystem, the kernel
  64  * cpc framework and the cpu management framework protect consumers from race
  65  * conditions on enabling and disabling probes.
  66  */
  67 uint32_t dtrace_cpc_in_use = 0;