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