diff options
-rw-r--r-- | usr/src/cmd/mdb/common/libstandctf/mapfile | 1 | ||||
-rw-r--r-- | usr/src/common/ctf/ctf_open.c | 10 | ||||
-rw-r--r-- | usr/src/lib/libctf/common/mapfile-vers | 1 | ||||
-rw-r--r-- | usr/src/uts/common/ctf/mapfile | 1 | ||||
-rw-r--r-- | usr/src/uts/common/sys/ctf_api.h | 1 |
5 files changed, 14 insertions, 0 deletions
diff --git a/usr/src/cmd/mdb/common/libstandctf/mapfile b/usr/src/cmd/mdb/common/libstandctf/mapfile index e72c2ddbcf..2ea8c788c0 100644 --- a/usr/src/cmd/mdb/common/libstandctf/mapfile +++ b/usr/src/cmd/mdb/common/libstandctf/mapfile @@ -70,6 +70,7 @@ SYMBOL_SCOPE { ctf_member_iter; ctf_open; ctf_parent_name; + ctf_parent_label; ctf_setmodel; ctf_setspecific; ctf_type_align; diff --git a/usr/src/common/ctf/ctf_open.c b/usr/src/common/ctf/ctf_open.c index e49a4cb329..e494ac3156 100644 --- a/usr/src/common/ctf/ctf_open.c +++ b/usr/src/common/ctf/ctf_open.c @@ -889,6 +889,16 @@ ctf_parent_name(ctf_file_t *fp) } /* + * Return the label of the parent CTF container, if one exists. Otherwise + * return NULL. + */ +const char * +ctf_parent_label(ctf_file_t *fp) +{ + return (fp->ctf_parlabel); +} + +/* * Import the types from the specified parent container by storing a pointer * to it in ctf_parent and incrementing its reference count. Only one parent * is allowed: if a parent already exists, it is replaced by the new parent. diff --git a/usr/src/lib/libctf/common/mapfile-vers b/usr/src/lib/libctf/common/mapfile-vers index c218edc37c..031748c497 100644 --- a/usr/src/lib/libctf/common/mapfile-vers +++ b/usr/src/lib/libctf/common/mapfile-vers @@ -68,6 +68,7 @@ SYMBOL_VERSION SUNWprivate_1.2 { ctf_member_info; ctf_parent_file; ctf_parent_name; + ctf_parent_label; ctf_set_array; ctf_type_align; ctf_type_cmp; diff --git a/usr/src/uts/common/ctf/mapfile b/usr/src/uts/common/ctf/mapfile index ca83165803..40f300686e 100644 --- a/usr/src/uts/common/ctf/mapfile +++ b/usr/src/uts/common/ctf/mapfile @@ -82,6 +82,7 @@ SYMBOL_SCOPE { ctf_open; ctf_parent_file; ctf_parent_name; + ctf_parent_label; ctf_setmodel; ctf_setspecific; ctf_set_array; diff --git a/usr/src/uts/common/sys/ctf_api.h b/usr/src/uts/common/sys/ctf_api.h index 17b0b7262e..bef3549e80 100644 --- a/usr/src/uts/common/sys/ctf_api.h +++ b/usr/src/uts/common/sys/ctf_api.h @@ -154,6 +154,7 @@ extern void ctf_close(ctf_file_t *); extern ctf_file_t *ctf_parent_file(ctf_file_t *); extern const char *ctf_parent_name(ctf_file_t *); +extern const char *ctf_parent_label(ctf_file_t *); extern int ctf_import(ctf_file_t *, ctf_file_t *); extern int ctf_setmodel(ctf_file_t *, int); |