1*2775Sraf /* 2*2775Sraf * CDDL HEADER START 3*2775Sraf * 4*2775Sraf * The contents of this file are subject to the terms of the 5*2775Sraf * Common Development and Distribution License, Version 1.0 only 6*2775Sraf * (the "License"). You may not use this file except in compliance 7*2775Sraf * with the License. 8*2775Sraf * 9*2775Sraf * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*2775Sraf * or http://www.opensolaris.org/os/licensing. 11*2775Sraf * See the License for the specific language governing permissions 12*2775Sraf * and limitations under the License. 13*2775Sraf * 14*2775Sraf * When distributing Covered Code, include this CDDL HEADER in each 15*2775Sraf * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*2775Sraf * If applicable, add the following below this CDDL HEADER, with the 17*2775Sraf * fields enclosed by brackets "[]" replaced with your own identifying 18*2775Sraf * information: Portions Copyright [yyyy] [name of copyright owner] 19*2775Sraf * 20*2775Sraf * CDDL HEADER END 21*2775Sraf */ 22*2775Sraf /* 23*2775Sraf * Copyright 2003 Sun Microsystems, Inc. All rights reserved. 24*2775Sraf * Use is subject to license terms. 25*2775Sraf */ 26*2775Sraf 27*2775Sraf #ifndef _TRACE_H 28*2775Sraf #define _TRACE_H 29*2775Sraf 30*2775Sraf #pragma ident "%Z%%M% %I% %E% SMI" 31*2775Sraf 32*2775Sraf #ifdef __cplusplus 33*2775Sraf extern "C" { 34*2775Sraf #endif 35*2775Sraf 36*2775Sraf #include "symtab.h" 37*2775Sraf 38*2775Sraf #define TRACE_VERSION "1.1.1" 39*2775Sraf 40*2775Sraf /* Return codes from back- to front-end. */ 41*2775Sraf enum retcode_t { SUCCESS_RC = 0, ERROR_RC = -1, SKIP_RC = 1}; 42*2775Sraf 43*2775Sraf /* Kinds of code-generation to do. */ 44*2775Sraf typedef enum {AUDIT, PRELOAD} CODE; 45*2775Sraf 46*2775Sraf /* Global functions. */ 47*2775Sraf extern void stats_add_warning(void); 48*2775Sraf extern void stats_add_error(void); 49*2775Sraf extern void generate_interceptor(ENTRY *); 50*2775Sraf extern void print_function_signature(char *, char *, char *); 51*2775Sraf extern void generate_linkage(ENTRY *function); 52*2775Sraf 53*2775Sraf /* Global variables */ 54*2775Sraf extern CODE Generate; 55*2775Sraf 56*2775Sraf /* Defines. */ 57*2775Sraf #define YES 1 58*2775Sraf #define NO 0 59*2775Sraf #define ERR (-1) 60*2775Sraf 61*2775Sraf #define MAXLINE 1024 62*2775Sraf 63*2775Sraf #ifdef __cplusplus 64*2775Sraf } 65*2775Sraf #endif 66*2775Sraf 67*2775Sraf #endif /* _TRACE_H */ 68