History log of /system/core/include/backtrace/Backtrace.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c463ba45c42b4e2d8ce30c02a626d7183102f46e 09-Mar-2016 Christopher Ferris <cferris@google.com> Add error reporting mechanism for failing Unwind.

Remove the logging of an error if a thread disappears before the unwind
can begin. This can happen, so allow the caller to determine if this
is really a problem worth logging.

Bug: 27449879

(cherry picked from commit 206a3b9798e3622c906a3cafdb113c271c1c927c)

Change-Id: If9e7cfeb6eb7b122679a734c1a9eacee8354ef18
/system/core/include/backtrace/Backtrace.h
9e402bb20cb868577e5588d8323363411655291b 22-Sep-2015 Yabin Cui <yabinc@google.com> Revert "Revert "Revert "Revert "Add BacktraceOffline for offline backtracing.""""

This reverts commit 94ece83270deca76c69f5755f8c0ff5c859341fd.

Change-Id: Ie06465c89a5fc115517130f9f2904cc855973155
/system/core/include/backtrace/Backtrace.h
94ece83270deca76c69f5755f8c0ff5c859341fd 22-Sep-2015 Yabin Cui <yabinc@google.com> Revert "Revert "Revert "Add BacktraceOffline for offline backtracing."""

This reverts commit 0a411c934a81e5c77a27ef5b69d391038f36e969.

Change-Id: Ic1824afac6c32f1087b66de9d6368a561f235d13
/system/core/include/backtrace/Backtrace.h
0a411c934a81e5c77a27ef5b69d391038f36e969 19-Sep-2015 Yabin Cui <yabinc@google.com> Revert "Revert "Add BacktraceOffline for offline backtracing.""

This reverts commit ab5e583327e4dfd9f7c38ab6ed4c4714508ce544.

And statically link llvm libraries on host to remove dependency
on 32-bit llvm shared library which is not included in the prebuilt.

Bug: 22229391

Change-Id: I8210687655ee1809fd820ab2a6ca5dfaf3f9096d
/system/core/include/backtrace/Backtrace.h
ab5e583327e4dfd9f7c38ab6ed4c4714508ce544 18-Sep-2015 Yabin Cui <yabinc@google.com> Revert "Add BacktraceOffline for offline backtracing."

Using llvm makes libbacktrace stops building for 32 bit on linux host x86_64.

This reverts commit c9c6b6ee7735f014771d81615c0278b53d14f61c.

Change-Id: Ieb807db881d7bb3132cd09e25fd08c28766ca0a8
/system/core/include/backtrace/Backtrace.h
c9c6b6ee7735f014771d81615c0278b53d14f61c 14-Aug-2015 Yabin Cui <yabinc@google.com> Add BacktraceOffline for offline backtracing.

It is used by simpeleprf for stack unwinding.

Bug: 22229391
Change-Id: I26d698610ccdc9545da837bc5a8a9ec787f27a6b
/system/core/include/backtrace/Backtrace.h
2c43cff01d1271be451671567955158629b23670 27-Mar-2015 Christopher Ferris <cferris@google.com> Refactor the code.

The object hierarchy was confusing and convoluted. This removes
a lot of unnecessary code, and consolidates the BacktraceCurrent
and BacktraceThread code into BacktraceCurrent.

Change-Id: I01c8407d493712a48169df49dd3ff46db4a7c3ae
/system/core/include/backtrace/Backtrace.h
2b4a63fc6a4bfc6db69901258539276b888c7ec4 17-Mar-2015 Christopher Ferris <cferris@google.com> Add variable length read to Backtrace.

Included tests for this new feature.

Changed the NULLs to nullptr in backtrace_test.

Changed UniquePtr to std::unique_ptr in backtrace_test.

Change-Id: I92375465b8f8ba84589834cc162db5915bf1be81
/system/core/include/backtrace/Backtrace.h
12385e3ad085aa1ac06c26529b32b688503a9fcf 06-Feb-2015 Christopher Ferris <cferris@google.com> Move map data into backtrace data proper.

The backtrace structure used to include a pointer to a backtrace_map_t
that represented the map data for a particular pc. This introduced a
race condition where the pointer could be discarded, but the backtrace
structure still contained a pointer to garbage memory. Now all of the map
information is right in the structure.

Bug: 19028453
Change-Id: If7088a73f3c6bf1f3bc8cdd2bb4b62e7cab831c0
/system/core/include/backtrace/Backtrace.h
afa9c9cd725c081e7286f09937a41ae9c28853d6 09-May-2014 Christopher Ferris <cferris@google.com> Fix ucontext_t forward declare for mac.

