[PATCH 6/6] arm64: Emulate CP15 Barrier instructions
Catalin Marinas
catalin.marinas at arm.com
Thu Aug 28 02:42:14 PDT 2014
On Thu, Aug 28, 2014 at 10:34:58AM +0100, Punit Agrawal wrote:
> Catalin Marinas <catalin.marinas at arm.com> writes:
>
> > On Tue, Aug 26, 2014 at 11:28:50AM +0100, Punit Agrawal wrote:
> >> diff --git a/arch/arm64/kernel/v7_obsolete.c b/arch/arm64/kernel/v7_obsolete.c
> >> index e9427cb..ed77889 100644
> >> --- a/arch/arm64/kernel/v7_obsolete.c
> >> +++ b/arch/arm64/kernel/v7_obsolete.c
> >> @@ -227,6 +227,94 @@ static void __init swp_emulation_init(void)
> >> pr_notice("Registered SWP/SWPB emulation handler\n");
> >> }
> >>
> >> +static atomic_t cp15_barrier_count;
> >
> > Should we add counters for each barrier type? It may be more
> > informative.
>
> Arnd proposed to use trace points instead of counters. I can emit
> different trace points for the different barrier types.
This would work as well.
--
Catalin
More information about the linux-arm-kernel
mailing list