History log of /external/libunwind/tests/Gtest-trace.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6b55e0ab51eee7dbea679fda2b37ecf61f0025e5 19-Sep-2012 Tommi Rantala <tt.rantala@gmail.com> Use `UNUSED' in tests
/external/libunwind/tests/Gtest-trace.c
0d7738ed4f7dae1b6b77d1a4dd25c5ea765de81f 17-Sep-2012 Tommi Rantala <tt.rantala@gmail.com> Cleanup dynamically allocated memory before exit in tests

Cleanup dynamically allocated memory before exit in tests in a few
places where missing. While such cleanups right before exit do not
usually make much sense (as the operating system would cleanup anyway,
so manual cleanups only burn CPU cycles), we will want to catch any
potential problems in libunwind related to the cleanups. This also stops
valgrind complaining about unreleased memory.
/external/libunwind/tests/Gtest-trace.c
7673df21ffea216bcdee9efc551cfc4462ea35e9 12-Sep-2012 Tommi Rantala <tt.rantala@gmail.com> Annotate potentially unused variable in tests/Gtest-trace.c

tests/Gtest-trace.c: In function 'sighandler':
tests/Gtest-trace.c:179:15: warning: unused variable 'uc' [-Wunused-variable]
/external/libunwind/tests/Gtest-trace.c
f42a8de0fa4b99c04e38a35bb5fd48a1ba9188b8 02-Aug-2012 Tommi Rantala <tt.rantala@gmail.com> Annotate unused parameters in tests

Compiling the tests with -Wextra results to lots of warnings for unused
parameters. Annotate these cases with the `unused' attribute to avoid
the warnings.
/external/libunwind/tests/Gtest-trace.c
4bf1b7195223ea68c7ed6a24f4f826be02d8bec0 31-Jul-2012 Tommi Rantala <tt.rantala@gmail.com> Use unw_context_t instead of ucontext_t in tests/Gtest-trace.c and tests/Gtest-bt.c

At least on ARM unw_context_t and ucontext_t are not the same types, so
use unw_context_t.

See also commit 24112f6d9b87554fe18b1ca0f939f30c76ac38fa ("Fix some test
failures on x86_64 on distros with small default stacks.")

Gtest-trace.c: In function 'do_backtrace':
Gtest-trace.c:66:3: warning: initialization from incompatible pointer type [enabled by default]
Gtest-trace.c:67:3: warning: passing argument 2 of '_Uarm_init_local' from incompatible pointer type [enabled by default]
../include/libunwind-common.h:239:1: note: expected 'struct unw_context_t *' but argument is of type 'struct ucontext_t *'

Gtest-bt.c: In function 'do_backtrace':
Gtest-bt.c:65:3: warning: initialization from incompatible pointer type [enabled by default]
Gtest-bt.c:66:3: warning: passing argument 2 of '_Uarm_init_local' from incompatible pointer type [enabled by default]
../include/libunwind-common.h:239:1: note: expected 'struct unw_context_t *' but argument is of type 'struct ucontext_t *'
/external/libunwind/tests/Gtest-trace.c
9158e522db2f3d5675438b535000ce862259f14d 31-Jul-2012 Tommi Rantala <tt.rantala@gmail.com> Fix IP vs. PC confusion in tests on ARM

The intention in the test cases is to print the "instruction pointer"
value at certain places, and on ARM we will want to get the Program
Counter in these cases. IP is a scratch register, and not very
interesting.
/external/libunwind/tests/Gtest-trace.c
a06f189baf4080374729299516b3b9f8ce60dd25 31-Jul-2012 Tommi Rantala <tt.rantala@gmail.com> Rip out AC_TYPE_SIGNAL and sighandler_t check

AC_TYPE_SIGNAL is an obsolete autoconf macro, and we were not using
sighandler_t or RETSIGTYPE for anything anyways.
/external/libunwind/tests/Gtest-trace.c
a624812e2aef371b3901c44cc3201e5afdb01b60 06-Apr-2011 Ken Werner <ken.werner@linaro.org> ARM: tests/Gtest-trace.c - IP printing

Print the instruction pointer on ARM as well.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
/external/libunwind/tests/Gtest-trace.c
e4593e2493923f93dfa6c92ee5327b4ce577a818 01-Apr-2011 Ken Werner <ken.werner@linaro.org> Increase alternate signal stack size.

Creating an alternate signal stack with a size of SIGSTKSZ (usually 8k) is
not enough on some targets because unw_cursor_t is bigger than that already.
Since the size of unw_cursor_t is part of the ABI the UNW_TDEP_CURSOR_LEN
can't be changed without breaking existent code. Therefore size of the
alternate signal stack has been increased to 1 MiB.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
/external/libunwind/tests/Gtest-trace.c
5f38f35d5d6c78aafa6da20845d9ceff74af00f8 01-Apr-2011 Lassi Tuura <lat@cern.ch> Drop a call frame in tdep_trace and avoid a call to unw_step.

Dropping the extra frame for unw_backtrace itself using unw_step is
approximately 15% slower than skipping the frame in tdep_trace. So
drop the frame in the latter, and make the function a private
implementation detail for libunwind, not an exported interface.

Also moves unw_getcontext call back into unw_backtrace to avoid an
extra call frame in case slow_backtrace does not get inlined into
unw_backtrace.
/external/libunwind/tests/Gtest-trace.c
27d0dbfecb25c3bacaaaebf47b5ee2072a334aa6 25-Mar-2011 Arun Sharma <asharma@fb.com> Ensure tests pass on 32 bit x86.
/external/libunwind/tests/Gtest-trace.c
3b9fd99cb78383e0ce8cd1a31e3b824a30ef965e 25-Mar-2011 Lassi Tuura <lat@iki.fi> Assign copyright as requested by the author.
/external/libunwind/tests/Gtest-trace.c
7ff83c051e33de1adbcbc20bf63ea368c2745a70 25-Mar-2011 Arun Sharma <asharma@fb.com> Fix up compilation and test failures
/external/libunwind/tests/Gtest-trace.c
9e98f15e9aee12e67cd5956d06ccb559f6a06213 19-Mar-2011 Lassi Tuura <lat@iki.fi> Fast back-trace for x86_64 for only collecting the call stack.

Adds new function to perform a pure stack walk without unwinding,
functionally similar to backtrace() but accelerated by an address
attribute cache the caller maintains across calls.
/external/libunwind/tests/Gtest-trace.c