Re: [RFC] Merging ftrace_stack, perf_callchain, oprofile->backtrace and stack_trace

From: Aleksa Sarai
Date: Sun Oct 21 2018 - 05:41:44 EST


On 2018-10-21, Aleksa Sarai <cyphar@xxxxxxxxxx> wrote:
> However, in working on this patch, I've noticed that there appear to be
> several different implementations of "get the stack trace from this
> pt_regs" which all appear quite similar. Namely:
>
> * struct ftrace_stack;

Sorry, I made a mistake here. ftrace_stack *does* use stack_trace under
the hood, and so it can be easily modified to use the saved kretprobe
stack. The only issue is with perf_callchain_entry (which affects
bpf_get_stack).

--
Aleksa Sarai
Senior Software Engineer (Containers)
SUSE Linux GmbH
<https://www.cyphar.com/>

Attachment: signature.asc
Description: PGP signature