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


Groups > linux.kernel > #1289150

[RFC] kprobe'ing conditionally executed instructions

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!2.eu.feeder.erje.net!nntpspool01.opticnetworks.net!aioe.org!bofh.it!news.nic.it!robomod
From David Long <dave.long@linaro.org>
Newsgroups linux.kernel
Subject [RFC] kprobe'ing conditionally executed instructions
Date Fri, 11 Dec 2015 06:10:02 +0100
Message-ID <qEo7U-84p-29@gated-at.bofh.it> (permalink)
X-Original-To "Jon Medhurst (Tixy)" <tixy@linaro.org>, masami.hiramatsu.pt@hitachi.com, Ananth N Mavinakayanahalli <ananth@in.ibm.com>, anil.s.keshavamurthy@intel.com, davem@davemloft.net, Steve Capper <steve.capper@linaro.org>, will.deacon@arm.com
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=sajM3di8SxUnmxpZfPWerGsMOo6SKFx7fD7oQTXV9HY=; b=vzCVkg/AtmjDcyVwDDcoXk2e5SAJ4Ytg/Py7N2L+/DvO1LYk6rRSphK4/0zyOysd0m 6CyxgghAoom6nSgj1AqPZtMaonbIWuDf6eQyIcPBX6XmCk31tZQ00dpm3tZdHG8G0Zqf xykUsu1gRfo/UxXW3nIVioG8/DTP/JG9wPqaZ/ZCkJDTRmxGGnKJrYmT+OdUbGZmwEhn u2OUiJchP32n38BpaX1wB4RpPUEd9jPsJK5apI4U7eyZAFmt4xP9Ov/SmI9/fo/+JXmF e0lgrN8LYHlbhw2bf7CYH3zeI9Y9qs+KxUH5USw2qIFERKjQqyULanqEQfDECymIHMWL IVvg==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:subject:to:cc:message-id:date:user-agent :mime-version:content-type:content-transfer-encoding; bh=sajM3di8SxUnmxpZfPWerGsMOo6SKFx7fD7oQTXV9HY=; b=E/06UgExbM2ue9JWgQflM5IiDnJx8Q189gYY3uBx9y+ZYLGugucLzbtlUl/04EifuQ nJQfix0qzP3K0zZjFKH5Hui2zNDvQVFyU1YacwlayiV7zKdcDZnvnqChum6CUOzyRBS0 Xa85b2JtLTf2PYCq0Q3jjfC/UX/fYBUHDWn8NPVgSix2QYtpYEBaaA8xZU8F2Xx9URlr 2ZDXUyjA8/BEqvEgjZx0kMnx9wjEPIwBi18cZavO2iS/AKXnd/7/9NFqHAn94RqkLjcL nkRaDL/+BF9PQDNXaV/IvR5F/ElMODGIwV5FuIK59Krpbu0CP7fft034eSJYzTRUDDIy cQ9w==
X-Gm-Message-State ALoCoQn76ZJlluIcKusAptzW/N0IW5v0Hy66QfLcOYM9AEI7Zl9HTRNuJy6DsCIvruBh66daSORw13KMdPTa35GkSXT7BiZbLQ==
X-Received by 10.55.78.78 with SMTP id c75mr20564106qkb.71.1449810328906; Thu, 10 Dec 2015 21:05:28 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 19
Organization linux.* mail to news gateway
X-Original-Cc "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Sandeepa Prabhu <sandeepa.s.prabhu@gmail.com>, wcohen@redhat.com, Pratyush Anand <panand@redhat.com>
X-Original-Date Fri, 11 Dec 2015 00:05:27 -0500
X-Original-Message-ID <566A5997.9020908@linaro.org>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1289150

Show key headers only | View raw


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?

-dl

--
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 | NextNext 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