From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from int-mx1.corp.redhat.com (nat-pix.rdu.redhat.com [10.255.18.200]) by listman.rdu-colo.redhat.com (8.11.6/8.11.6) with ESMTP id h5K9QH507810 for ; Fri, 20 Jun 2003 05:26:17 -0400 Received: (from mail@localhost) by int-mx1.corp.redhat.com (8.11.6/8.11.6) id h5K9RX024998 for axp-list@listman.rdu-colo.redhat.com; Fri, 20 Jun 2003 05:27:33 -0400 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id h5K9RXI24994 for ; Fri, 20 Jun 2003 05:27:33 -0400 Received: from email01.erlm.siemens.de (email01.erlm.siemens.de [212.114.202.23]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id h5K9RWH26135 for ; Fri, 20 Jun 2003 05:27:32 -0400 Received: from scupi.erlm.siemens.de (scupi.erlm.siemens.de [146.254.160.13]) by email01.erlm.siemens.de (8.11.6/8.11.3) with ESMTP id h5K9RPc01801 for ; Fri, 20 Jun 2003 11:27:26 +0200 (MEST) Received: from erlh910a.med.siemens.de (erlh910a.med.siemens.de [146.254.132.212]) by scupi.erlm.siemens.de (8.11.6/8.11.1) with ESMTP id h5K9RPu02582 for ; Fri, 20 Jun 2003 11:27:25 +0200 Received: by erlh910a.med.siemens.de with Internet Mail Service (5.5.2656.59) id ; Fri, 20 Jun 2003 11:27:24 +0200 Message-ID: <850F2E3B91BCD611A3FC00508B94988A01E19EBB@erlh908a.med.siemens.de> From: Heid Oliver To: "'axp-list@redhat.com'" Subject: RE: iprobe still alive? Date: Fri, 20 Jun 2003 11:27:23 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.13 Precedence: list Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: Hi there, Below are the patches which got the iprobe kernel driver to work again under SRM-5.5 (PC164, gcc-3.3, 2.4.21-ac1 kernel). The newly built rep seems broken, but the one from the iprobe_suite-4.3 alpha rpm works, so the only thing missing now is a patched MILO (and that harness.pl perl script..). For I couldn't find any hint of wr_perfmon PALcode in a kcore dump, the obvious thing to try next is to transfer the relevant 21064/21066 PALcode to the 21164A osfpal.S. Any other (better) ideas? Oliver diff -Nur iprobe/driver/src/common/buffer_descriptor.c iprobe-2.4/driver/src/common/buffer_descriptor.c --- iprobe/driver/src/common/buffer_descriptor.c Mon Dec 14 21:14:44 1998 +++ iprobe-2.4/driver/src/common/buffer_descriptor.c Tue Jun 17 21:40:56 2003 @@ -61,7 +61,6 @@ #endif #ifdef __LINUX__ -#include #endif // This array is initialized in KIprInitSysInfo in OS specific kernel_general diff -Nur iprobe/driver/src/linux/driver_linux.c iprobe-2.4/driver/src/linux/driver_linux.c --- iprobe/driver/src/linux/driver_linux.c Fri Jul 2 15:32:13 1999 +++ iprobe-2.4/driver/src/linux/driver_linux.c Tue Jun 17 20:31:53 2003 @@ -449,17 +449,24 @@ /* The FLUSH was added for the later kernels. ie, 2.1.12X and beyond */ struct file_operations ipr_fops = { - NULL, /* lseek */ + NULL, /* owner */ + NULL, /* llseek */ NULL, /* read */ NULL, /* write */ NULL, /* readdir */ - NULL, /* Poll */ + NULL, /* poll */ ipr_ioctl, /* ioctl */ NULL, /* mmap */ ipr_open, /* just a selector for the real open */ - NULL, /* Flush */ + NULL, /* flush */ ipr_close, /* release */ - NULL /* fsync */ + NULL, /* fsync */ + NULL, /* fasync */ + NULL, /* lock */ + NULL, /* readv */ + NULL, /* writev */ + NULL, /* sendpage */ + NULL /* get_unmapped_area */ }; /* I believe that this takes the place of ipr_init for modules. */ @@ -540,7 +547,7 @@ #define THIS_PID() (current->pid) /* LINUX: These MAY be right. */ -#define THIS_PRIORITY() (current->priority) +#define THIS_PRIORITY() (current->rt_priority) #define THIS_IPL() (getipl()) #define BARRIER() mb() diff -Nur iprobe/driver/src/linux/kernel_general_linux.c iprobe-2.4/driver/src/linux/kernel_general_linux.c --- iprobe/driver/src/linux/kernel_general_linux.c Mon Dec 14 21:16:14 1998 +++ iprobe-2.4/driver/src/linux/kernel_general_linux.c Tue Jun 17 20:32:56 2003 @@ -47,7 +47,7 @@ #include /* This has information about how to allocate kernel memory. */ -#include +#include #include diff -Nur iprobe/iprobe/src/common/iprobe_counting.c iprobe-2.4/iprobe/src/common/iprobe_counting.c --- iprobe/iprobe/src/common/iprobe_counting.c Tue Apr 13 18:14:35 1999 +++ iprobe-2.4/iprobe/src/common/iprobe_counting.c Tue Jun 17 20:49:22 2003 @@ -74,6 +74,7 @@ #include #include #include +#include #ifdef nt #define WIN32_LEAN_AND_MEAN 1 #include diff -Nur iprobe/iprobe/src/common/iprobe_histogram.c iprobe-2.4/iprobe/src/common/iprobe_histogram.c --- iprobe/iprobe/src/common/iprobe_histogram.c Mon Dec 14 21:36:24 1998 +++ iprobe-2.4/iprobe/src/common/iprobe_histogram.c Tue Jun 17 20:49:53 2003 @@ -56,6 +56,7 @@ #endif #include #include +#include #include #include "stdtypes.h" #include "iprobe_struct.h" diff -Nur iprobe/suite_common/inc/common/getopt.def iprobe-2.4/suite_common/inc/common/getopt.def --- iprobe/suite_common/inc/common/getopt.def Mon Aug 17 19:47:23 1998 +++ iprobe-2.4/suite_common/inc/common/getopt.def Tue Jun 17 20:43:43 2003 @@ -23,7 +23,9 @@ /* AIX requires this to be the first thing in the file. */ #ifdef __GNUC__ +#ifndef alloca #define alloca __builtin_alloca +#endif #else /* not __GNUC__ */ #if defined (HAVE_ALLOCA_H) || (defined(sparc) && (defined(sun) || (!defined(USG) && !defined(SVR4) && !defined(__svr4__)))) #include diff -Nur iprobe/suite_common/inc/linux/ipr_kernel_int_linux.h iprobe-2.4/suite_common/inc/linux/ipr_kernel_int_linux.h --- iprobe/suite_common/inc/linux/ipr_kernel_int_linux.h Mon Dec 14 21:09:50 1998 +++ iprobe-2.4/suite_common/inc/linux/ipr_kernel_int_linux.h Wed Jun 18 22:28:52 2003 @@ -41,7 +41,6 @@ // X-1 BFW Brian F. Wibecan 28-Oct-1994 // Original version. */ -#include #include "ipr_kernel_ext_defs.h"