dt_ident.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 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _DT_IDENT_H
#define _DT_IDENT_H
#pragma ident "%Z%%M% %I% %E% SMI"
#include <libctf.h>
#include <dtrace.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <dt_list.h>
struct dt_node;
struct dt_ident;
struct dt_idhash;
struct dt_irlist;
struct dt_regset;
typedef struct dt_idsig {
int dis_varargs; /* argument index of start of varargs (or -1) */
int dis_optargs; /* argument index of start of optargs (or -1) */
int dis_argc; /* number of types in this signature */
} dt_idsig_t;
typedef struct dt_idnode {
int din_argc; /* length of din_argv[] array */
} dt_idnode_t;
typedef struct dt_idops {
int, struct dt_node *);
} dt_idops_t;
typedef struct dt_ident {
char *di_name; /* identifier name */
void *di_iarg; /* initial argument pointer for ops vector */
void *di_data; /* private data pointer for ops vector */
int di_lineno; /* line number that defined this identifier */
} dt_ident_t;
#define DT_IDENT_ARRAY 0 /* identifier is an array variable */
typedef struct dt_idhash {
const char *dh_name; /* name of this hash table */
} dt_idhash_t;
typedef struct dt_idstack {
} dt_idstack_t;
extern void dt_idhash_destroy(dt_idhash_t *);
extern void dt_idhash_update(dt_idhash_t *);
extern const char *dt_idhash_name(const dt_idhash_t *);
const dt_idops_t *, void *, ulong_t);
extern void dt_ident_destroy(dt_ident_t *);
dt_ident_t *, struct dt_node **);
extern int dt_ident_unref(const dt_ident_t *);
extern const char *dt_idkind_name(uint_t);
#ifdef __cplusplus
}
#endif
#endif /* _DT_IDENT_H */