etm_impl.h revision b8677b7267ab10505b6cad6e53eef7ca24ba2eaa
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * CDDL HEADER START
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * The contents of this file are subject to the terms of the
4b476ed547ce189d989c425cd2f82986abd37b4ddarudy * Common Development and Distribution License (the "License").
4b476ed547ce189d989c425cd2f82986abd37b4ddarudy * You may not use this file except in compliance with the License.
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * See the License for the specific language governing permissions
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * and limitations under the License.
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * When distributing Covered Code, include this CDDL HEADER in each
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * If applicable, add the following below this CDDL HEADER, with the
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * fields enclosed by brackets "[]" replaced with your own identifying
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * information: Portions Copyright [yyyy] [name of copyright owner]
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * CDDL HEADER END
b8677b7267ab10505b6cad6e53eef7ca24ba2eaarb * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * Use is subject to license terms.
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * etm_impl.h FMA ETM and Transport shared implementation header
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * const/type defns shared between the event transport module (ETM)
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * and the ETM-to-Transport API
733a5356058ae0150a67d61f0ad8e5260d2acae3rb#pragma ident "%Z%%M% %I% %E% SMI"
733a5356058ae0150a67d61f0ad8e5260d2acae3rbextern "C" {
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * ------------------------------ includes -----------------------------------
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * ------------------------------- macros ------------------------------------
733a5356058ae0150a67d61f0ad8e5260d2acae3rb/* define common macros here vs #include to ease Solaris-Linux portability */
733a5356058ae0150a67d61f0ad8e5260d2acae3rb#define MIN(x, y) ((x) < (y) ? (x) : (y))
733a5356058ae0150a67d61f0ad8e5260d2acae3rb#define MAX(x, y) ((x) > (y) ? (x) : (y))
733a5356058ae0150a67d61f0ad8e5260d2acae3rb#define ABS(x) ((x) < (0) ? (-(x)) : (x))
733a5356058ae0150a67d61f0ad8e5260d2acae3rb/* ETM I/O operations: read, write, peek */
733a5356058ae0150a67d61f0ad8e5260d2acae3rb/* ETM sleep times */
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * ----------------------------- property names ------------------------------
733a5356058ae0150a67d61f0ad8e5260d2acae3rb#define ETM_PROP_NM_DEBUG_MAX_EV_CNT "etm_debug_max_ev_cnt"
733a5356058ae0150a67d61f0ad8e5260d2acae3rb * --------------------------------- prolog ----------------------------------
733a5356058ae0150a67d61f0ad8e5260d2acae3rb#endif /* _ETM_IMPL_H */