Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* iprobe still alive?
@ 2003-06-18  8:11 Heid Oliver
  2003-06-18  8:19 ` Falk Hueffner
  0 siblings, 1 reply; 7+ messages in thread
From: Heid Oliver @ 2003-06-18  8:11 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

What is the status of iprobe on recent kernels?

After a few minor patches (most prominently the ipr_fops struct), the whole
iprobe_suite-4.3 tree compiles now (gcc 3.3, 2.4.21-ac1 kernel on PC164 booted
with milo-2.2.18). insmod of the newly built driver module works too, but iprobe
core dumps after printing its startup info. The kernel module stays in use after
that, so I can't unload it again.

Has anybody had more success?

	Oliver



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iprobe still alive?
  2003-06-18  8:11 iprobe still alive? Heid Oliver
@ 2003-06-18  8:19 ` Falk Hueffner
  0 siblings, 0 replies; 7+ messages in thread
From: Falk Hueffner @ 2003-06-18  8:19 UTC (permalink / raw)
  To: axp-list

Heid Oliver <oliver.heid@siemens.com> writes:

> What is the status of iprobe on recent kernels?
> 
> After a few minor patches (most prominently the ipr_fops struct),
> the whole iprobe_suite-4.3 tree compiles now (gcc 3.3, 2.4.21-ac1
> kernel on PC164 booted with milo-2.2.18).

Hmm, I think milo lacks the "wrperfmon" PALcode, so you probably would
need to install SRM first (or reverse engineer it from SRM ;). I am
not sure iprobe will work out of the box then, though.

You might also give oprofile a try, although it requires a 2.5 kernel.

-- 
	Falk



^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: iprobe still alive?
@ 2003-06-18 11:37 Heid Oliver
  2003-06-18 12:10 ` Falk Hueffner
  0 siblings, 1 reply; 7+ messages in thread
From: Heid Oliver @ 2003-06-18 11:37 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

Thanks!
You are right: The pc164 milo (2.2.18) osfpal.s does not contain
any code for PAL_wrperfmon - but several 21064 and 21066 milos do!
First I'll try to transfer the code - how can I look into the SRM
console? Afaik the rom file is packed?!

	Oliver


-----Original Message-----
From: Falk Hueffner [mailto:falk.hueffner@student.uni-tuebingen.de]
Sent: Wednesday, June 18, 2003 10:20
To: axp-list@redhat.com
Subject: Re: iprobe still alive?


Heid Oliver <oliver.heid@siemens.com> writes:

> What is the status of iprobe on recent kernels?
> 
> After a few minor patches (most prominently the ipr_fops struct),
> the whole iprobe_suite-4.3 tree compiles now (gcc 3.3, 2.4.21-ac1
> kernel on PC164 booted with milo-2.2.18).

Hmm, I think milo lacks the "wrperfmon" PALcode, so you probably would
need to install SRM first (or reverse engineer it from SRM ;). I am
not sure iprobe will work out of the box then, though.

You might also give oprofile a try, although it requires a 2.5 kernel.

-- 
	Falk


_______________________________________________
Axp-list mailing list
Axp-list@redhat.com
https://www.redhat.com/mailman/listinfo/axp-list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iprobe still alive?
  2003-06-18 11:37 Heid Oliver
@ 2003-06-18 12:10 ` Falk Hueffner
  2003-06-18 13:10   ` Niki Waibel
  0 siblings, 1 reply; 7+ messages in thread
From: Falk Hueffner @ 2003-06-18 12:10 UTC (permalink / raw)
  To: axp-list

Heid Oliver <oliver.heid@siemens.com> writes:

> You are right: The pc164 milo (2.2.18) osfpal.s does not contain any
> code for PAL_wrperfmon - but several 21064 and 21066 milos do!
> First I'll try to transfer the code - how can I look into the SRM
> console? Afaik the rom file is packed?!

I don't know. It would probably be easiest to find a running pc164
with SRM and dump it from memory.

-- 
	Falk



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iprobe still alive?
  2003-06-18 12:10 ` Falk Hueffner
@ 2003-06-18 13:10   ` Niki Waibel
  0 siblings, 0 replies; 7+ messages in thread
From: Niki Waibel @ 2003-06-18 13:10 UTC (permalink / raw)
  To: axp-list

i have a running pc164 with srm.
i dont know much about srm/milo/pal and stuff,
but if i can help by typing some srm commands
then just tell me.

niki

On 18-Jun-2003 Falk Hueffner wrote:
> Heid Oliver <oliver.heid@siemens.com> writes:
> 
>> You are right: The pc164 milo (2.2.18) osfpal.s does not contain any
>> code for PAL_wrperfmon - but several 21064 and 21066 milos do!
>> First I'll try to transfer the code - how can I look into the SRM
>> console? Afaik the rom file is packed?!
> 
> I don't know. It would probably be easiest to find a running pc164
> with SRM and dump it from memory.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: iprobe still alive?
@ 2003-06-20  9:27 Heid Oliver
  2003-06-20 10:53 ` Falk Hueffner
  0 siblings, 1 reply; 7+ messages in thread
From: Heid Oliver @ 2003-06-20  9:27 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

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"



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: iprobe still alive?
  2003-06-20  9:27 Heid Oliver
@ 2003-06-20 10:53 ` Falk Hueffner
  0 siblings, 0 replies; 7+ messages in thread
From: Falk Hueffner @ 2003-06-20 10:53 UTC (permalink / raw)
  To: axp-list

Heid Oliver <oliver.heid@siemens.com> writes:

> 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.

I'm pretty sure that won't work, since performance monitoring is a lot
different between ev4 and ev5 (and pca56, and ev6, and ev67...)

> Any other (better) ideas?

From a quick look, it seemed to me like the palcode is at the
beginning of kcore...

-- 
	Falk



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-06-20 10:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-18  8:11 iprobe still alive? Heid Oliver
2003-06-18  8:19 ` 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-20  9:27 Heid Oliver
2003-06-20 10:53 ` Falk Hueffner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox