[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220216131306.GA56419@leoy-ThinkPad-X240s>
Date: Wed, 16 Feb 2022 21:13:06 +0800
From: Leo Yan <leo.yan@...aro.org>
To: Dmitry Vyukov <dvyukov@...gle.com>
Cc: John Garry <john.garry@...wei.com>, Will Deacon <will@...nel.org>,
Marco Elver <elver@...gle.com>,
Thomas Richter <tmricht@...ux.ibm.com>,
linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
acme@...nel.org, svens@...ux.ibm.com, gor@...ux.ibm.com,
sumanthk@...ux.ibm.com, hca@...ux.ibm.com,
Mark Rutland <mark.rutland@....com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: Test 73 Sig_trap fails on arm64 (was Re: [PATCH] perf test: Test
73 Sig_trap fails on s390)
On Wed, Feb 16, 2022 at 12:54:16PM +0100, Dmitry Vyukov wrote:
> On Wed, 16 Feb 2022 at 12:47, John Garry <john.garry@...wei.com> wrote:
[...]
> > > Signals make this messy, as the step logic will step_into_ the signal
> > > handler -- we have to do this, otherwise we would miss break/watchpoints
> > > triggered by the signal handler if we had disabled them for the step.
> > > However, it means that when we return back from the signal handler we will
> > > run back into the break/watchpoint which we initially stepped over. When
> > > perf uses SIGTRAP to notify userspace that we hit a break/watchpoint,
> > > then we'll get stuck because we'll step into the handler every time.
> > >
> > > Hopefully that clears things up a bit. Ideally, the kernel wouldn't
> > > pretend to handle this stepping at all for arm64 as it adds a bunch of
> > > complexity, overhead to our context-switch and I don't think the current
> > > behaviour is particularly useful.
> > >
> >
> > Right, so what I am hearing altogether is that for now we should just
> > skip this test.
> >
> > And since the kernel does not seem to advertise this capability we need
> > to disable for specific architectures.
>
> It does and fwiw I am just trying to use it. Things work only on x86 so far.
So here we have agreement to disable the cases for Arm64/Arm.
John, since you put much efforts to follow up the issue, I'd like to
leave decision to you if you want to proceed for patches? Otherwise,
I will send patches to disable cases in perf.
Thanks,
Leo
Powered by blists - more mailing lists