History log of /external/libunwind/src/ppc32/Gglobal.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aebba1f8a7dee9b9ae3e70128ad48de69ca90b15 21-Sep-2012 Tommi Rantala <tt.rantala@gmail.com> Apply `define_lock()'

We have a nice macro for defining pthread mutexes, use it.
/external/libunwind/src/ppc32/Gglobal.c
ee8df2628891435ebb95eee04668d5bbd6995723 19-Sep-2012 Tommi Rantala <tt.rantala@gmail.com> Constify `dwarf_to_unw_regnum_map'
/external/libunwind/src/ppc32/Gglobal.c
5d0f376b08126b51a001d7cdfba1ec4e0d644f54 21-Sep-2012 Tommi Rantala <tt.rantala@gmail.com> Invert tdep_init() flag logic

Invert the flag that signals that tdep_init() was called, to move the
symbol from data to BSS.
/external/libunwind/src/ppc32/Gglobal.c
54a096a5af6b5a9b57ac17a9485cd6069d3044af 01-Aug-2012 Tommi Rantala <tt.rantala@gmail.com> PPC: do not export dwarf_to_unw_regnum_map

dwarf_to_unw_regnum_map is internal to libunwind, and should not be
exported.
/external/libunwind/src/ppc32/Gglobal.c
84d4150668d83a98420cc91e00026159c3d74a81 21-Sep-2009 Paul Pluzhnikov <ppluzhnikov@google.com> Allow caller to block signals.

Greetings,

We use libunwind just for stack traces (I suspect many others do as well).

The use pattern is:

GetStackTrace(void** result, int max_depth)
{
...
unw_getcontext(&uc);
unw_init_local(&cursor, &uc);

while (n < max_depth) {
if (unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t *) &ip) < 0) {
break;
}
result[n++] = ip;
if (unw_step(&cursor) <= 0) {
break;
}
}

Given this usage, it is quite convenient for us to block signals (or
prevent signal handlers from re-entering libunwind by other means) at the
"top level", which makes most of the sigprocmask calls performed by
libunwind itself unneccessary.

The second patch in this series adds a configure option which removes most
of the sigprocmask calls.

Attached patch is a preliminary for it -- consolidating all of the
"sigprocmask; mutex_lock;" sequences into lock_acquire and "mutex_unlock;
sigprocmask;" sequences into lock_release.

Thanks,
--
Paul Pluzhnikov

commit 402d15b123d54a7669db7cf17a76dd315094e472
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date: Mon Sep 21 10:18:28 2009 -0700

Replace "sigprocmask + mutext_lock" with a single lock_acquire.
Likewise, replace "mutext_unlock + sigprocmask" with lock_release.
/external/libunwind/src/ppc32/Gglobal.c
9ea6af8ed5ee7b07f8de6d774bc6df2b7320f0e8 08-Oct-2007 Jose Flavio Aguilar Paulino <jflavio@br.ibm.com> [PPC32] Make PPC32 unwinding work for real.
/external/libunwind/src/ppc32/Gglobal.c
4499bb29a6214b5df5b3b21e03c6b4f3c8f26cfd 13-Sep-2007 Jose Flavio Aguilar Paulino <jflavio@br.ibm.com> [PPC32] First check-in to add preliminary support for Linux/PPC32.
/external/libunwind/src/ppc32/Gglobal.c