Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1410823 > unrolled thread
| Started by | David Long <dave.long@linaro.org> |
|---|---|
| First post | 2016-06-01 07:20 +0200 |
| Last post | 2016-06-01 07:20 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v12 05/10] arm64: Kprobes with single stepping support David Long <dave.long@linaro.org> - 2016-06-01 07:20 +0200
| From | David Long <dave.long@linaro.org> |
|---|---|
| Date | 2016-06-01 07:20 +0200 |
| Subject | Re: [PATCH v12 05/10] arm64: Kprobes with single stepping support |
| Message-ID | <rF6Jr-4ev-5@gated-at.bofh.it> |
On 05/17/2016 05:10 AM, Huang Shijie wrote:
> On Wed, Apr 27, 2016 at 02:53:00PM -0400, David Long wrote:
>> From: Sandeepa Prabhu <sandeepa.s.prabhu@gmail.com>
>> +
>> +static bool __kprobes aarch64_insn_is_steppable(u32 insn)
>
> Could we add more comment for this function? In the comment, we can tell
> that which type of instructions are steppable, which are not.
>
>> +{
>> + if (aarch64_get_insn_class(insn) == AARCH64_INSN_CLS_BR_SYS) {
>> + if (aarch64_insn_is_branch(insn) ||
>> + aarch64_insn_is_msr_imm(insn) ||
>> + aarch64_insn_is_msr_reg(insn) ||
>> + aarch64_insn_is_exception(insn))
>> + return false;
>> +
>> + if (aarch64_insn_is_mrs(insn))
>> + return aarch64_insn_extract_system_reg(insn)
>> + != AARCH64_INSN_SPCLREG_DAIF;
>> +
>> + if (aarch64_insn_is_hint(insn))
>> + return aarch64_insn_is_nop(insn);
>> +
>> + return true;
>> + }
>> +
>> + if (aarch64_insn_uses_literal(insn) ||
>> + aarch64_insn_is_exclusive(insn))
>> + return false;
>> +
>> + return true;
>
> Thanks
> Huang Shijie
>
I did add a comment to this for the next version of the patch.
-dl
Back to top | Article view | linux.kernel
csiph-web