Change-Id: I30470f5cc25553dee25d4858f64ec5af13aa20c9
/system/core/include/backtrace/Backtrace.h
b138037b266487e79c729d9daae94ed31b93e550 09-May-2014 Christopher Ferris <cferris@google.com> Fix mac build.

Forward declare ucontext_t so that it's not necessary for ucontext.h
to be included in the global header.

Change-Id: Ic13677dd572ab1acd927f0a17b284f9b417a642f
/system/core/include/backtrace/Backtrace.h
a2efd3ac7abe223aa7a8ba8b5ba448216c4953b4 07-May-2014 Christopher Ferris <cferris@google.com> Rewrite unwind thread handling.

This new version doesn't require any specialized thread
implementation, it uses the Current implementation to do its job.
In addition, it runs much faster when multiple threads are trying
to unwind at the same time since the global signal lock is held for
only a small amount of time. Even running through the threads one at
a time should be faster since it no longer requires two passes through
the unwound stacks.

The new code now allows multiple simultaneous unwinds of the
same thread.

Finally, add the ability to unwind from a ucontext_t passed in. This
functionality doesn't work for remote unwinds yet.

Change-Id: I4d181d7ca5ffd2acfd1686e668e6d21e36b425cb
/system/core/include/backtrace/Backtrace.h
c6c194ced095df5e777b8fa24527ebd29c8fef54 21-Nov-2013 Pavel Chupin <pavel.v.chupin@intel.com> LP64: Enable debuggerd/libbacktrace/libunwind.

Change-Id: I2e432839f86c33c2adbaac8cc12ca8961956044b
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
/system/core/include/backtrace/Backtrace.h
df2906186b6952c57b1f662bfef0b65c9f8c2e0d 23-Jan-2014 Christopher Ferris <cferris@google.com> Re-enable libunwind for arm.

Update to handle the new optimized way that libunwind works.

In addition, a small refactor of the BacktraceMap code.

A few new tests of for good measure.

Change-Id: I2f9b4f5ad5a0dfe907b31febee76e4b9b94fb76f
/system/core/include/backtrace/Backtrace.h
46756821c4fe238f12a6e5ea18c356398f8d8795 15-Jan-2014 Christopher Ferris <cferris@google.com> Rewrite libbacktrace to be all C++.

This includes removing the map_info.c source and replacing it with the
BacktraceMap class to handle all map related code.

Change all callers of libbacktrace map functionality.

Also modify the corkscrew thread code so that it doesn't need to build
the map twice (once in the corkscrew format and once in the libbacktrace
format).

Change-Id: I32865a39f83a3dd6f958fc03c2759ba47d12382e
/system/core/include/backtrace/Backtrace.h
20303f856f1f1cdb5af58af0b116b8c598f0ea5c 11-Jan-2014 Christopher Ferris <cferris@google.com> Next phase of the move, reformat use C++ features.

Use the libbacktrace C++ interface instead of the C interface in debuggerd.

Reformat the debuggerd code to be closer to Google C++ style.

Fix all debuggerd casts to be C++ casts.

Add a frame number to the frame data structure for ease of formatting and
add another FormatFrameData function.

Change the format_test to use the new FormatFrameData function.

Modify all of the backtrace_test to use the C++ interface.

Change-Id: I10e1610861acf7f4a3ad53276b74971cfbfda464
/system/core/include/backtrace/Backtrace.h
9846497f7926fc3240c2893d89e60880c22d1fd6 07-Jan-2014 Christopher Ferris <cferris@google.com> Refactor to share map_info amongst threads.

Allow the use of the same map info to be shared when getting information on
multiple threads from the same pid.

Change-Id: I2e460e20154a10f4894ae563331fb32179e4551f
/system/core/include/backtrace/Backtrace.h
8ed46278bee3cfc4c216f3a1524744019b693200 29-Oct-2013 Christopher Ferris <cferris@google.com> More libbacktrace fixes.

Included in minor fix ups is the addition of a warning macro to replace
all of the ALOGW calls.

Fix a race where multiple threads could be attempting to unwind the threads
of the current process at the same time.

Bug: 8410085

Change-Id: I02a65dc778dde690e5f95fc8ff069a32d0832fd1
/system/core/include/backtrace/Backtrace.h
17e91d44edf5e6476a477a200bcd89d4327358a3 21-Oct-2013 Christopher Ferris <cferris@google.com> Rewrite libbacktrace using C++.

The old code was essentially trying to be C++ in C and was awkward. This
change makes it all objects with a thin layer that C code can use.

There is a C++ backtrace object that is not very useful, this code will
replace it.

This change also includes moving the backtrace test to a gtest, and adding
coverage of all major functionality.

Bug: 8410085
Change-Id: Iae0f1b09b3dd60395f71ed66010c1ea5cdd37841
/system/core/include/backtrace/Backtrace.h