/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SD_TRACE_H
#define _SD_TRACE_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _SD_NOTRACE
#else
if (_sd_trace_mask & (f)) \
(nsc_size_t)(ln))
#if defined(_SD_FBA_DATA_LOG) || defined(lint)
#else
#endif /* (_SD_FBA_DATA_LOG) */
#endif
typedef struct _sdtr
{
/* low order only on LP64 systems */
} _sdtr_t;
typedef struct _sdtr_table
{
#if defined(_KERNEL)
typedef struct _sdbc_trace_s {
#endif /* _KERNEL */
/* sd_adump() flags */
/* Trace function, category, mask bits */
/*
* dump file pseudo-entries
*/
/*
* ST_BCACHE functions
*/
/*
* ST_BSUB - bcache subroutines
*/
/*
* SD_IO - I/O subsustem
*/
/*
* ST_FT - Fault-tolerant subsystem
*/
/*
* ST_STATS - Statistics points
*/
/*
* ST_INFO
*/
/*
* ST_DL
*/
/*
* More entry points
*/
#ifdef _SD_FNAME
/*
* function category names
* change these when changing functions above
* compress name to fit in 8 printable characters
*/
{
"open",
"close",
"al_hndl",
"fr_hndl",
"al_buf",
"fr_buf",
"write",
"read",
"ucommit",
"zero",
"hint",
"attach",
"detach",
"notify",
};
{
"get_cent",
"al_cent",
"read_ea",
"fr_cent",
"al_went",
"fr_went",
"al_wone",
};
{
"flclist",
"flcent",
"eaclist",
"eacent",
"fldone",
"get_iob",
};
{
"ccio",
"dc_albuf",
"dc_frbuf",
"dc_write",
"dc_read",
"dc_zero",
};
{
"wait_rec",
"cache_rc",
"ft_clone",
"reflect",
"online",
};
{
"LRU-repl",
"Disconn",
};
{
"Cover",
};
{
"alloc",
"rd",
"wr",
"wrsync",
"flshlist",
"flshent",
"rdio",
"flea",
"flstea",
"wrsyea",
};
#endif /* _ST_NAMES */
#ifdef _KERNEL
extern int _sd_trace_mask;
extern void _sdbc_tr_unload(void);
extern int _sdbc_tr_load(void);
extern int _sdbc_tr_configure(int cd);
extern void _sdbc_tr_deconfigure(void);
int ret);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SD_TRACE_H */