Deleted Added
sdiff udiff text old ( 265234 ) new ( 268578 )
full compact
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} 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 */
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) */
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/*
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 */
539 EDT_NOPROBES /* no probes sites for declared provider */
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 ---