mdb_gelf.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _MDB_GELF_H
#define _MDB_GELF_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <gelf.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _MDB
#define GST_FUZZY 0 /* lookup_by_addr matches closest sym */
#define GF_FILE 0 /* Open as ELF file image */
typedef struct mdb_gelf_sect {
const char *gs_name; /* Section name */
void *gs_data; /* Section data */
typedef struct mdb_gelf_file {
int gf_mode; /* Mode flag (see above) */
typedef struct mdb_gelf_symtab {
void *gst_asmap; /* Sorted array of symbol pointers */
typedef struct mdb_gelf_dsym {
union {
} ds_u;
extern void mdb_gelf_destroy(mdb_gelf_file_t *);
const char *, const char *, uint_t);
const void *, void *, const void *, void *, uint_t);
uint_t);
extern mdb_gelf_symtab_t *mdb_gelf_symtab_create_mutable(void);
extern void mdb_gelf_symtab_destroy(mdb_gelf_symtab_t *);
extern int mdb_gelf_symtab_lookup_by_addr(mdb_gelf_symtab_t *,
extern int mdb_gelf_symtab_lookup_by_name(mdb_gelf_symtab_t *,
extern int mdb_gelf_symtab_lookup_by_file(mdb_gelf_symtab_t *,
extern void mdb_gelf_symtab_iter(mdb_gelf_symtab_t *, int (*)(void *,
extern void mdb_gelf_symtab_insert(mdb_gelf_symtab_t *,
const char *, const GElf_Sym *);
extern void mdb_gelf_symtab_delete(mdb_gelf_symtab_t *,
const char *, GElf_Sym *);
#endif /* _MDB */
#ifdef __cplusplus
}
#endif
#endif /* _MDB_GELF_H */