Re: debug registers and fork

2007-03-05 Thread Stephane Eranian
Andi, On Mon, Mar 05, 2007 at 06:25:16PM +0100, Andi Kleen wrote: > On Tuesday 27 February 2007 00:51, Stephane Eranian wrote: > > > > I have come across an issue with a monitoring using the > > hardware debug registers on ia64/i386/x86-64. > > > > It seems that the way debug registers are inher

Re: debug registers and fork

2007-03-05 Thread Andi Kleen
On Tuesday 27 February 2007 00:51, Stephane Eranian wrote: > Hello, > > I have come across an issue with a monitoring using the > hardware debug registers on ia64/i386/x86-64. > > It seems that the way debug registers are inherited across fork > differs between ia-64 and i386/x86-64. On ia-64, th

Re: debug registers and fork

2007-02-28 Thread Stephane Eranian
Alan, On Wed, Feb 28, 2007 at 07:01:17PM -0500, Alan Stern wrote: > On Wed, 28 Feb 2007, Roland McGrath wrote: > > > It is true that debug registers are inherited by fork and clone. > > I am 99% sure that this was never specifically intended, but it > > has been this way for a long time (since 2.

Re: debug registers and fork

2007-02-28 Thread Alan Stern
On Wed, 28 Feb 2007, Roland McGrath wrote: > It is true that debug registers are inherited by fork and clone. > I am 99% sure that this was never specifically intended, but it > has been this way for a long time (since 2.4 at least). It's an > implicit consequence of the do_fork implementation st

Re: debug registers and fork

2007-02-28 Thread Roland McGrath
It is true that debug registers are inherited by fork and clone. I am 99% sure that this was never specifically intended, but it has been this way for a long time (since 2.4 at least). It's an implicit consequence of the do_fork implementation style, which does a blind copy of the whole task_struc

Re: debug registers and fork

2007-02-27 Thread Andrew Morton
> On Mon, 26 Feb 2007 15:51:54 -0800 Stephane Eranian <[EMAIL PROTECTED]> wrote: > Hello, > > I have come across an issue with a monitoring using the > hardware debug registers on ia64/i386/x86-64. > > It seems that the way debug registers are inherited across fork > differs between ia-64 and i38

debug registers and fork

2007-02-26 Thread Stephane Eranian
Hello, I have come across an issue with a monitoring using the hardware debug registers on ia64/i386/x86-64. It seems that the way debug registers are inherited across fork differs between ia-64 and i386/x86-64. On ia-64, the debug registers are NEVER inherited in the child. The copy_thread() rou