> Thanks for your time. Right now I am using gcc 4.8.2 20131219
> (prerelease) and libunwind 1.1. I noticed the following
> compile flags: "-O2 -g -fvar-tracking-assignments". I thought that
> maybe optimizations like function inlining and the like would not play
> together with debugging info, so I changed them to "-Og -g3
> -fvar-tracking-assignments" and recompiled anything, albeit with no
> luck. I must be missing something big here. How can I be sure to give
> correct dwarf unwind information?

The dwarf information should be present unless explicitely disabled.
It's either a libunwind or compiler problem. You could file a gcc bug
I suppose. Also check if gdb can backtrace through it. If that works
it's likely unwind.

unwind problems are unfortunately somewhat common (but most seem to
be in handwritten assembler)

You'll also notice that dwarf unwind profiling is very expensive in overhead.
I usually avoid it because of that.

If you have a Haswell system one alternative is the LBR callstack 
patchkit on Linux kernel (unfortunately not merged so far)

-Andi

-- 
a...@linux.intel.com -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-perf-users" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to