On Fri, Jan 24, 2025 at 03:02:11PM -0500, Steven Rostedt wrote:
> On Tue, 21 Jan 2025 18:31:03 -0800
> Josh Poimboeuf <jpoim...@kernel.org> wrote:
> > +int unwind_user_start(struct unwind_user_state *state)
> > +{
> > +   struct pt_regs *regs = task_pt_regs(current);
> > +
> > +   memset(state, 0, sizeof(*state));
> > +
> > +   if (!current->mm || !user_mode(regs)) {
> > +           state->done = true;
> > +           return -EINVAL;
> > +   }
> > +
> > +   state->type = UNWIND_USER_TYPE_NONE;
> > +
> > +   state->ip = instruction_pointer(regs);
> > +   state->sp = user_stack_pointer(regs);
> > +   state->fp = frame_pointer(regs);
> > +
> > +   return 0;
> > +}
> > +
> 
> I know this is just an introductory of the interface, but this should
> really have kerneldoc attached to it, as I have no idea what these are
> supposed to be doing. This patch is meaningless without it. The change log
> is useless too.

Yeah, sure.

-- 
Josh

Reply via email to