Date: Sun, 22 Aug 2010 10:40:15 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r211607 - in head/sys/cddl/dev/dtrace: amd64 i386 Message-ID: <201008221040.o7MAeFP8000885@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Sun Aug 22 10:40:15 2010 New Revision: 211607 URL: http://svn.freebsd.org/changeset/base/211607 Log: Add a function compatibility function dtrace_instr_size_isa() that on FreeBSD does the same as dtrace_dis_isize(). Sponsored by: The FreeBSD Foundation Modified: head/sys/cddl/dev/dtrace/amd64/instr_size.c head/sys/cddl/dev/dtrace/i386/instr_size.c Modified: head/sys/cddl/dev/dtrace/amd64/instr_size.c ============================================================================== --- head/sys/cddl/dev/dtrace/amd64/instr_size.c Sun Aug 22 10:13:56 2010 (r211606) +++ head/sys/cddl/dev/dtrace/amd64/instr_size.c Sun Aug 22 10:40:15 2010 (r211607) @@ -47,6 +47,7 @@ typedef u_int model_t; #define DATAMODEL_NATIVE 0 int dtrace_instr_size(uchar_t *); +int dtrace_instr_size_isa(uchar_t *, model_t, int *); #endif #include <dis_tables.h> @@ -125,6 +126,12 @@ dtrace_dis_isize(uchar_t *instr, dis_isi } int +dtrace_instr_size_isa(uchar_t *instr, model_t model, int *rmindex) +{ + return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, model, rmindex)); +} + +int dtrace_instr_size(uchar_t *instr) { return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, DATAMODEL_NATIVE, Modified: head/sys/cddl/dev/dtrace/i386/instr_size.c ============================================================================== --- head/sys/cddl/dev/dtrace/i386/instr_size.c Sun Aug 22 10:13:56 2010 (r211606) +++ head/sys/cddl/dev/dtrace/i386/instr_size.c Sun Aug 22 10:40:15 2010 (r211607) @@ -47,6 +47,7 @@ typedef u_int model_t; #define DATAMODEL_NATIVE 0 int dtrace_instr_size(uchar_t *); +int dtrace_instr_size_isa(uchar_t *, model_t, int *); #endif #include <dis_tables.h> @@ -125,6 +126,12 @@ dtrace_dis_isize(uchar_t *instr, dis_isi } int +dtrace_instr_size_isa(uchar_t *instr, model_t model, int *rmindex) +{ + return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, model, rmindex)); +} + +int dtrace_instr_size(uchar_t *instr) { return (dtrace_dis_isize(instr, DIS_ISIZE_INSTR, DATAMODEL_NATIVE,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008221040.o7MAeFP8000885>