diff options
| author | Richard Lowe <richlowe@richlowe.net> | 2012-08-02 03:18:21 +0100 |
|---|---|---|
| committer | Richard Lowe <richlowe@richlowe.net> | 2012-08-02 20:13:26 -0400 |
| commit | db09a31e474b6edfc05b81d25b02d14a608d4949 (patch) | |
| tree | c33b821ee99b2ad69a90c2735f3f0c50806f0c0d /usr/src/lib/libdtrace/common/dt_module.c | |
| parent | af53ea44e8b633f20cc53c772dec90c694a655bd (diff) | |
| download | illumos-joyent-db09a31e474b6edfc05b81d25b02d14a608d4949.tar.gz | |
dtrace: Remove CTF label checking
It is incomplete, and was pulled into smartos as a result of miscommunication.
Diffstat (limited to 'usr/src/lib/libdtrace/common/dt_module.c')
| -rw-r--r-- | usr/src/lib/libdtrace/common/dt_module.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/usr/src/lib/libdtrace/common/dt_module.c b/usr/src/lib/libdtrace/common/dt_module.c index c74fb527a0..1490f775c3 100644 --- a/usr/src/lib/libdtrace/common/dt_module.c +++ b/usr/src/lib/libdtrace/common/dt_module.c @@ -646,17 +646,6 @@ dt_module_getctf(dtrace_hdl_t *dtp, dt_module_t *dmp) goto err; } - /* - * If the label we claim the parent must have does not match - * its actual topmost label (XXX: Should check all?), ignore - * the CTF entirely rather than acquiring possibly bad type - * references. - */ - if (strcmp(ctf_label_topmost(pfp), ctf_parent_label(dmp->dm_ctfp)) != 0) { - (void) dt_set_errno(dtp, EDT_NOCTF); - goto err; - } - if (ctf_import(dmp->dm_ctfp, pfp) == CTF_ERR) { dtp->dt_ctferr = ctf_errno(dmp->dm_ctfp); (void) dt_set_errno(dtp, EDT_CTF); |
