Deleted Added
full compact
dt_impl.h (265234) dt_impl.h (268578)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 132 unchanged lines hidden (view full) ---

141 GElf_Xword dm_data_size; /* size in bytes of data section */
142 GElf_Addr dm_bss_va; /* virtual address of BSS */
143 GElf_Xword dm_bss_size; /* size in bytes of BSS */
144 dt_idhash_t *dm_extern; /* external symbol definitions */
145#if !defined(sun)
146 caddr_t dm_reloc_offset; /* Symbol relocation offset. */
147 uintptr_t *dm_sec_offsets;
148#endif
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 132 unchanged lines hidden (view full) ---

141 GElf_Xword dm_data_size; /* size in bytes of data section */
142 GElf_Addr dm_bss_va; /* virtual address of BSS */
143 GElf_Xword dm_bss_size; /* size in bytes of BSS */
144 dt_idhash_t *dm_extern; /* external symbol definitions */
145#if !defined(sun)
146 caddr_t dm_reloc_offset; /* Symbol relocation offset. */
147 uintptr_t *dm_sec_offsets;
148#endif
149 pid_t dm_pid; /* pid for this module */
150 uint_t dm_nctflibs; /* number of ctf children libraries */
151 ctf_file_t **dm_libctfp; /* process library ctf pointers */
152 char **dm_libctfn; /* names of process ctf containers */
149} dt_module_t;
150
151#define DT_DM_LOADED 0x1 /* module symbol and type data is loaded */
152#define DT_DM_KERNEL 0x2 /* module is associated with a kernel object */
153#define DT_DM_PRIMARY 0x4 /* module is a krtld primary kernel object */
154
155typedef struct dt_provmod {
156 char *dp_name; /* name of provider module */

--- 27 unchanged lines hidden (view full) ---

184 dt_ahash_t dtat_hash; /* aggregate hash table */
185} dt_aggregate_t;
186
187typedef struct dt_print_aggdata {
188 dtrace_hdl_t *dtpa_dtp; /* pointer to libdtrace handle */
189 dtrace_aggvarid_t dtpa_id; /* aggregation variable of interest */
190 FILE *dtpa_fp; /* file pointer */
191 int dtpa_allunprint; /* print only unprinted aggregations */
153} dt_module_t;
154
155#define DT_DM_LOADED 0x1 /* module symbol and type data is loaded */
156#define DT_DM_KERNEL 0x2 /* module is associated with a kernel object */
157#define DT_DM_PRIMARY 0x4 /* module is a krtld primary kernel object */
158
159typedef struct dt_provmod {
160 char *dp_name; /* name of provider module */

--- 27 unchanged lines hidden (view full) ---

188 dt_ahash_t dtat_hash; /* aggregate hash table */
189} dt_aggregate_t;
190
191typedef struct dt_print_aggdata {
192 dtrace_hdl_t *dtpa_dtp; /* pointer to libdtrace handle */
193 dtrace_aggvarid_t dtpa_id; /* aggregation variable of interest */
194 FILE *dtpa_fp; /* file pointer */
195 int dtpa_allunprint; /* print only unprinted aggregations */
196 int dtpa_agghist; /* print aggregation as histogram */
197 int dtpa_agghisthdr; /* aggregation histogram hdr printed */
198 int dtpa_aggpack; /* pack quantized aggregations */
192} dt_print_aggdata_t;
193
194typedef struct dt_dirpath {
195 dt_list_t dir_list; /* linked-list forward/back pointers */
196 char *dir_path; /* directory pathname */
197} dt_dirpath_t;
198
199typedef struct dt_lib_depend {

--- 78 unchanged lines hidden (view full) ---

278 uint_t dt_oflags; /* dtrace open-time options (see dtrace.h) */
279 uint_t dt_cflags; /* dtrace compile-time options (see dtrace.h) */
280 uint_t dt_dflags; /* dtrace link-time options (see dtrace.h) */
281 uint_t dt_prcmode; /* dtrace process create mode (see dt_proc.h) */
282 uint_t dt_linkmode; /* dtrace symbol linking mode (see below) */
283 uint_t dt_linktype; /* dtrace link output file type (see below) */
284 uint_t dt_xlatemode; /* dtrace translator linking mode (see below) */
285 uint_t dt_stdcmode; /* dtrace stdc compatibility mode (see below) */
199} dt_print_aggdata_t;
200
201typedef struct dt_dirpath {
202 dt_list_t dir_list; /* linked-list forward/back pointers */
203 char *dir_path; /* directory pathname */
204} dt_dirpath_t;
205
206typedef struct dt_lib_depend {

--- 78 unchanged lines hidden (view full) ---

285 uint_t dt_oflags; /* dtrace open-time options (see dtrace.h) */
286 uint_t dt_cflags; /* dtrace compile-time options (see dtrace.h) */
287 uint_t dt_dflags; /* dtrace link-time options (see dtrace.h) */
288 uint_t dt_prcmode; /* dtrace process create mode (see dt_proc.h) */
289 uint_t dt_linkmode; /* dtrace symbol linking mode (see below) */
290 uint_t dt_linktype; /* dtrace link output file type (see below) */
291 uint_t dt_xlatemode; /* dtrace translator linking mode (see below) */
292 uint_t dt_stdcmode; /* dtrace stdc compatibility mode (see below) */
293 uint_t dt_encoding; /* dtrace output encoding (see below) */
286 uint_t dt_treedump; /* dtrace tree debug bitmap (see below) */
287 uint64_t dt_options[DTRACEOPT_MAX]; /* dtrace run-time options */
288 int dt_version; /* library version requested by client */
289 int dt_ctferr; /* error resulting from last CTF failure */
290 int dt_errno; /* error resulting from last failed operation */
291#if !defined(sun)
292 const char *dt_errfile;
293 int dt_errline;

--- 75 unchanged lines hidden (view full) ---

369 * running cpp to determine the presence and setting of the __STDC__ macro.
370 */
371#define DT_STDC_XA 0 /* ISO C + K&R C compat w/o ISO: __STDC__=0 */
372#define DT_STDC_XC 1 /* Strict ISO C: __STDC__=1 */
373#define DT_STDC_XS 2 /* K&R C: __STDC__ not defined */
374#define DT_STDC_XT 3 /* ISO C + K&R C compat with ISO: __STDC__=0 */
375
376/*
294 uint_t dt_treedump; /* dtrace tree debug bitmap (see below) */
295 uint64_t dt_options[DTRACEOPT_MAX]; /* dtrace run-time options */
296 int dt_version; /* library version requested by client */
297 int dt_ctferr; /* error resulting from last CTF failure */
298 int dt_errno; /* error resulting from last failed operation */
299#if !defined(sun)
300 const char *dt_errfile;
301 int dt_errline;

--- 75 unchanged lines hidden (view full) ---

377 * running cpp to determine the presence and setting of the __STDC__ macro.
378 */
379#define DT_STDC_XA 0 /* ISO C + K&R C compat w/o ISO: __STDC__=0 */
380#define DT_STDC_XC 1 /* Strict ISO C: __STDC__=1 */
381#define DT_STDC_XS 2 /* K&R C: __STDC__ not defined */
382#define DT_STDC_XT 3 /* ISO C + K&R C compat with ISO: __STDC__=0 */
383
384/*
385 * Values for the dt_encoding property, which is used to force a particular
386 * character encoding (overriding default behavior and/or automatic detection).
387 */
388#define DT_ENCODING_UNSET 0
389#define DT_ENCODING_ASCII 1
390#define DT_ENCODING_UTF8 2
391
392/*
377 * Macro to test whether a given pass bit is set in the dt_treedump bit-vector.
378 * If the bit for pass 'p' is set, the D compiler displays the parse tree for
379 * the program by printing it to stderr at the end of compiler pass 'p'.
380 */
381#define DT_TREEDUMP_PASS(dtp, p) ((dtp)->dt_treedump & (1 << ((p) - 1)))
382
383/*
384 * Macros for accessing the cached CTF container and type ID for the common

--- 146 unchanged lines hidden (view full) ---

531 EDT_ELFVERSION, /* libelf is out-of-date w.r.t libdtrace */
532 EDT_NOBUFFERED, /* attempt to buffer output without handler */
533 EDT_UNSTABLE, /* description matched unstable set of probes */
534 EDT_BADSETOPT, /* invalid setopt library action */
535 EDT_BADSTACKPC, /* invalid stack program counter size */
536 EDT_BADAGGVAR, /* invalid aggregation variable identifier */
537 EDT_OVERSION, /* client is requesting deprecated version */
538 EDT_ENABLING_ERR, /* failed to enable probe */
393 * Macro to test whether a given pass bit is set in the dt_treedump bit-vector.
394 * If the bit for pass 'p' is set, the D compiler displays the parse tree for
395 * the program by printing it to stderr at the end of compiler pass 'p'.
396 */
397#define DT_TREEDUMP_PASS(dtp, p) ((dtp)->dt_treedump & (1 << ((p) - 1)))
398
399/*
400 * Macros for accessing the cached CTF container and type ID for the common

--- 146 unchanged lines hidden (view full) ---

547 EDT_ELFVERSION, /* libelf is out-of-date w.r.t libdtrace */
548 EDT_NOBUFFERED, /* attempt to buffer output without handler */
549 EDT_UNSTABLE, /* description matched unstable set of probes */
550 EDT_BADSETOPT, /* invalid setopt library action */
551 EDT_BADSTACKPC, /* invalid stack program counter size */
552 EDT_BADAGGVAR, /* invalid aggregation variable identifier */
553 EDT_OVERSION, /* client is requesting deprecated version */
554 EDT_ENABLING_ERR, /* failed to enable probe */
539 EDT_NOPROBES /* no probes sites for declared provider */
555 EDT_NOPROBES, /* no probes sites for declared provider */
556 EDT_CANTLOAD /* failed to load a module */
540};
541
542/*
543 * Interfaces for parsing and comparing DTrace attribute tuples, which describe
544 * stability and architectural binding information. The dtrace_attribute_t
545 * structure and associated constant definitions are found in <sys/dtrace.h>.
546 */
547extern dtrace_attribute_t dt_attr_min(dtrace_attribute_t, dtrace_attribute_t);

--- 166 unchanged lines hidden ---
557};
558
559/*
560 * Interfaces for parsing and comparing DTrace attribute tuples, which describe
561 * stability and architectural binding information. The dtrace_attribute_t
562 * structure and associated constant definitions are found in <sys/dtrace.h>.
563 */
564extern dtrace_attribute_t dt_attr_min(dtrace_attribute_t, dtrace_attribute_t);

--- 166 unchanged lines hidden ---