diff options
author | Keith M Wesolowski <wesolows@foobazco.org> | 2013-08-21 23:54:45 +0000 |
---|---|---|
committer | Keith M Wesolowski <wesolows@foobazco.org> | 2013-08-21 23:54:45 +0000 |
commit | 84a6527d59b307f3925d3dbac3728fd0d1db4706 (patch) | |
tree | 0f87ef159a57043733b2ad0f861e14d22d635942 /usr/src/lib/libproc/common/Pcontrol.h | |
parent | 7d7a5b1f6447ad858fd291d2b95da27e7c690325 (diff) | |
parent | 2a12f85ad140e332791b4bad1208a734c3f26bf3 (diff) | |
download | illumos-joyent-release-20130822.tar.gz |
[illumos-gate merge]20130822release-20130822
commit 2a12f85ad140e332791b4bad1208a734c3f26bf3
3946 ::gcore
commit 840b2722e5294ae44aa3af6189002f521d7c50e0
3915 Add adjuncts support to the build (fix lint)
commit afffa6e9b45cbe9b33943e26568d8ac69b899252
4062 libscf: memory leaks in scf_simple_app_props_get()
commit 2fbdf8dbf01ec1c85fcd3827cdf9e9f5f46c4c8a
4061 libzfs: memory leak in iter_dependents_cb()
commit 713d6c208802cfbb806329ec0d154b641b80c355
4047 panic from dbuf_free_range() from dmu_free_object() while doing zfs receive
Diffstat (limited to 'usr/src/lib/libproc/common/Pcontrol.h')
-rw-r--r-- | usr/src/lib/libproc/common/Pcontrol.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/usr/src/lib/libproc/common/Pcontrol.h b/usr/src/lib/libproc/common/Pcontrol.h index 4bb7e0ca3c..3e72a32804 100644 --- a/usr/src/lib/libproc/common/Pcontrol.h +++ b/usr/src/lib/libproc/common/Pcontrol.h @@ -25,6 +25,7 @@ /* * Copyright 2012 DEY Storage Systems, Inc. All rights reserved. * Copyright (c) 2013, Joyent, Inc. All rights reserved. + * Copyright (c) 2013 by Delphix. All rights reserved. */ #ifndef _PCONTROL_H @@ -43,6 +44,7 @@ #include <libproc.h> #include <libctf.h> #include <limits.h> +#include <libproc.h> #ifdef __cplusplus extern "C" { @@ -190,13 +192,6 @@ typedef struct elf_file { /* convenience for managing ELF files */ int e_fd; /* file descriptor */ } elf_file_t; -typedef struct ps_rwops { /* ops vector for Pread() and Pwrite() */ - ssize_t (*p_pread)(struct ps_prochandle *, - void *, size_t, uintptr_t); - ssize_t (*p_pwrite)(struct ps_prochandle *, - const void *, size_t, uintptr_t); -} ps_rwops_t; - #define HASHSIZE 1024 /* hash table size, power of 2 */ struct ps_prochandle { @@ -227,8 +222,7 @@ struct ps_prochandle { rd_agent_t *rap; /* cookie for rtld_db */ map_info_t *map_exec; /* the mapping for the executable file */ map_info_t *map_ldso; /* the mapping for ld.so.1 */ - const ps_rwops_t *ops; /* pointer to ops-vector for read and write */ - core_info_t *core; /* information specific to core (if PS_DEAD) */ + ps_ops_t ops; /* ops-vector */ uintptr_t *ucaddrs; /* ucontext-list addresses */ uint_t ucnelems; /* number of elements in the ucaddrs list */ char *zoneroot; /* cached path to zone root */ @@ -237,6 +231,7 @@ struct ps_prochandle { uintptr_t map_missing; /* first missing mapping in core due to sig */ siginfo_t killinfo; /* signal that interrupted core dump */ psinfo_t spymaster; /* agent LWP's spymaster, if any */ + void *data; /* private data */ }; /* flags */ @@ -247,6 +242,7 @@ struct ps_prochandle { #define SETEXIT 0x10 /* set sysexit trace mask before continuing */ #define SETHOLD 0x20 /* set signal hold mask before continuing */ #define SETREGS 0x40 /* set registers before continuing */ +#define INCORE 0x80 /* use in-core data to build symbol tables */ struct ps_lwphandle { struct ps_prochandle *lwp_proc; /* process to which this lwp belongs */ |