summaryrefslogtreecommitdiffstats
path: root/cddl
diff options
context:
space:
mode:
authorrpaulo <rpaulo@FreeBSD.org>2010-09-10 12:16:24 +0000
committerrpaulo <rpaulo@FreeBSD.org>2010-09-10 12:16:24 +0000
commite3c11acb8b25b5901c31cc9dbad72b1990dde985 (patch)
tree3c60148175ee82a890006354ab8e4b797640808b /cddl
parentc9fe8ad7f06a5eb11bd5ba5224721d64a9b81afd (diff)
downloadFreeBSD-src-e3c11acb8b25b5901c31cc9dbad72b1990dde985.zip
FreeBSD-src-e3c11acb8b25b5901c31cc9dbad72b1990dde985.tar.gz
Don't try to map the USDT probes. This is necessary because there is no
__SUNW_dof symbol present in FreeBSD binaries. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c
index 52b0eb9..b145818 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c
@@ -641,7 +641,6 @@ dt_pid_create_usdt_probes(dtrace_probedesc_t *pdp, dtrace_hdl_t *dtp,
assert(DT_MUTEX_HELD(&dpr->dpr_lock));
#if defined(sun)
(void) Pupdate_maps(P);
-#endif
if (Pobject_iter(P, dt_pid_usdt_mapping, P) != 0) {
ret = -1;
(void) dt_pid_error(dtp, pcb, dpr, NULL, D_PROC_USDT,
@@ -652,6 +651,9 @@ dt_pid_create_usdt_probes(dtrace_probedesc_t *pdp, dtrace_hdl_t *dtp,
(int)proc_getpid(P), strerror(errno));
#endif
}
+#else
+ ret = 0;
+#endif
/*
* Put the module name in its canonical form.
OpenPOWER on IntegriCloud