Re: [PATCH] perf: x86: fix callgraphs of 32-bit processes on 64-bitkernels V2.

From: Ingo Molnar
Date: Wed Mar 17 2010 - 06:00:20 EST



* T?r?k Edwin <edwintorok@xxxxxxxxx> wrote:

> >> + }
> >> + return;
> >
> > This whole new block should probably be in a helper inline?
>
> To reduce indenting, or why?

Mainly to increase cleanliness. We want code that isolates separate blocks of
logic into separate sections. So a simple construct of:

if (perf_callchain_user32(regs, entry))
return;

will tell the reader of the code that 'ok, this is 32-bit compat stuff'. It
doesnt, at this level, intrude into the main logic of that function. Then if
we look at perf_callchain_user32() we see all the 32-bit compat stack frame
walking details.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/