History log of /external/libunwind/src/ia64/Gscript.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7d471b144013924f8d80e532a693fb77dbe73c2b 19-Sep-2012 Tommi Rantala <tt.rantala@gmail.com> Define and use `CONST_ATTR'
/external/libunwind/src/ia64/Gscript.c
e61c6f69c30d85584ece5250b8b82b03898384f5 15-Aug-2012 Tommi Rantala <tt.rantala@gmail.com> Fix function name duplication in Debug() output

Fix function name duplication in Debug() output that was caused by
manually prepending the debug message with the function name.
/external/libunwind/src/ia64/Gscript.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/ia64/Gscript.c
ec53de82ec7c00adb56c9e8b1b03d489a69c494b 16-Mar-2009 Arun Sharma <aruns@google.com> [PATCH] Avoiding name conflict with the GNU-specific dprintf in stdio.h

Signed-off-by: Yang Zhang <yaaang@gmail.com>
/external/libunwind/src/ia64/Gscript.c
ee6eeb4f7d7066e183762ac016a05f6098552ba6 20-May-2005 hp.com!davidm <hp.com!davidm> (get_script_cache): Use HAVE_ATOMIC_H instead of __linux && __KERNEL__.

(Logical change 1.294)
/external/libunwind/src/ia64/Gscript.c
23405d02ec4fcd6d1a38ed51b2e7295e83eced3e 03-May-2005 hp.com!davidm <hp.com!davidm> (get_script_cache): Fix typo in Debug() statement (missing argument).
(put_script_cache): Fix typo in argument name.

2005/04/07 12:19:38-07:00 hp.com!davidm
(ia64_get_cache_proc_info): Move it to near the end of the file.
(script_init): Also call ia64_fetch_proc_info() if the script was
found in the cache but it's empty (count == 0 and NULL
unwind_info pointer). Also invoke build_script() if
script has no instructions yet (count==0). Add assertion
to ensure that build_script() never returns an empty
script.
(ia64_cache_proc_info): New function to cache the proc_info only.

2005/02/23 14:40:44-08:00 mostang.com!davidm
Adjust for sigset_t to intrmask_t renaming.

2005/02/23 13:10:05-08:00 mostang.com!davidm
Adjust for "ia64_rse" to "rse" prefix change.

(Logical change 1.290)
/external/libunwind/src/ia64/Gscript.c
f9494563e7b99c080a3a5bb006427de504a92b79 17-Aug-2004 homeip.net!davidm <homeip.net!davidm> Rename: src/ia64/Gscript-ia64.c -> src/ia64/Gscript.c

(Logical change 1.241)
/external/libunwind/src/ia64/Gscript.c
6fd20088619b83c1553755c386bd40d913fe347c 19-Dec-2002 mostang.com!davidm <mostang.com!davidm> Rename ia64_cursor -> cursor.

}(Logical change 1.32)
/external/libunwind/src/ia64/Gscript.c
793c8a3005c4c0da52d4eb098b37e25b35e98974 12-Dec-2002 mostang.com!davidm <mostang.com!davidm> Initial revision
/external/libunwind/src/ia64/Gscript.c
8f82941a848bad37d3b701cf65df2bdca78e0de2 12-Dec-2002 mostang.com!davidm <mostang.com!davidm> (script_finalize): Also initialize the proc_info.
(build_script): For signal-frames, generate an instruction that will set
is_signal_frame to TRUE.

2002/12/11 12:27:36-08:00 mostang.com!davidm
Rename: src/ia64/script.c -> src/ia64/Gscript.c

(Logical change 1.30)
/external/libunwind/src/ia64/Gscript.c