Re: [PATCH] x86, stacktrace: avoid recording save_stack_trace wrappers

2017-09-07 Thread Josh Poimboeuf
On Thu, Sep 07, 2017 at 09:57:36AM +0200, Vlastimil Babka wrote: > The save_stack_trace() and save_stack_trace_tsk() wrappers of > __save_stack_trace() add themselves to the call stack, and thus appear in the > recorded stacktraces. This is redundant and wasteful when we have limited > space > to

[PATCH] x86, stacktrace: avoid recording save_stack_trace wrappers

2017-09-07 Thread Vlastimil Babka
The save_stack_trace() and save_stack_trace_tsk() wrappers of __save_stack_trace() add themselves to the call stack, and thus appear in the recorded stacktraces. This is redundant and wasteful when we have limited space to record the useful part of the backtrace with e.g. page_owner functionality.