diff options
author | Mark Johnston <markj@FreeBSD.org> | 2019-07-17 16:38:29 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2019-07-17 16:38:29 +0000 |
commit | 61f2f0bae610d81e34ca2eab3d880e4423c2802a (patch) | |
tree | 26fdebea0e3c0b5207e4c32a05af2d197af68ad4 /sys/cddl/contrib/opensolaris/uts | |
parent | d6eb98610fa65663bf0df4574b7cb2c5c4ffda71 (diff) | |
download | src-61f2f0bae610d81e34ca2eab3d880e4423c2802a.tar.gz src-61f2f0bae610d81e34ca2eab3d880e4423c2802a.zip |
Fix FASTTRAPIOC_GETINSTR.
This ioctl is used when a breakpoint is encountered while disassembling
a symbol in the target process. Since only one DTrace consumer can
toggle or enumerate fasttrap probes from a given process at time, this
ioctl does not appear to be used in practice.
Notes
Notes:
svn path=/head/; revision=350084
Diffstat (limited to 'sys/cddl/contrib/opensolaris/uts')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c | 2 | ||||
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c b/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c index 592005b022a3..150ef28d889c 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c +++ b/sys/cddl/contrib/opensolaris/uts/common/dtrace/fasttrap.c @@ -2326,10 +2326,8 @@ err: int ret; #endif -#ifdef illumos if (copyin((void *)arg, &instr, sizeof (instr)) != 0) return (EFAULT); -#endif #ifdef notyet if (!PRIV_POLICY_CHOICE(cr, PRIV_ALL, B_FALSE)) { diff --git a/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h b/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h index ec3582f5daa8..1d3d5a3bafd7 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h +++ b/sys/cddl/contrib/opensolaris/uts/common/sys/fasttrap.h @@ -42,7 +42,7 @@ extern "C" { #define FASTTRAPIOC_MAKEPROBE (FASTTRAPIOC | 1) #define FASTTRAPIOC_GETINSTR (FASTTRAPIOC | 2) #else -#define FASTTRAPIOC_GETINSTR _IOWR('f', 2, uint8_t) +#define FASTTRAPIOC_GETINSTR _IO('f', 2) #define FASTTRAPIOC_MAKEPROBE _IO('f', 3) #endif |