Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libdtrace/common/dt_impl.h
| Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | |||||
| typedef struct dt_print_aggdata { | typedef struct dt_print_aggdata { | ||||
| dtrace_hdl_t *dtpa_dtp; /* pointer to libdtrace handle */ | dtrace_hdl_t *dtpa_dtp; /* pointer to libdtrace handle */ | ||||
| dtrace_aggvarid_t dtpa_id; /* aggregation variable of interest */ | dtrace_aggvarid_t dtpa_id; /* aggregation variable of interest */ | ||||
| FILE *dtpa_fp; /* file pointer */ | FILE *dtpa_fp; /* file pointer */ | ||||
| int dtpa_allunprint; /* print only unprinted aggregations */ | int dtpa_allunprint; /* print only unprinted aggregations */ | ||||
| int dtpa_agghist; /* print aggregation as histogram */ | int dtpa_agghist; /* print aggregation as histogram */ | ||||
| int dtpa_agghisthdr; /* aggregation histogram hdr printed */ | int dtpa_agghisthdr; /* aggregation histogram hdr printed */ | ||||
| int dtpa_aggpack; /* pack quantized aggregations */ | int dtpa_aggpack; /* pack quantized aggregations */ | ||||
| char dtpa_keyname[256]; /* key name for oformat */ | |||||
| char *dtpa_aggname; /* aggregate name for oformat */ | |||||
| } dt_print_aggdata_t; | } dt_print_aggdata_t; | ||||
| typedef struct dt_dirpath { | typedef struct dt_dirpath { | ||||
| dt_list_t dir_list; /* linked-list forward/back pointers */ | dt_list_t dir_list; /* linked-list forward/back pointers */ | ||||
| char *dir_path; /* directory pathname */ | char *dir_path; /* directory pathname */ | ||||
| } dt_dirpath_t; | } dt_dirpath_t; | ||||
| typedef struct dt_lib_depend { | typedef struct dt_lib_depend { | ||||
| ▲ Show 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | #endif | ||||
| dt_list_t dt_lib_dep; /* scratch linked-list of lib dependencies */ | dt_list_t dt_lib_dep; /* scratch linked-list of lib dependencies */ | ||||
| dt_list_t dt_lib_dep_sorted; /* dependency sorted library list */ | dt_list_t dt_lib_dep_sorted; /* dependency sorted library list */ | ||||
| dtrace_flowkind_t dt_flow; /* flow kind */ | dtrace_flowkind_t dt_flow; /* flow kind */ | ||||
| const char *dt_prefix; /* recommended flow prefix */ | const char *dt_prefix; /* recommended flow prefix */ | ||||
| int dt_indent; /* recommended flow indent */ | int dt_indent; /* recommended flow indent */ | ||||
| dtrace_epid_t dt_last_epid; /* most recently consumed EPID */ | dtrace_epid_t dt_last_epid; /* most recently consumed EPID */ | ||||
| uint64_t dt_last_timestamp; /* most recently consumed timestamp */ | uint64_t dt_last_timestamp; /* most recently consumed timestamp */ | ||||
| boolean_t dt_has_sugar; /* syntactic sugar used? */ | boolean_t dt_has_sugar; /* syntactic sugar used? */ | ||||
| int dt_oformat; /* output format (none, json, xml, html) */ | |||||
| }; | }; | ||||
| /* | /* | ||||
| * Values for the user arg of the ECB. | * Values for the user arg of the ECB. | ||||
| */ | */ | ||||
| #define DT_ECB_DEFAULT 0 | #define DT_ECB_DEFAULT 0 | ||||
| #define DT_ECB_ERROR 1 | #define DT_ECB_ERROR 1 | ||||
| ▲ Show 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | |||||
| extern int dt_print_quantize(dtrace_hdl_t *, FILE *, | extern int dt_print_quantize(dtrace_hdl_t *, FILE *, | ||||
| const void *, size_t, uint64_t); | const void *, size_t, uint64_t); | ||||
| extern int dt_print_lquantize(dtrace_hdl_t *, FILE *, | extern int dt_print_lquantize(dtrace_hdl_t *, FILE *, | ||||
| const void *, size_t, uint64_t); | const void *, size_t, uint64_t); | ||||
| extern int dt_print_llquantize(dtrace_hdl_t *, FILE *, | extern int dt_print_llquantize(dtrace_hdl_t *, FILE *, | ||||
| const void *, size_t, uint64_t); | const void *, size_t, uint64_t); | ||||
| extern int dt_print_agg(const dtrace_aggdata_t *, void *); | extern int dt_print_agg(const dtrace_aggdata_t *, void *); | ||||
| extern int dt_format_agg(const dtrace_aggdata_t *, void *); | |||||
| extern int dt_handle(dtrace_hdl_t *, dtrace_probedata_t *); | extern int dt_handle(dtrace_hdl_t *, dtrace_probedata_t *); | ||||
| extern int dt_handle_liberr(dtrace_hdl_t *, | extern int dt_handle_liberr(dtrace_hdl_t *, | ||||
| const dtrace_probedata_t *, const char *); | const dtrace_probedata_t *, const char *); | ||||
| extern int dt_handle_cpudrop(dtrace_hdl_t *, processorid_t, | extern int dt_handle_cpudrop(dtrace_hdl_t *, processorid_t, | ||||
| dtrace_dropkind_t, uint64_t); | dtrace_dropkind_t, uint64_t); | ||||
| extern int dt_handle_status(dtrace_hdl_t *, | extern int dt_handle_status(dtrace_hdl_t *, | ||||
| dtrace_status_t *, dtrace_status_t *); | dtrace_status_t *, dtrace_status_t *); | ||||
| extern int dt_handle_setopt(dtrace_hdl_t *, dtrace_setoptdata_t *); | extern int dt_handle_setopt(dtrace_hdl_t *, dtrace_setoptdata_t *); | ||||
| extern void dt_oformat_drop(dtrace_hdl_t *, processorid_t); | |||||
| extern int dt_lib_depend_add(dtrace_hdl_t *, dt_list_t *, const char *); | extern int dt_lib_depend_add(dtrace_hdl_t *, dt_list_t *, const char *); | ||||
| extern dt_lib_depend_t *dt_lib_depend_lookup(dt_list_t *, const char *); | extern dt_lib_depend_t *dt_lib_depend_lookup(dt_list_t *, const char *); | ||||
| extern dt_pcb_t *yypcb; /* pointer to current parser control block */ | extern dt_pcb_t *yypcb; /* pointer to current parser control block */ | ||||
| extern char yyintprefix; /* int token prefix for macros (+/-) */ | extern char yyintprefix; /* int token prefix for macros (+/-) */ | ||||
| extern char yyintsuffix[4]; /* int token suffix ([uUlL]*) */ | extern char yyintsuffix[4]; /* int token suffix ([uUlL]*) */ | ||||
| extern int yyintdecimal; /* int token is decimal (1) or octal/hex (0) */ | extern int yyintdecimal; /* int token is decimal (1) or octal/hex (0) */ | ||||
| Show All 37 Lines | |||||