> Hi,
> I am toying with parport io. Is there some way that I could insert a
> printk in my kernel source so that I could have syslogd print out in the
> logs anytime an inb and outb are executed? I tried inserting some printk's
> in /usr/include/sys/io.h, and re-compiled the kernel, to no effect. :(
> Do I perhaps need to modify asm-i386/io.h?
> Any suggestions would be appreciated. Or perhaps a different route to take
> to accomplish the same thing . . . ?
> BTW, I'm working with 2.2.17.
> Thanks in advance.
> --
> Michael Jordan
Maybe you changed the wrong header file.
There is an include directory in the kernel
source directory, change the header file in
that directory.
Notice that there is also some port access
in a few assembler files, the I/O from these
files will not result in any printk.
Calling printk on every I/O can be dangerous.
Some devices may be sensitive to timings, the
printk calls can cause huge changes in
timings. Also notice that if printk or any
function called by printk needs to do port
I/O this will result in infinite recursion.
Another approach could be to run the kernel
under an emulator with build in debuging.
This will solve the infinite recursion
problem, and might make lot of other things
easier.
Does anybody know which emulator would be
good for this kind of experiments?
--
Kasper Dupont