Re: [PATCH -tip v8 11/13] x86/unwind: Recover kretprobe trampoline entry
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
- Subject: Re: [PATCH -tip v8 11/13] x86/unwind: Recover kretprobe trampoline entry
- From: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
- Date: Wed, 7 Jul 2021 12:20:57 +0200
- Cc: Steven Rostedt <rostedt@xxxxxxxxxxx>, Josh Poimboeuf <jpoimboe@xxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, X86 ML <x86@xxxxxxxxxx>, Daniel Xu <dxu@xxxxxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, bpf@xxxxxxxxxxxxxxx, kuba@xxxxxxxxxx, mingo@xxxxxxxxxx, ast@xxxxxxxxxx, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Borislav Petkov <bp@xxxxxxxxx>, kernel-team@xxxxxx, yhs@xxxxxx, linux-ia64@xxxxxxxxxxxxxxx, Abhishek Sagar <sagar.abhishek@xxxxxxxxx>, Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx>, wuqiang.matt@xxxxxxxxxxxxx
- In-reply-to: <20210707191510.cb48ca4a20f0502ce6c46508@kernel.org>
- References: <162399992186.506599.8457763707951687195.stgit@devnote2> <162400002631.506599.2413605639666466945.stgit@devnote2> <YOLurg5mGHdBc+fz@hirez.programming.kicks-ass.net> <20210706004257.9e282b98f447251a380f658f@kernel.org> <YOQMV8uE/2bVkPOY@hirez.programming.kicks-ass.net> <20210706111136.7c5e9843@oasis.local.home> <YOVj2VoyrcOvJfEB@hirez.programming.kicks-ass.net> <20210707191510.cb48ca4a20f0502ce6c46508@kernel.org>
On Wed, Jul 07, 2021 at 07:15:10PM +0900, Masami Hiramatsu wrote:
> I actually don't want to keep this feature because no one use it.
> (only systemtap needs it?)
Yeah, you mentioned systemtap, but since that's out-of-tree I don't
care. Their problem.
> Anyway, if we keep the idea-level compatibility (not code level),
> what we need is 'void *data' in the struct kretprobe_instance.
> User who needs it can allocate their own instance data for their
> kretprobes when initialising it and sets in their entry handler.
>
> Then we can have a simple kretprobe_instance.
When would you do the alloc? When installing the retprobe, but that
might be inside the allocator, which means you can't call the allocator
etc.. :-)
If we look at struct ftrace_ret_stack, it has a few fixed function
fields. The calltime one is all that is needed for the kretprobe
example code.
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]