Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1289358

Re: [RFC] kprobe'ing conditionally executed instructions

From Steve Capper <steve.capper@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFC] kprobe'ing conditionally executed instructions
Date 2015-12-11 10:40 +0100
Message-ID <qEslb-2l8-3@gated-at.bofh.it> (permalink)
References <qEo7U-84p-29@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11 December 2015 at 13:05, David Long <dave.long@linaro.org> wrote:
> There is a moderate amount of code already in kprobes on ARM and the current
> ARMv8 patch to deal with conditional execution of instructions. One aspect
> of how this is handled is that instructions that fail their predicate and
> are not (technically) executed are also not treated as a hit kprobe. Steve
> Capper has suggested that the probe handling should still take place because
> we stepped through the instruction even if it was effectively a nop.  This
> would be a significant change in how it currently works on 32-bit ARM, and a
> change in the patch for ARMv8 (although it's not likely to be much of a
> change in the kernel code).
>
> I need input on this.  Do people have opinions?

Hi David,
Thanks for posting this.

Just to clarify the reasoning behind my suggestion for kprobes always
being hit was to achieve parity with x86.

I highlighted an example of discrepancy in behaviour between arm64 and
x86 in the following email:
http://lists.infradead.org/pipermail/linux-arm-kernel/2015-August/364201.html

Cheers,
--
Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC] kprobe'ing conditionally executed instructions David Long <dave.long@linaro.org> - 2015-12-11 06:10 +0100
  Re: [RFC] kprobe'ing conditionally executed instructions Steve Capper <steve.capper@linaro.org> - 2015-12-11 10:40 +0100
  Re: [RFC] kprobe'ing conditionally executed instructions "Jon Medhurst (Tixy)" <tixy@linaro.org> - 2015-12-11 11:30 +0100
    Re: [RFC] kprobe'ing conditionally executed instructions Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-12-11 11:40 +0100
      Re: [RFC] kprobe'ing conditionally executed instructions "Jon Medhurst (Tixy)" <tixy@linaro.org> - 2015-12-11 13:20 +0100
  Re: [RFC] kprobe'ing conditionally executed instructions William Cohen <wcohen@redhat.com> - 2015-12-11 17:20 +0100

csiph-web