aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/user.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2013-11-26 19:47:09 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2013-11-26 19:47:09 +0000
commit80c3af4e8051c00b781aeee059bda088f33ade3f (patch)
treea52493ff0976a3625200eae1a8ffafad6464b126 /sys/sys/user.h
parent291bfc8d24f8d246afdf48d22088e8ef31eb9172 (diff)
downloadsrc-80c3af4e8051c00b781aeee059bda088f33ade3f.tar.gz
src-80c3af4e8051c00b781aeee059bda088f33ade3f.zip
Add an kinfo sysctl to retrieve signal trampoline location for the
given process. Note that the correctness of the trampoline length returned for ABIs which do not use shared page depends on the correctness of the struct sysvec sv_szsigcodebase member, which will be fixed on as-need basis. Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=258661
Diffstat (limited to 'sys/sys/user.h')
-rw-r--r--sys/sys/user.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/user.h b/sys/sys/user.h
index d2e2b6e71284..e926fe871c95 100644
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -498,6 +498,12 @@ struct kinfo_kstack {
int _kkst_ispare[16]; /* Space for more stuff. */
};
+struct kinfo_sigtramp {
+ void *ksigtramp_start;
+ void *ksigtramp_end;
+ void *ksigtramp_spare[4];
+};
+
#ifdef _KERNEL
/* Flags for kern_proc_out function. */
#define KERN_PROC_NOTHREADS 0x1