Permalink
Browse files

689* driver/x_call.c: Centos 4.7 change

  • Loading branch information...
1 parent 9026cd0 commit ad96f09c7ee1fa1649e2109189c1c776c94fe3ab @dtrace4linux committed Mar 11, 2012
Showing with 9 additions and 5 deletions.
  1. +3 −3 .release
  2. +1 −1 tools/bug.sh
  3. +5 −1 tools/mkport.pl
View
@@ -1,3 +1,3 @@
-date=Thu Mar 1 22:24:32 GMT 2012
-release=dtrace-20120301
-build=378
+date=Sun Mar 11 22:33:54 GMT 2012
+release=dtrace-20120311
+build=379
View
@@ -8,7 +8,7 @@ if [ "$BUG_NOBUG" != "" -o -f .dtrace.nobug ]; then
fi
export BUG_RUNNING=1
-file=/tmp/dtrace-bug.$$
+file=/tmp/dtrace-bug.$$.txt
cat <<EOF | tee $file
======================
== Sorry - but dtrace failed to compile on your system.
View
@@ -12,6 +12,7 @@
# 15-Jul-2010 PDF Better parsing for SMP_CALL_FUNCTION_SINGLE_ARGS and SMP_CALL_FUNCTION_ARGS
# 20-Mar-2011 PDF Add better HAVE_ELF_GETSHDRSTRNDX detection for FC-14.
# 01-Feb-2012 PDF Handle ebx vs. bx register name for i386
+# 11-Mar-2012 PDF Default HAVE_EBX_REGISTER for <=2.6.21 kernels.
use strict;
use warnings;
@@ -24,6 +25,7 @@
my $kern;
my $kern_src;
+my $build;
my $username = getpwuid(getuid());
@@ -45,7 +47,7 @@ sub main
my $fh;
my $fname = "$ENV{BUILD_DIR}/port.h";
- my $build = $ENV{BUILD_DIR};
+ $build = $ENV{BUILD_DIR};
$build =~ s/^build-//;
my $inc = "";
$kern = "/lib/modules/$build/build";
@@ -247,6 +249,8 @@ sub check_bx_vs_ebx
{
my $file;
+ return "# define HAVE_EBX_REGISTER 1\n" if $build le "2.6.21";
+
$file = "$kern/include/asm-i386/ptrace.h";
return "# define HAVE_BX_REGISTER 1\n" if -f $file;
$file = "$kern/include/asm-x86/ptrace.h";

0 comments on commit ad96f09

Please sign in to comment.