Re: [PATCH 0/7] perf, x86: Haswell LBR call stack support

From: Andi Kleen
Date: Tue Jun 25 2013 - 11:27:11 EST


> > The LBR call stack has following known limitations
> > 1. Zero length calls are not filtered out by hardware
> > 2. Exception handing such as setjmp/longjmp will have calls/returns not
> > match
> > 3. Pushing different return address onto the stack will have calls/returns
> > not match
> >
> I would also add that it does not work with leaf call optimizations:
> A calls B, B calls C, C returns to A

For this case it works as well as frame pointer or dwarf (or any
other backtracer), they simply do not show up in the callgraph
(unless you disable the tail calls).

I wouldn't consider it an additional limitation.

Another case that doesn't work with is TSX transactions.

Still it's extremly useful if you have nothing else ...

-Andi

--
ak@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
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/