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
This commit is contained in:
Rui Paulo 2010-09-10 12:16:24 +00:00
parent 3d844eddb7
commit acac60bbfe
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=212414

View File

@ -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.