Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149171814
D39872.1789621844.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
746 B
Referenced Files
None
Subscribers
None
D39872.1789621844.diff
View Options
diff --git a/sys/cddl/dev/kinst/amd64/kinst_isa.c b/sys/cddl/dev/kinst/amd64/kinst_isa.c
--- a/sys/cddl/dev/kinst/amd64/kinst_isa.c
+++ b/sys/cddl/dev/kinst/amd64/kinst_isa.c
@@ -246,18 +246,6 @@
kp->kp_md.disp = (int64_t)disp32;
}
-static int
-kinst_dis_get_byte(void *p)
-{
- int ret;
- uint8_t **instr = p;
-
- ret = **instr;
- (*instr)++;
-
- return (ret);
-}
-
/*
* Set up all of the state needed to faithfully execute a probed instruction.
*
@@ -294,7 +282,7 @@
kpmd = &kp->kp_md;
d86.d86_data = instr;
- d86.d86_get_byte = kinst_dis_get_byte;
+ d86.d86_get_byte = dtrace_dis_get_byte;
d86.d86_check_func = NULL;
if (dtrace_disx86(&d86, SIZE64) != 0) {
KINST_LOG("failed to disassemble instruction at: %p", *instr);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 17, 5:10 AM (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29722078
Default Alt Text
D39872.1789621844.diff (746 B)
Attached To
Mode
D39872: kinst: use dtrace_dis_get_byte() instead of own copy
Attached
Detach File
Event Timeline
Log In to Comment