From: Heid Oliver <oliver.heid@siemens.com>
To: "'axp-list@redhat.com'" <axp-list@redhat.com>
Subject: RE: iprobe still alive?
Date: Fri, 20 Jun 2003 11:27:23 +0200 [thread overview]
Message-ID: <850F2E3B91BCD611A3FC00508B94988A01E19EBB@erlh908a.med.siemens.de> (raw)
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 <linux/kernel.h>
#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 <linux/mm.h>
/* This has information about how to allocate kernel memory. */
-#include <linux/malloc.h>
+#include <linux/slab.h>
#include <asm/system.h>
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 <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <time.h>
#ifdef nt
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
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 <stdio.h>
#include <string.h>
+#include <time.h>
#include <math.h>
#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 @@
\f
/* 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 <alloca.h>
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 <string.h>
#include "ipr_kernel_ext_defs.h"
next reply other threads:[~2003-06-20 9:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-20 9:27 Heid Oliver [this message]
2003-06-20 10:53 ` iprobe still alive? Falk Hueffner
-- strict thread matches above, loose matches on Subject: below --
2003-06-18 11:37 Heid Oliver
2003-06-18 12:10 ` Falk Hueffner
2003-06-18 13:10 ` Niki Waibel
2003-06-18 8:11 Heid Oliver
2003-06-18 8:19 ` Falk Hueffner
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox