Skip to content

Commit 43032e0

Browse files
committed
backtrace speed improved
1 parent 820ef2c commit 43032e0

File tree

11 files changed

+21
-19
lines changed

11 files changed

+21
-19
lines changed

ChangeLog

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

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

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

99
0.3.0 Sun Nov 23 21:12:54 CET 2014
1010
- add manpages

include/log-malloc2.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* log-malloc2
55
* Malloc logging library with backtrace and byte-exact memory tracking.
66
*
7-
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2014
7+
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2015
88
*
99
* License: GNU LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
1010
*

include/log-malloc2_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* log-malloc2_util
55
* Helper function, all inlined, no linking required.
66
*
7-
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2014
7+
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2015
88
*
99
* License: MIT (http://opensource.org/licenses/MIT) (free to use, modify, relicense...)
1010
*

scripts/backtrace2line.pl

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# log-malloc2 / backtrace2line
44
# Translate backtrace() output into functions, file names and line numbers (supports ASLR)
55
#
6-
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
6+
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
77
#
88
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
99
#
@@ -303,7 +303,7 @@ ($$$@)
303303
{
304304
if($WARNING == 0 && !%libs)
305305
{
306-
warn("WARNING: incomplete SYMBOL (without libname), but no --pid or --maps-file provided!\n");
306+
warn("WARNING: incomplete SYMBOL (without libname), but no --pid or --maps-file provided !\n");
307307
$WARNING = 1;
308308
}
309309

@@ -527,23 +527,25 @@ =head1 OPTIONS
527527
528528
=item B<--pid> I<PID>
529529
530-
Pid of a B<still> running process, that generated given backtrace (needed only if ASLR active). Pid
531-
is esed to get process memory map (from /proc/<pid>/maps).
530+
Pid of a B<still> running process, that generated given backtrace (needed only if ASLR active or
531+
if backtrace sumbol contains no library, like when libunwind is used).
532+
Pid is used to get process memory map (from /proc/<pid>/maps).
532533
533534
=item B<-m> I<MAPS-FILE>
534535
535536
=item B<--maps-file> I<MAPS-FILE>
536537
537-
Path to a file with process memory map of a backtraced process. This is required if if ALSR is
538-
active. Data from maps file are also used to find full path of the application/libraries from
539-
symbol(s).
538+
Path to a file with process memory map of a backtraced process. This is required if ALSR is
539+
active or if backtrace has been generated by libunwind.
540+
Data from maps file is used to identify functions location (IP is checked against mapped range)
541+
or to find full path of the application/libraries from symbol(s).
540542
541543
=item B<-wd> I<WORK-DIR>
542544
543545
=item B<--work-dir> I<WORK-DIR>
544546
545547
Original work or start dir of backtraced process (needed only if backtrace contains relative paths,
546-
and maps files has not been provided).
548+
and maps file has not been provided).
547549
548550
=item B<--demangle> I<STYLE>
549551

scripts/log-malloc-findleak.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# log-malloc2 / findleak
33
# Find memory leaks in log-malloc trace file
44
#
5-
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
5+
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
66
#
77
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
88
#

scripts/log-malloc-trackusage.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# log-malloc2 / trackusage
33
# Outputs memory usage
44
#
5-
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
5+
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
66
#
77
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
88
#

scripts/log-malloc.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# log-malloc2
33
# Execute command with log-malloc tracer enabled
44
#
5-
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
5+
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
66
#
77
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
88
#

scripts/log-malloc.pm.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# log-malloc2 / config module
33
# Config module
44
#
5-
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
5+
# Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
66
#
77
# License: GNU GPLv3 (http://www.gnu.org/licenses/gpl.html)
88
#

src/log-malloc2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* log-malloc2
33
* Malloc logging library with backtrace and byte-exact memory tracking.
44
*
5-
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2014
5+
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2011-2015
66
* partialy based on log-malloc from Ivan Tikhonov
77
*
88
* License: GNU LGPLv3 (http://www.gnu.org/licenses/lgpl.html)

src/log-malloc2_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* log-malloc2 API
33
* Malloc logging library with backtrace and byte-exact memory tracking.
44
*
5-
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2014
5+
* Author: Samuel Behan <_samuel_._behan_(at)_dob_._sk> (C) 2013-2015
66
*
77
* License: GNU LGPLv3 (http://www.gnu.org/licenses/lgpl.html)
88
*

0 commit comments

Comments
 (0)