From owner-svn-src-all@FreeBSD.ORG Sun Aug 22 10:40:15 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84C4110656A7; Sun, 22 Aug 2010 10:40:15 +0000 (UTC) (envelope-from rpaulo@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 59C5D8FC1C; Sun, 22 Aug 2010 10:40:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o7MAeFDS000888; Sun, 22 Aug 2010 10:40:15 GMT (envelope-from rpaulo@svn.freebsd.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o7MAeFP8000885; Sun, 22 Aug 2010 10:40:15 GMT (envelope-from rpaulo@svn.freebsd.org) Message-Id: <201008221040.o7MAeFP8000885@svn.freebsd.org> From: Rui Paulo Date: Sun, 22 Aug 2010 10:40:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r211607 - in head/sys/cddl/dev/dtrace: amd64 i386 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 Aug 2010 10:40:15 -0000 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 @@ -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 @@ -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,