History log of /system/core/libutils/ProcessCallStack.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8da9613b3f866b298bee1236b80bbbc63c554fdf 14-Apr-2017 Steven Moreland <smoreland@google.com> libutils: include what you use

These includes are included transitively by liblog, but not by the VNDK
version of liblog.

Bug: 33241851
Test: links with BOARD_VNDK_VERSION := current
Change-Id: Ide4aee3cacad2a2bf6bd0cbdf0254c6c245f4020
/system/core/libutils/ProcessCallStack.cpp
d21cfab2446f07945b822641681e6b59c839158d 10-Mar-2017 Steven Moreland <smoreland@google.com> Add missing includes.

Includes are transitively imported by <string> in String8.h + String16.h
but that include is being removed.

Test: pass
Change-Id: Ide5c011b40b4a4f031dd26ead08b5c8d5d299693
/system/core/libutils/ProcessCallStack.cpp
22dbf3947fedf988e714a4703ddf85fc41413f90 01-Mar-2017 Mathias Agopian <mathias@google.com> clean-up libutils includes

moved Foo.h as first include of Foo.cpp, and
removed redundant includes.

Made NativeHandle non virtual.


Test: run & compile
Bug: n/a

Change-Id: I37fa746cd42c9ba23aba181f84cb6c619386406a
/system/core/libutils/ProcessCallStack.cpp
9f206938edc2243e4e4f5de74d67e15befd95576 28-Sep-2016 Elliott Hughes <enh@google.com> Use readdir instead of readdir_r.

http://elliotth.blogspot.com/2012/10/how-not-to-use-readdirr3.html

Test: boots.
Change-Id: If75532e24fe4d17743bf8e8c9590156dee378a63
/system/core/libutils/ProcessCallStack.cpp
588a2cad7faee54bfb16050d0c7398709f304fea 18-Feb-2016 James Hawkins <jhawkins@google.com> system/core: Cleanup direct calls to opendir by containing in a
std::unique_ptr.

Bug: 26643633
Change-Id: Ia3491fdbff086558da694ae949cf08e4c89d0307
/system/core/libutils/ProcessCallStack.cpp
86cf941c480de8d5693a24d3feb45574f5c89a86 04-Feb-2016 Dan Willemsen <dwillemsen@google.com> Fix windows 64-bit builds

pid_t is 64-bit in 64-bit mingw, but the windows process/thread
functions return a DWORD(uint32_t). Instead of promoting to a pid_t and
fixing the format strings, just use a uint32_t to store the values.

android_thread_id also cannot be a 64-bit pointer, so for windows just
force it to be a uint32_t.

libutils/ProcessCallStack only works under Linux, since it makes heavy
use of /proc. Don't compile it under Windows or Darwin.

Bug: 26957718
Change-Id: I4e43e7cf18a96f22b3a9a08dbab8c3e960c12930
/system/core/libutils/ProcessCallStack.cpp
6ed68cc412752e4c78755df9a1516e610ec66fa8 30-Jun-2015 Elliott Hughes <enh@google.com> Consistently use strerror in libutils.

It's easier for people to debug, and side-steps the problem that errno
values differ between architectures.

Bug: http://b/17458391
Change-Id: I1db9b2cbb653839d3936b91e37e5cff02671318a
/system/core/libutils/ProcessCallStack.cpp
63fbdb6440ce5009ef0bfd3d1e1cc60b46004973 19-Aug-2014 Igor Murashkin <iam@google.com> libutils: Don't segfault ProcessCallStack when getting thread name fails

There's an inherent race in trying to read out the thread name from
the system and the thread closing out on its own (and thus being removed
from procfs).

Try to handle this by formatting the thread name unconditionally with
the tid when getting the thread name fails (instead of dereferencing
NULL and crashing).

Bug: 15406837
Change-Id: Ibf2208b8ce345589e7e9c57e6a307728d1121c5d
/system/core/libutils/ProcessCallStack.cpp
9b0e074c6d38143e01616404a08b0c7aa992f3c3 01-Nov-2013 Christopher Ferris <cferris@google.com> Move CallStack to libbacktrace.

Fix a small bug in the Printer for strings that didn't properly
prepend the prefix.

Change-Id: I33c63841ef6e07728ab3195886539d82b38ee19a
/system/core/libutils/ProcessCallStack.cpp
e65b7ea8801145626504c724c28aedd0e5038a28 31-Oct-2013 Igor Murashkin <iam@google.com> utils: Fix broken sdk build on windows

Bug: 11324229
Change-Id: Ia50e79b5e2430faea77b0c98902e8e018fb9ceff
/system/core/libutils/ProcessCallStack.cpp
81f2c3d2117cfe7307ee6efbd82567bd02950965 31-Oct-2013 Igor Murashkin <iam@google.com> utils: Fix broken build

Bug: 11324229
Change-Id: I7e4f514c5531e4c0c11bb0ba5d67e4dabbcd5792
/system/core/libutils/ProcessCallStack.cpp
ec79ef2e7b6b1d81266637ca0e002b5c0c5a789b 25-Oct-2013 Igor Murashkin <iam@google.com> utils: Add ProcessCallStack to collect stack traces for all threads in a process

- Also add a Printer class (print lines to logcat, fd, or strings)

Bug: 11324229
Change-Id: I78435ed49aa196a0efb45bf9b2d58b62c41737d3
/system/core/libutils/ProcessCallStack.cpp