Print this page
4471 DTrace count() with histogram
4472 DTrace full width distribution histograms
4473 DTrace frequency trails


1006 #define DTRACEOPT_CPU           8       /* CPU to trace */
1007 #define DTRACEOPT_BUFRESIZE     9       /* buffer resizing policy */
1008 #define DTRACEOPT_GRABANON      10      /* grab anonymous state, if any */
1009 #define DTRACEOPT_FLOWINDENT    11      /* indent function entry/return */
1010 #define DTRACEOPT_QUIET         12      /* only output explicitly traced data */
1011 #define DTRACEOPT_STACKFRAMES   13      /* number of stack frames */
1012 #define DTRACEOPT_USTACKFRAMES  14      /* number of user stack frames */
1013 #define DTRACEOPT_AGGRATE       15      /* aggregation snapshot rate */
1014 #define DTRACEOPT_SWITCHRATE    16      /* buffer switching rate */
1015 #define DTRACEOPT_STATUSRATE    17      /* status rate */
1016 #define DTRACEOPT_DESTRUCTIVE   18      /* destructive actions allowed */
1017 #define DTRACEOPT_STACKINDENT   19      /* output indent for stack traces */
1018 #define DTRACEOPT_RAWBYTES      20      /* always print bytes in raw form */
1019 #define DTRACEOPT_JSTACKFRAMES  21      /* number of jstack() frames */
1020 #define DTRACEOPT_JSTACKSTRSIZE 22      /* size of jstack() string table */
1021 #define DTRACEOPT_AGGSORTKEY    23      /* sort aggregations by key */
1022 #define DTRACEOPT_AGGSORTREV    24      /* reverse-sort aggregations */
1023 #define DTRACEOPT_AGGSORTPOS    25      /* agg. position to sort on */
1024 #define DTRACEOPT_AGGSORTKEYPOS 26      /* agg. key position to sort on */
1025 #define DTRACEOPT_TEMPORAL      27      /* temporally ordered output */
1026 #define DTRACEOPT_MAX           28      /* number of options */




1027 
1028 #define DTRACEOPT_UNSET         (dtrace_optval_t)-2     /* unset option */
1029 
1030 #define DTRACEOPT_BUFPOLICY_RING        0       /* ring buffer */
1031 #define DTRACEOPT_BUFPOLICY_FILL        1       /* fill buffer, then stop */
1032 #define DTRACEOPT_BUFPOLICY_SWITCH      2       /* switch buffers */
1033 
1034 #define DTRACEOPT_BUFRESIZE_AUTO        0       /* automatic resizing */
1035 #define DTRACEOPT_BUFRESIZE_MANUAL      1       /* manual resizing */
1036 
1037 /*
1038  * DTrace Buffer Interface
1039  *
1040  * In order to get a snapshot of the principal or aggregation buffer,
1041  * user-level passes a buffer description to the kernel with the dtrace_bufdesc
1042  * structure.  This describes which CPU user-level is interested in, and
1043  * where user-level wishes the kernel to snapshot the buffer to (the
1044  * dtbd_data field).  The kernel uses the same structure to pass back some
1045  * information regarding the buffer:  the size of data actually copied out, the
1046  * number of drops, the number of errors, the offset of the oldest record,




1006 #define DTRACEOPT_CPU           8       /* CPU to trace */
1007 #define DTRACEOPT_BUFRESIZE     9       /* buffer resizing policy */
1008 #define DTRACEOPT_GRABANON      10      /* grab anonymous state, if any */
1009 #define DTRACEOPT_FLOWINDENT    11      /* indent function entry/return */
1010 #define DTRACEOPT_QUIET         12      /* only output explicitly traced data */
1011 #define DTRACEOPT_STACKFRAMES   13      /* number of stack frames */
1012 #define DTRACEOPT_USTACKFRAMES  14      /* number of user stack frames */
1013 #define DTRACEOPT_AGGRATE       15      /* aggregation snapshot rate */
1014 #define DTRACEOPT_SWITCHRATE    16      /* buffer switching rate */
1015 #define DTRACEOPT_STATUSRATE    17      /* status rate */
1016 #define DTRACEOPT_DESTRUCTIVE   18      /* destructive actions allowed */
1017 #define DTRACEOPT_STACKINDENT   19      /* output indent for stack traces */
1018 #define DTRACEOPT_RAWBYTES      20      /* always print bytes in raw form */
1019 #define DTRACEOPT_JSTACKFRAMES  21      /* number of jstack() frames */
1020 #define DTRACEOPT_JSTACKSTRSIZE 22      /* size of jstack() string table */
1021 #define DTRACEOPT_AGGSORTKEY    23      /* sort aggregations by key */
1022 #define DTRACEOPT_AGGSORTREV    24      /* reverse-sort aggregations */
1023 #define DTRACEOPT_AGGSORTPOS    25      /* agg. position to sort on */
1024 #define DTRACEOPT_AGGSORTKEYPOS 26      /* agg. key position to sort on */
1025 #define DTRACEOPT_TEMPORAL      27      /* temporally ordered output */
1026 #define DTRACEOPT_AGGHIST       28      /* histogram aggregation output */
1027 #define DTRACEOPT_AGGPACK       29      /* packed aggregation output */
1028 #define DTRACEOPT_AGGZOOM       30      /* zoomed aggregation scaling */
1029 #define DTRACEOPT_ZONE          31      /* zone in which to enable probes */
1030 #define DTRACEOPT_MAX           32      /* number of options */
1031 
1032 #define DTRACEOPT_UNSET         (dtrace_optval_t)-2     /* unset option */
1033 
1034 #define DTRACEOPT_BUFPOLICY_RING        0       /* ring buffer */
1035 #define DTRACEOPT_BUFPOLICY_FILL        1       /* fill buffer, then stop */
1036 #define DTRACEOPT_BUFPOLICY_SWITCH      2       /* switch buffers */
1037 
1038 #define DTRACEOPT_BUFRESIZE_AUTO        0       /* automatic resizing */
1039 #define DTRACEOPT_BUFRESIZE_MANUAL      1       /* manual resizing */
1040 
1041 /*
1042  * DTrace Buffer Interface
1043  *
1044  * In order to get a snapshot of the principal or aggregation buffer,
1045  * user-level passes a buffer description to the kernel with the dtrace_bufdesc
1046  * structure.  This describes which CPU user-level is interested in, and
1047  * where user-level wishes the kernel to snapshot the buffer to (the
1048  * dtbd_data field).  The kernel uses the same structure to pass back some
1049  * information regarding the buffer:  the size of data actually copied out, the
1050  * number of drops, the number of errors, the offset of the oldest record,