/*
* 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 _SGS_PROFV_H
#define _SGS_PROFV_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* Header file for processing versioned, *new-style* mon.out files.
*/
#ifdef __cplusplus
extern "C" {
#endif
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include "gelf.h"
#include "monv.h"
#include "_machelf.h"
/*
* Booleans.
*/
typedef int bool;
#define FALSE 0
/*
* Bit macro and flag bit definitions. These and the sort_flags below,
* need to be always in sync with the set in prof.c
*/
extern int flags;
/*
* Sort flags. Mutually exclusive.
*/
extern unsigned char sort_flag;
/*
* Error codes
*/
/*
* Other useful macros.
*/
/*
* Module info.
*/
struct mod_info {
};
/*
* List of shared objects. Note that this always includes the program
* executable as the first element.
*/
extern mod_info_t modules;
/*
* The symbol table.
*/
struct nl {
};
/*
* The profile output record. There is some duplication of fields from
* the namelist, but the profsym contains just the symbols we're going
* to print, and that makes a lot of things easier.
*/
struct profrec {
};
/*
* Names in profile output need to be sorted to figure out if there'll
* be any duplicate names in the output.
*/
struct profnames {
char *name;
};
/*
* File status.
*/
/*
* Timing related externs.
*/
extern bool time_in_ticks;
extern double total_time;
/*
* Other declarations
*/
extern void profver(void);
extern void get_syms(char *, mod_info_t *);
extern bool is_shared_obj(char *);
#ifdef __cplusplus
}
#endif
#endif /* _SGS_PROFV_H */