From shashimc@gmail.com Wed Dec 20 02:01:26 2006 Received: with ECARTIS (v1.0.0; list kernprof); Wed, 20 Dec 2006 02:01:30 -0800 (PST) X-Spam-oss-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_50,HTML_MESSAGE, J_CHICKENPOX_52 autolearn=no version=3.2.0-r469477 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by oss.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id kBKA1Nqw019695 for ; Wed, 20 Dec 2006 02:01:25 -0800 Received: by wx-out-0506.google.com with SMTP id t4so1900011wxc for ; Wed, 20 Dec 2006 02:00:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=OxCuvZ5FWNTnIGDOMYE2WfeOkaJSIzdnz/u5jak7afblu0u7LCB5gPKR4u3/SCyW8EENXtLbr+QhaXhqoiPdN5X8lI0Hr5zgAdznVHlz9l1bmyLyBIFa8nxIPfHZm8+k5Ckr5++a4aE/qpUEayj0ZOrkVbnEpM7WYxDa/2vVO4M= Received: by 10.70.113.16 with SMTP id l16mr11676027wxc.1166607347983; Wed, 20 Dec 2006 01:35:47 -0800 (PST) Received: by 10.70.59.14 with HTTP; Wed, 20 Dec 2006 01:35:47 -0800 (PST) Message-ID: <12835c8f0612200135m5e1d613esb7bf987776f3e752@mail.gmail.com> Date: Wed, 20 Dec 2006 01:35:47 -0800 From: "Shashidhar Mysore" To: kernprof@oss.sgi.com Subject: /dev/kernprof: No such file or directory Cc: "John Hawkes" , shahamit@gmail.com MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_21761_32229633.1166607347837" X-archive-position: 369 X-ecartis-version: Ecartis v1.0.0 Sender: kernprof-bounce@oss.sgi.com Errors-to: kernprof-bounce@oss.sgi.com X-original-sender: shashimc@gmail.com Precedence: bulk X-list: kernprof Content-Length: 3325 Lines: 59 ------=_Part_21761_32229633.1166607347837 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, I'm a newbie to this group and kernprof. I am trying to use kernprof on linux 2.4.32. I successfully patched and compiled the kernel. (except that I had to comment out the following lines from include/asm/kernprof.h /* These are called by mcount() so we want them to be fast. */ void cg_record_arc(unsigned long, unsigned long) __attribute__((regparm(2))); void record_fn_call(unsigned long, unsigned long) __attribute__((regparm(2))); my compiler (gcc 3.4.6) was complaining about conflicting declarations for the two functions. Hope that is okay) Okay, so I have a kernel which is patched with frame pointers, and kernel profiling enabled and boots fine. I now compiled the user space kernprof program, and mknod'ed the /dev/profile device. The problem starts when I run kernprof and the program throws "/dev/kernprof: No such file or directory" error. I tried doing the same with kernel module support (that is kernprof as a module, it did not work - lsmod said there is no module such as kernprof - probably because of depmod problem) and then I built kernprof as a built in tool (no module support). Neither of them worked - userspace kernprof throws the same error "/dev/kernprof: No such file or directory". I double checked that I was running the right kernel with frame pointer and kernel profiling enabled, but just don't know what is wrong. Can somebody help me with this? Thanks in advance, -Shashi. ------=_Part_21761_32229633.1166607347837 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi,

I'm a newbie to this group and kernprof.

I am trying to use kernprof on linux 2.4.32. I successfully patched and compiled the kernel.

(except that I had to comment out the following lines from include/asm/kernprof.h

/* These are called by mcount() so we want them to be fast. */
void cg_record_arc(unsigned long, unsigned long) __attribute__((regparm(2)));
void record_fn_call(unsigned long, unsigned long) __attribute__((regparm(2)));

my compiler (gcc 3.4.6) was complaining about conflicting declarations for the two functions. Hope that is okay)

Okay, so I have a kernel which is patched with frame pointers, and kernel profiling enabled and boots fine. I now compiled the user space kernprof program, and mknod'ed the /dev/profile device.

The problem starts when I run kernprof and the program throws
"/dev/kernprof: No such file or directory" error. I tried doing the same with kernel module support (that is kernprof as a module, it did not work - lsmod said there is no module such as kernprof - probably because of depmod problem) and then I built kernprof as a built in tool (no module support). Neither of them worked - userspace kernprof throws the same error

"/dev/kernprof: No such file or directory".

I double checked that I was running the right kernel with frame pointer and kernel profiling enabled, but just don't know what is wrong. Can somebody help me with this?

Thanks in advance,
-Shashi.
------=_Part_21761_32229633.1166607347837--