| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| |
| | |
Merge commit 'd7dc91d749b920734c9e9f0a21c7c7e9672ef8b6'
* commit 'd7dc91d749b920734c9e9f0a21c7c7e9672ef8b6':
Add new trace tool for displaying all the memory regions in a process.
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit 'b260872ea4ab52286e1abfa4e79d12feb3d46253'
* commit 'b260872ea4ab52286e1abfa4e79d12feb3d46253':
Add support for native (JNI) calls to the trace tools.
|
| |
| |
| |
| |
| | |
Also fix a bug in profile_pid.cpp and add better output to
stack_dump.cpp.
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit 'b08d3a396914b1aaba1270a9021289bdbe3cac5f'
* commit 'b08d3a396914b1aaba1270a9021289bdbe3cac5f':
Handle munmap() and add support for tracing JNI (native) calls.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The munmap() kernel calls are traced but the tracing code wasn't doing
anything with them. This caused the number of mapped regions in a process
to grow large in some cases and also caused symbol lookup errors in some
rare cases. This change also adds support for new trace record types
for supporting JNI (native) calls from Java into native code. This helps
with constructing a more accurate call stack.
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit 'bba5ffb847d10a65ce323f3c607f9f842c21e0c1'
* commit 'bba5ffb847d10a65ce323f3c607f9f842c21e0c1':
Add a new program for checking the correctness of the computed stack from a trace.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
trace.
The check_stack program checks that the generated stack that includes both
native functions and Java methods (generated from the emulator instruction
trace plus the method trace) is consistent with the stack of Java methods
that is computed from the method trace alone. (The method trace is
generated by the Dalvik interpreter).
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit 'e14d320465bc14fd413c3e735643fccb7020db2b'
* commit 'e14d320465bc14fd413c3e735643fccb7020db2b':
Better output for viewing the method trace.
|
| |
| |
| |
| |
| |
| | |
This now keeps track of the names of the methods on the stack instead
of just the addresses. This makes it easier to debug when something goes
wrong.
|
|\ \
| |/
| |
| |
| |
| |
| |
| | |
Merge commit '6b56383a3a9f086700436269e10602bb234cc25d'
* commit '6b56383a3a9f086700436269e10602bb234cc25d':
Fix the tracing code that keeps track of the Java method stack.
Add a "-d time" option to stack_dump to dump the stack at the given time.
|
| |
| |
| |
| |
| |
| |
| | |
This fixes a bug that was causing a "stack overflow" because it sometimes
wasn't popping off a Java method when it should have. I also changed the
showStack() method so that instead of always printing to stderr, you can
pass in a FILE* object to print to.
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '2822ae37115ebf13412bbef91339ee0d9454525e'
* commit '2822ae37115ebf13412bbef91339ee0d9454525e':
Fix compiler warnings by changing "char*" to "const char*".
|
| | |
|
|\ \
| |/
| |
| |
| |
| |
| | |
Merge commit '5ea0a9436cda662264cc0dcf92d3559d532383bb'
* commit '5ea0a9436cda662264cc0dcf92d3559d532383bb':
Fix a memory deallocation error that was crashing q2dm.
|
| |
| |
| |
| | |
Also fix a bunch of compile warnings by changing "char *" to "const char *".
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
'const char*' in C++ so that the code builds on gcc-4.4
ISO C++ overloads strchr() so that strchr(const char*) return 'const
char*' and strchr(char *) return 'char *'.
Since DmTrace::parseAndAddFunction really wants to write to its 'const
char *name' argument I just casted a pointer pointing inside of 'name' to 'char*'
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
'const char*' to make the code build on gcc-4.4.
The C++ spec overloads string fucntions like strtsr and rindex so that
rindex(char *) returns 'char*' and rindex(const char*) returns 'const
char*'.
Without this patch you get an "invalid conversion from ‘const char*’ to
‘char*’" error on gcc-4.4
|
|\ \
| |/ |
|
| | |
|
|/
|
|
|
|
| |
Fixes build with gcc 4.3.2 on Debian.
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
|
|
|