summaryrefslogtreecommitdiffstats
path: root/cddl/lib
diff options
context:
space:
mode:
authormarkj <markj@FreeBSD.org>2015-04-08 02:36:37 +0000
committermarkj <markj@FreeBSD.org>2015-04-08 02:36:37 +0000
commit1d6ffde4f49799c1d95f31875779237c214fc09c (patch)
tree48267c7be89f3f03d035711a7b82b3453bab848e /cddl/lib
parent245de71cf80d02d4ff02fcf352fb7f056c686821 (diff)
downloadFreeBSD-src-1d6ffde4f49799c1d95f31875779237c214fc09c.zip
FreeBSD-src-1d6ffde4f49799c1d95f31875779237c214fc09c.tar.gz
libdtrace: add support for lazyload mode.
Passing "-x lazyload" to dtrace -G during compilation causes dtrace(1) to not link drti.o into the output object file, so the USDT probes are not created during process startup. Instead, dtrace(1) will automatically discover and create probes on the process' behalf when attaching. Differential Revision: https://reviews.freebsd.org/D2203 Reviewed by: rpaulo MFC after: 1 month
Diffstat (limited to 'cddl/lib')
-rw-r--r--cddl/lib/libdtrace/libproc_compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/lib/libdtrace/libproc_compat.h b/cddl/lib/libdtrace/libproc_compat.h
index 0d99d96..8704b82 100644
--- a/cddl/lib/libdtrace/libproc_compat.h
+++ b/cddl/lib/libdtrace/libproc_compat.h
@@ -59,6 +59,6 @@
#define Pstate proc_state
#define Psymbol_iter_by_addr proc_iter_symbyaddr
#define Punsetflags proc_clearflags
-#define Pupdate_maps(p) do { } while (0)
+#define Pupdate_maps proc_rdagent
#define Pupdate_syms proc_updatesyms
#define Pxecbkpt proc_bkptexec
OpenPOWER on IntegriCloud