glibc/nptl/sysdeps
Andi Kleen df5b85da90 Fix dwarf2 unwinding through futex functions.
When profiling programs with lock problems with perf record -g dwarf,
libunwind can currently not backtrace through the futex and unlock
functions in pthread. This is because they use out of line sections,
and those are not correctly described in dwarf2 (I believe needs
dwarf3 or 4).

This patch first removes the out of line sections. They only save a
single jump, but cause a lot of pain. Then it converts the now inline
lock code to use the now standard gas .cfi_* commands.

With these changes libunwind/perf can backtrace through the futex
functions now.

Longer term it would be likely better to just use C futex() functions
on x86 like all the other architectures. This would clean the code up
even more.
2014-03-26 23:18:15 -04:00
..
i386 Compile with -Wundef. 2014-03-14 11:32:51 -07:00
powerpc Compile with -Wundef. 2014-03-14 11:32:51 -07:00
pthread Revert "Fix __PTHREAD_MUTEX_HAVE_ELISION -Wundef warning" 2014-03-17 20:40:33 +00:00
s390 Compile with -Wundef. 2014-03-14 11:32:51 -07:00
sh Compile with -Wundef. 2014-03-14 11:32:51 -07:00
sparc Compile with -Wundef. 2014-03-14 11:32:51 -07:00
unix/sysv/linux Fix dwarf2 unwinding through futex functions. 2014-03-26 23:18:15 -04:00
x86_64 Compile with -Wundef. 2014-03-14 11:32:51 -07:00