On 12/10, Oleg Nesterov wrote: > > On 12/09, CAI Qian wrote: > > > > ----- "Oleg Nesterov" <o...@redhat.com> wrote: > > > > > Thanks, but it doesn't fail for me on this machine... > > > > Hmm, it failed for me. > > > > # cd /root/ptrace-tests > > > > # make check > > ... > > FAIL: watchpoint > > OMG. Yet another test-case fails on powerpc ???? I didn't see this > failure in the previous reports or missed it ... > > I bet it fails without utrace too? (please don't tell it doesn't ;) > > Did you see it fails on other ppc64 machines? > > > Oh well. I spent this day grepping arch/powerpc to understand how > PTRACE_SET_DEBUGREG works and what is the problem. But I am afraid > this time I need a help from someone who understands the hardware > magic on powerpc. > > So far: > > - the test-case looks correct to me
OOPS. I am not sure, will re-check tomorrow. But it seems to me gcc optimizes out "check = 1", despite the fact it is declared as volatile. Oleg.