kernprof
[Top] [All Lists]

Re: a question

To: "Gang Wang" <gwang@xxxxxxxxxx>
Subject: Re: a question
From: "John Hawkes" <hawkes@xxxxxxxxxxxx>
Date: Thu, 26 Jul 2001 13:00:55 -0700
Cc: <kernprof@xxxxxxxxxxx>
References: <Pine.GHP.4.30.0107261240020.27940-100000@xxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-kernprof@xxxxxxxxxxx
From: "Gang Wang" <gwang@xxxxxxxxxx>
>  I can open and close this device and I also
> didn't find any unprinted characters in device name. could you please
give
> me further advise?

Then it would seem that the kernprof program isn't doing the open()
correctly.  Try editing kernprof.c to first put the file pathname into a
null-terminated char[] array, then open() using that array instead of
using the "/dev/profile" inline string.  Maybe there is something goofy
about the code that gcc is generating.  If it were me and my personal
test system, I'd hack my kernel to printk() the name of every failing
file open request, just to see exactly what is getting through to the
kernel.

Does "cat /dev/profile" do anything?  Try that simple open-close test on
other /dev/* pathnames.  Try deleting and recreating /dev/profile.

As I said, I am baffled.

John Hawkes
hawkes@xxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>