kernprof
[Top] [All Lists]

/dev/kernprof: No such file or directory

To: kernprof@xxxxxxxxxxx
Subject: /dev/kernprof: No such file or directory
From: "Shashidhar Mysore" <shashimc@xxxxxxxxx>
Date: Wed, 20 Dec 2006 01:35:47 -0800
Cc: "John Hawkes" <hawkes@xxxxxxx>, shahamit@xxxxxxxxx
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=
Sender: kernprof-bounce@xxxxxxxxxxx
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.
<Prev in Thread] Current Thread [Next in Thread>
  • /dev/kernprof: No such file or directory, Shashidhar Mysore <=