Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1586163 > unrolled thread
| Started by | "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> |
|---|---|
| First post | 2017-02-22 15:00 +0100 |
| Last post | 2017-02-25 03:50 +0100 |
| Articles | 4 — 4 participants |
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.
[PATCH v2 2/5] powerpc: kretprobes: override default function entry offset "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> - 2017-02-22 15:00 +0100
Re: [PATCH v2 2/5] powerpc: kretprobes: override default function entry offset Arnaldo Carvalho de Melo <acme@kernel.org> - 2017-02-24 21:00 +0100
Re: [PATCH v2 2/5] powerpc: kretprobes: override default function entry offset Michael Ellerman <mpe@ellerman.id.au> - 2017-02-27 20:00 +0100
Re: [PATCH v2 2/5] powerpc: kretprobes: override default function entry offset Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> - 2017-02-25 03:50 +0100
| From | "Naveen N. Rao" <naveen.n.rao@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-02-22 15:00 +0100 |
| Subject | [PATCH v2 2/5] powerpc: kretprobes: override default function entry offset |
| Message-ID | <tdFCy-2v3-5@gated-at.bofh.it> |
With ABIv2, we offset 8 bytes into a function to get at the local entry
point.
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
---
arch/powerpc/kernel/kprobes.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c
index 735ff3d3f77d..e37b76b8b6b2 100644
--- a/arch/powerpc/kernel/kprobes.c
+++ b/arch/powerpc/kernel/kprobes.c
@@ -131,6 +131,15 @@ static void __kprobes set_current_kprobe(struct kprobe *p, struct pt_regs *regs,
kcb->kprobe_saved_msr = regs->msr;
}
+bool arch_function_offset_within_entry(unsigned long offset)
+{
+#ifdef PPC64_ELF_ABI_v2
+ return offset <= 8;
+#else
+ return !offset;
+#endif
+}
+
void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri,
struct pt_regs *regs)
{
--
2.11.0
[toc] | [next] | [standalone]
| From | Arnaldo Carvalho de Melo <acme@kernel.org> |
|---|---|
| Date | 2017-02-24 21:00 +0100 |
| Subject | Re: [PATCH v2 2/5] powerpc: kretprobes: override default function entry offset |
| Message-ID | <teuc2-4Ze-15@gated-at.bofh.it> |
| In reply to | #1586163 |
Em Wed, Feb 22, 2017 at 07:23:38PM +0530, Naveen N. Rao escreveu:
> With ABIv2, we offset 8 bytes into a function to get at the local entry
> point.
So, I think I can carry the first one via Ingo, etc, what about this
one?
Is it ok for me to process it?
Seems simple enough, has been thru a lot of discussion, but would be
better if it was Reviewed-by the PPC maintainers or else just processed
by them.
Please advise,
- Arnaldo
> Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
> ---
> arch/powerpc/kernel/kprobes.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/arch/powerpc/kernel/kprobes.c b/arch/powerpc/kernel/kprobes.c
> index 735ff3d3f77d..e37b76b8b6b2 100644
> --- a/arch/powerpc/kernel/kprobes.c
> +++ b/arch/powerpc/kernel/kprobes.c
> @@ -131,6 +131,15 @@ static void __kprobes set_current_kprobe(struct kprobe *p, struct pt_regs *regs,
> kcb->kprobe_saved_msr = regs->msr;
> }
>
> +bool arch_function_offset_within_entry(unsigned long offset)
> +{
> +#ifdef PPC64_ELF_ABI_v2
> + return offset <= 8;
> +#else
> + return !offset;
> +#endif
> +}
> +
> void __kprobes arch_prepare_kretprobe(struct kretprobe_instance *ri,
> struct pt_regs *regs)
> {
> --
> 2.11.0
[toc] | [prev] | [next] | [standalone]
| From | Michael Ellerman <mpe@ellerman.id.au> |
|---|---|
| Date | 2017-02-27 20:00 +0100 |
| Message-ID | <tfyGC-1cf-11@gated-at.bofh.it> |
| In reply to | #1587899 |
Arnaldo Carvalho de Melo <acme@kernel.org> writes: > Em Wed, Feb 22, 2017 at 07:23:38PM +0530, Naveen N. Rao escreveu: >> With ABIv2, we offset 8 bytes into a function to get at the local entry >> point. > > So, I think I can carry the first one via Ingo, etc, what about this > one? > > Is it ok for me to process it? Yes please. > Seems simple enough, has been thru a lot of discussion, but would be > better if it was Reviewed-by the PPC maintainers or else just processed > by them. > > Please advise, I think it's best if you take it with patch 1. I realise they could go separately, but they make more sense together I think. Acked-by: Michael Ellerman <mpe@ellerman.id.au> cheers
[toc] | [prev] | [next] | [standalone]
| From | Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com> |
|---|---|
| Date | 2017-02-25 03:50 +0100 |
| Subject | Re: [PATCH v2 2/5] powerpc: kretprobes: override default function entry offset |
| Message-ID | <teAAN-16a-1@gated-at.bofh.it> |
| In reply to | #1586163 |
On Wed, Feb 22, 2017 at 07:23:38PM +0530, Naveen N. Rao wrote: > With ABIv2, we offset 8 bytes into a function to get at the local entry > point. > Looks good. > Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com> Acked-by: Ananth N Mavinakayanahalli <ananth@linux.vnet.ibm.com>
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web