summaryrefslogtreecommitdiffstats
path: root/cddl/contrib/opensolaris/common/ctf/ctf_impl.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2013-08-23 23:21:24 +0000
committerdelphij <delphij@FreeBSD.org>2013-08-23 23:21:24 +0000
commit5017a032d282b2ecdd81495733cc73657ff2b8fb (patch)
treead32c6f1bbf74e601fd4395f5a07217ce6a2de60 /cddl/contrib/opensolaris/common/ctf/ctf_impl.h
parent2dbc95284850f1d96e8a2e075080a1b1c17986f5 (diff)
downloadFreeBSD-src-5017a032d282b2ecdd81495733cc73657ff2b8fb.zip
FreeBSD-src-5017a032d282b2ecdd81495733cc73657ff2b8fb.tar.gz
MFV r254422:
Illumos DTrace issues: 3089 want ::typedef 3094 libctf should support removing a dynamic type 3095 libctf does not validate arrays correctly 3096 libctf does not validate function types correctly
Diffstat (limited to 'cddl/contrib/opensolaris/common/ctf/ctf_impl.h')
-rw-r--r--cddl/contrib/opensolaris/common/ctf/ctf_impl.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/cddl/contrib/opensolaris/common/ctf/ctf_impl.h b/cddl/contrib/opensolaris/common/ctf/ctf_impl.h
index 9999080..f56fa6a 100644
--- a/cddl/contrib/opensolaris/common/ctf/ctf_impl.h
+++ b/cddl/contrib/opensolaris/common/ctf/ctf_impl.h
@@ -24,12 +24,13 @@
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2012, Joyent, Inc. All rights reserved.
+ */
#ifndef _CTF_IMPL_H
#define _CTF_IMPL_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/sysmacros.h>
@@ -149,6 +150,7 @@ typedef struct ctf_dtdef {
char *dtd_name; /* name associated with definition (if any) */
ctf_id_t dtd_type; /* type identifier for this definition */
ctf_type_t dtd_data; /* type node (see <sys/ctf.h>) */
+ int dtd_ref; /* recfount for dyanmic types */
union {
ctf_list_t dtu_members; /* struct, union, or enum */
ctf_arinfo_t dtu_arr; /* array */
@@ -269,7 +271,9 @@ enum {
ECTF_DTFULL, /* CTF type is full (no more members allowed) */
ECTF_FULL, /* CTF container is full */
ECTF_DUPMEMBER, /* duplicate member name definition */
- ECTF_CONFLICT /* conflicting type definition present */
+ ECTF_CONFLICT, /* conflicting type definition present */
+ ECTF_REFERENCED, /* type has outstanding references */
+ ECTF_NOTDYN /* type is not a dynamic type */
};
extern ssize_t ctf_get_ctt_size(const ctf_file_t *, const ctf_type_t *,
OpenPOWER on IntegriCloud