Skip to content

Commit

Permalink
backtrace speed improved
Browse files Browse the repository at this point in the history
  • Loading branch information
samsk committed Sep 10, 2015
1 parent 820ef2c commit 43032e0
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

0.4.0b2 Mon Aug 3 22:14:21 CEST 2015
0.4.0 Thu Sep 10 08:52:33 CEST 2015
- libunwind backtracing performance optimized

0.4.0b Sun Aug 2 22:20:42 CEST 2015
- use libunwind for backtrace if available
- scripts modified to support decoding of libuwind based backtrace
- scripts modified to support decoding of libunwind based backtrace

0.3.0 Sun Nov 23 21:12:54 CET 2014
- add manpages
Expand Down
2 changes: 1 addition & 1 deletion include/log-malloc2.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* log-malloc2
* Malloc logging library with backtrace and byte-exact memory tracking.
*
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2014
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2015
*
* License: GNU LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
*
Expand Down
2 changes: 1 addition & 1 deletion include/log-malloc2_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* log-malloc2_util
* Helper function, all inlined, no linking required.
*
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2014
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2015
*
* License: MIT (http://opensource.org/licenses/MIT) (free to use, modify, relicense...)
*
Expand Down
18 changes: 10 additions & 8 deletions scripts/backtrace2line.pl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# log-malloc2 / backtrace2line
# Translate backtrace() output into functions, file names and line numbers (supports ASLR)
#
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
#
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
#
Expand Down Expand Up @@ -303,7 +303,7 @@ ($$$@)
{
if($WARNING == 0 && !%libs)
{
warn("WARNING: incomplete SYMBOL (without libname), but no --pid or --maps-file provided!\n");
warn("WARNING: incomplete SYMBOL (without libname), but no --pid or --maps-file provided !\n");
$WARNING = 1;
}

Expand Down Expand Up @@ -527,23 +527,25 @@ =head1 OPTIONS
=item B<--pid> I<PID>
Pid of a B<still> running process, that generated given backtrace (needed only if ASLR active). Pid
is esed to get process memory map (from /proc/<pid>/maps).
Pid of a B<still> running process, that generated given backtrace (needed only if ASLR active or
if backtrace sumbol contains no library, like when libunwind is used).
Pid is used to get process memory map (from /proc/<pid>/maps).
=item B<-m> I<MAPS-FILE>
=item B<--maps-file> I<MAPS-FILE>
Path to a file with process memory map of a backtraced process. This is required if if ALSR is
active. Data from maps file are also used to find full path of the application/libraries from
symbol(s).
Path to a file with process memory map of a backtraced process. This is required if ALSR is
active or if backtrace has been generated by libunwind.
Data from maps file is used to identify functions location (IP is checked against mapped range)
or to find full path of the application/libraries from symbol(s).
=item B<-wd> I<WORK-DIR>
=item B<--work-dir> I<WORK-DIR>
Original work or start dir of backtraced process (needed only if backtrace contains relative paths,
and maps files has not been provided).
and maps file has not been provided).
=item B<--demangle> I<STYLE>
Expand Down
2 changes: 1 addition & 1 deletion scripts/log-malloc-findleak.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# log-malloc2 / findleak
# Find memory leaks in log-malloc trace file
#
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
#
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/log-malloc-trackusage.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# log-malloc2 / trackusage
# Outputs memory usage
#
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
#
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/log-malloc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# log-malloc2
# Execute command with log-malloc tracer enabled
#
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
#
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
#
Expand Down
2 changes: 1 addition & 1 deletion scripts/log-malloc.pm.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# log-malloc2 / config module
# Config module
#
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
#
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
#
Expand Down
2 changes: 1 addition & 1 deletion src/log-malloc2.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* log-malloc2
* Malloc logging library with backtrace and byte-exact memory tracking.
*
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2014
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2015
* partialy based on log-malloc from Ivan Tikhonov
*
* License: GNU LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
Expand Down
2 changes: 1 addition & 1 deletion src/log-malloc2_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* log-malloc2 API
* Malloc logging library with backtrace and byte-exact memory tracking.
*
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
*
* License: GNU LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
*
Expand Down
2 changes: 1 addition & 1 deletion src/log-malloc2_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* log-malloc2 API
* Malloc logging library with backtrace and byte-exact memory tracking.
*
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
*
* License: GNU LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
*
Expand Down

0 comments on commit 43032e0

Please sign in to comment.