Re: [PATCH v3.1 09/10] x86/unwind: add ORC unwinder

2017-07-20 Thread Josh Poimboeuf
On Thu, Jul 20, 2017 at 09:12:16AM +0200, Jiri Slaby wrote: > On 07/14/2017, 07:22 PM, Josh Poimboeuf wrote: > > +void __unwind_start(struct unwind_state *state, struct task_struct *task, > > + struct pt_regs *regs, unsigned long *first_frame) > > +{ > > + memset(state, 0, sizeof(*s

Re: [PATCH v3.1 09/10] x86/unwind: add ORC unwinder

2017-07-20 Thread Jiri Slaby
On 07/14/2017, 07:22 PM, Josh Poimboeuf wrote: > +void __unwind_start(struct unwind_state *state, struct task_struct *task, > + struct pt_regs *regs, unsigned long *first_frame) > +{ > + memset(state, 0, sizeof(*state)); > + state->task = task; > + > + /* > + * Refu

[PATCH v3.1 09/10] x86/unwind: add ORC unwinder

2017-07-14 Thread Josh Poimboeuf
Add a new ORC unwinder which is enabled by CONFIG_ORC_UNWINDER. It plugs into the existing x86 unwinder framework. It relies on objtool to generate the needed .orc_unwind and .orc_unwind_ip sections. For more details on why ORC is used instead of DWARF, see Documentation/x86/orc-unwinder.txt. T