svn commit: r212414 -
head/cddl/contrib/opensolaris/lib/libdtrace/common
Rui Paulo
rpaulo at FreeBSD.org
Fri Sep 10 12:16:24 UTC 2010
Author: rpaulo
Date: Fri Sep 10 12:16:24 2010
New Revision: 212414
URL: http://svn.freebsd.org/changeset/base/212414
Log:
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
Modified:
head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c
Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c Fri Sep 10 11:19:03 2010 (r212413)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_pid.c Fri Sep 10 12:16:24 2010 (r212414)
@@ -641,7 +641,6 @@ dt_pid_create_usdt_probes(dtrace_probede
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_probede
(int)proc_getpid(P), strerror(errno));
#endif
}
+#else
+ ret = 0;
+#endif
/*
* Put the module name in its canonical form.
More information about the svn-src-all
mailing list