aboutsummaryrefslogtreecommitdiff
path: root/lib/libproc/libproc.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2016-07-30 03:09:23 +0000
committerMark Johnston <markj@FreeBSD.org>2016-07-30 03:09:23 +0000
commit4808a67805fe7287d8054934d978cd1076302689 (patch)
treef04ff2fa3ed04fc3c8cc0e96637bb6210b3c7f21 /lib/libproc/libproc.h
parent700244a246427d903ba6a6135b9c2bd920a24d03 (diff)
downloadsrc-4808a67805fe7287d8054934d978cd1076302689.tar.gz
src-4808a67805fe7287d8054934d978cd1076302689.zip
libproc: Add proc_getmodel().
This is used by libdtrace to determine the data model of target processes. This allows for the creation of pid provider probes in 32-bit processes on amd64. MFC after: 1 month
Notes
Notes: svn path=/head/; revision=303533
Diffstat (limited to 'lib/libproc/libproc.h')
-rw-r--r--lib/libproc/libproc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libproc/libproc.h b/lib/libproc/libproc.h
index 5d81c2bf4505..5445d47abef6 100644
--- a/lib/libproc/libproc.h
+++ b/lib/libproc/libproc.h
@@ -113,6 +113,9 @@ typedef struct lwpstatus {
#define FLTBPT -1
} lwpstatus_t;
+#define PR_MODEL_ILP32 1
+#define PR_MODEL_LP64 2
+
/* Function prototype definitions. */
__BEGIN_DECLS
@@ -136,6 +139,7 @@ int proc_name2sym(struct proc_handle *, const char *, const char *,
struct ctf_file *proc_name2ctf(struct proc_handle *, const char *);
int proc_setflags(struct proc_handle *, int);
int proc_state(struct proc_handle *);
+int proc_getmodel(struct proc_handle *);
pid_t proc_getpid(struct proc_handle *);
int proc_wstatus(struct proc_handle *);
int proc_getwstat(struct proc_handle *);