Re: Breakpoint on port write

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 01 October 2002 05:55, Bharata B Rao wrote:
> On Mon, Sep 30, 2002 at 09:59:11AM +0200, Duncan Sands wrote:
> > Hi all, I would like to monitor exactly when the kernel is writing
> > to a certain I/O port.  The device is a PCI device with some I/O
> > mapped registers.  They are written to/read from using outw, inw.
> > Is there some debugging tool I can use to see all reads and writes?
>
> You could try putting io watchpoint on the port using dprobes.
>
> http://www.ibm.com/linux/ltc/projects/dprobes/

Thanks Bharata - I did that and it works fine.  Some things that would be nice:

(1) break only on io write / break only on io read
(2) get the value written / read.

It is possible to get on without these of course, but it would be convenient
if they existed.

Thanks again for your help,

Duncan.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux