path: root/lib/libproc/libproc.h
diff options
authorMark Johnston <markj@FreeBSD.org>2016-12-06 04:20:32 +0000
committerMark Johnston <markj@FreeBSD.org>2016-12-06 04:20:32 +0000
commitd42df2a44793413692a006e46faad87ec7b9e34f (patch)
treebdea9504a1c76f02abf7bfe4afa19d8c47dddf8a /lib/libproc/libproc.h
parent07a9c2e65d5f2f21cc9783e33dd94a5ce8cc592d (diff)
libproc: Match prefixes when looking up mapped object by name.
When looking up an object by name, allow prefix matches if no direct match is found. This allows one to, for example, match libc entry probes with: # dtrace -n 'pid$target:libc.so::entry' -c ./foo instead of requiring "libc.so.7" or a glob. Also remove proc_obj2map() as it currently just duplicates the functionality of proc_name2map(). It's supposed to take a Solaris link-map ID as a paramter, but support for this isn't implemented and isn't required to support DTrace's pid provider.
Notes: svn path=/head/; revision=309595
Diffstat (limited to 'lib/libproc/libproc.h')
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/libproc/libproc.h b/lib/libproc/libproc.h
index 5798a3b4b58d..25f8aa62f12b 100644
--- a/lib/libproc/libproc.h
+++ b/lib/libproc/libproc.h
@@ -128,7 +128,6 @@ __BEGIN_DECLS
prmap_t *proc_addr2map(struct proc_handle *, uintptr_t);
prmap_t *proc_name2map(struct proc_handle *, const char *);
char *proc_objname(struct proc_handle *, uintptr_t, char *, size_t);
-prmap_t *proc_obj2map(struct proc_handle *, const char *);
int proc_iter_objs(struct proc_handle *, proc_map_f *, void *);
int proc_iter_symbyaddr(struct proc_handle *, const char *, int,
int, proc_sym_f *, void *);