Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-02-02 Thread Dave Kleikamp
On Mon, 2010-01-18 at 16:34 -0600, Dave Kleikamp wrote: On Thu, 2009-12-10 at 20:23 -0600, Kumar Gala wrote: Is GDB smart enough to deal w/no condition_regs? On some Book-E devices we have 2 IACs, 2 DACs, and 0 DVCs. Does it need to be in the features? I wasn't aware that the bookE

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-01-30 Thread Frederic Weisbecker
On Sun, Jan 31, 2010 at 08:33:25AM +1100, Benjamin Herrenschmidt wrote: We have one field for addr, one for len and one for the memory access type. I think that those three are enough to express breakpoint ranges. Basically a breakpoint range is a breakpoint that can have a high

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-01-27 Thread K.Prasad
On Mon, Jan 25, 2010 at 07:32:00AM +1100, Benjamin Herrenschmidt wrote: On Mon, 2010-01-25 at 00:48 +0530, K.Prasad wrote: Some of the benefits of using these generic interfaces include: - Interoperability with other users of debug register (such as parallel kernel requests) i.e.

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-01-24 Thread K.Prasad
From shaggy at linux.vnet.ibm.com Tue Jan 19 08:57:04 2010 From: shaggy at linux.vnet.ibm.com (Dave Kleikamp) Date: Mon, 18 Jan 2010 14:57:04 -0700 Subject: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface Message-ID: 20100118215704.15684.60646

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-01-24 Thread Benjamin Herrenschmidt
On Mon, 2010-01-25 at 00:48 +0530, K.Prasad wrote: Some of the benefits of using these generic interfaces include: - Interoperability with other users of debug register (such as parallel kernel requests) i.e. non-exclusive use of debug registers. - Enables debugging/tracing tools such as

[RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-01-18 Thread Dave Kleikamp
These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. This is a resubmission of the patches I first sent on December 9th. Sorry for the delay. I have addressed most of the comments, and I'll follow up on the others. These patches

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2010-01-18 Thread Dave Kleikamp
On Thu, 2009-12-10 at 20:45 -0600, Kumar Gala wrote: What do we do in EDM mode? We need a flag somewhere to determine if HW supports conveying DBCR0[EDM] and if it does which of the ptrace calls fails? I really don't have a good answer to this. I'm open to any and all advice. Shaggy --

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-11 Thread Thiago Jung Bauermann
On Fri 11 Dec 2009 00:27:36 Dave Kleikamp wrote: On Thu, 2009-12-10 at 20:23 -0600, Kumar Gala wrote: On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: #define PPC_DEBUG_FEATURE_INSN_BP_RANGE 0x1 #define PPC_DEBUG_FEATURE_INSN_BP_MASK0x2 #define

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-11 Thread Kumar Gala
On Dec 11, 2009, at 2:07 PM, Thiago Jung Bauermann wrote: On Fri 11 Dec 2009 00:27:36 Dave Kleikamp wrote: On Thu, 2009-12-10 at 20:23 -0600, Kumar Gala wrote: On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: #define PPC_DEBUG_FEATURE_INSN_BP_RANGE0x1 #define

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-11 Thread Benjamin Herrenschmidt
On Thu, 2009-12-10 at 20:24 -0600, Kumar Gala wrote: This is a good write up. We should have it as a commit message for the first patch. No, that should go into Documentation/powerpc/ Cheers, Ben. ___ Linuxppc-dev mailing list

[RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-10 Thread Dave Kleikamp
These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. GDB intends to support the following hardware debug features of BookE processors: 4 hardware breakpoints (IAC) 2 hardware watchpoints (read, write and read-write) (DAC) 2 value

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-10 Thread Kumar Gala
On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. GDB intends to support the following hardware debug features of BookE processors: 4 hardware breakpoints (IAC) 2

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-10 Thread Kumar Gala
On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. GDB intends to support the following hardware debug features of BookE processors: 4 hardware breakpoints (IAC) 2

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-10 Thread Dave Kleikamp
On Thu, 2009-12-10 at 20:23 -0600, Kumar Gala wrote: On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. GDB intends to support the following hardware debug features of

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-10 Thread Dave Kleikamp
On Thu, 2009-12-10 at 20:24 -0600, Kumar Gala wrote: On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. GDB intends to support the following hardware debug features of

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-10 Thread Kumar Gala
On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. GDB intends to support the following hardware debug features of BookE processors: 4 hardware breakpoints (IAC) 2

Re: [RFC:PATCH 00/03] powerpc: Expose BookE debug registers through extended ptrace interface

2009-12-10 Thread Kumar Gala
On Dec 10, 2009, at 8:29 PM, Dave Kleikamp wrote: On Thu, 2009-12-10 at 20:24 -0600, Kumar Gala wrote: On Dec 10, 2009, at 9:57 AM, Dave Kleikamp wrote: These patches implement an extention to the ptrace interface proposed by Thiago Bauermann and the the PowerPC gdb team. GDB intends to