From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 5B0892F0D3 for ; Thu, 11 Jan 2001 06:21:01 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f0BBL1Z05867 for axp-list@listman.redhat.com; Thu, 11 Jan 2001 06:21:01 -0500 Received: from iona.dcs.gla.ac.uk (iona.dcs.gla.ac.uk [130.209.240.35]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f0BBL0D05860 for ; Thu, 11 Jan 2001 06:21:00 -0500 Received: from therese.dcs.gla.ac.uk ([130.209.241.134] helo=therese.dcs.gla.ac.uk.dcs.gla.ac.uk) by iona.dcs.gla.ac.uk with esmtp (Exim 3.13 #1) id 14Gfmt-0005ai-00 for axp-list@redhat.com; Thu, 11 Jan 2001 11:20:59 +0000 Received: by therese.dcs.gla.ac.uk.dcs.gla.ac.uk (8.9.3/Dumb) id LAA11908; Thu, 11 Jan 2001 11:20:58 GMT To: axp-list@redhat.com Subject: Re: gprof and iprobe References: From: Rolf Neugebauer Date: 11 Jan 2001 11:20:58 +0000 In-Reply-To: "T. Daniel Crawford"'s message of "Wed, 10 Jan 2001 14:52:00 -0500 (EST)" Message-ID: User-Agent: Gnus/5.0805 (Gnus v5.8.5) Emacs/20.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors "T. Daniel Crawford" writes: > Iprobe: The RPMs available at the Compaq site are geared to RH6.0. When I > run the iprobe binary, it fails and reports an ioctl error. I also tried > to compile the source myself, but there are numerous header errors and > incompatibilities to current Linux distributions. From past discussion of > iprobe on this list, it seems to be the method of choice, if only I could > get it to work. Are you trying to compile iprobe under 2.4.0? In that case, you at least have to change the ipr_fops structure in ./driver/src/linux/driver_linux.c as the file_operations structure has changed sometime between 2.2.x and 2.4.0 (the owner field has been added to the beginning of the structure). I tried iprobe with an early 2.4.0-test kernel and changed the ipr_fops structure to: struct file_operations ipr_fops = { NULL, /* owner */ NULL, /* llseek */ NULL, /* read */ NULL, /* write */ NULL, /* readdir */ NULL, /* Poll */ ipr_ioctl, /* ioctl */ NULL, /* mmap */ ipr_open, /* just a selector for the real open */ NULL, /* Flush */ ipr_close, /* release */ NULL, /* fsync */ NULL, /* fasync */ NULL, /* lock */ NULL, /* readv */ NULL, /* writev */ }; (maybe the owner should be set to something more sensible) IIRC this was the only change I made, to get iprobe working on an upgraded RH6.1 system. Rolf PS.: I have already mailed this info to Phillip Ezolt at Compaq who was named as the contact person for iprobe in September last year.