summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/tdesdk/debian/man/kmtrace.1
blob: 14f5f9fc8be351f2cf9e2edebfc3f717569e569c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
.\"                                      Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH KMTRACE 1 "February 25, 2003"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh        disable hyphenation
.\" .hy        enable hyphenation
.\" .ad l      left justify
.\" .ad b      justify to both left and right margins
.\" .nf        disable filling
.\" .fi        enable filling
.\" .br        insert line break
.\" .sp <n>    insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
kmtrace \- a TDE memory leak tracer
.SH SYNOPSIS
.B kmtrace
[ \fIgeneric-options\fP ]
[ \fB\-x, \-\-exclude\fP \fIfile\fP ]
[ \fB\-e, \-\-exe\fP \fIfile\fP ]
[ \fB\-t, \-\-tree\fP \fIfile\fP
[ \fB\-\-th, \-\-treethreshold\fP \fIvalue\fP ]
[ \fB\-\-td, \-\-treedepth\fP \fIvalue\fP ]]
[ \fItrace-log\fP ]
.SH DESCRIPTION
\fBKMtrace\fP is a TDE tool to assist with malloc debugging using
glibc's "mtrace" functionality. Unfortunately the mtrace that is part of
current (9/9/2000) glibc versions only logs the return-address of the
malloc/free call. The library included with KMtrace
logs a complete backtrace upon malloc/free.
.PP
KMtrace will investigate the trace log specified on the command line,
or \fIktrace.out\fP if no trace log is specified.
.PP
This utility is part of the TDE Software Development Kit.
.SH OPTIONS
Below are the kmtrace-specific options.
For a full summary of options, run \fIkmtrace \-\-help\fP.
.TP
\fB\-x, \-\-exclude\fP \fIfile\fP
File containing symbols to exclude from output.
.TP
\fB\-e, \-\-exe\fP \fIfile\fP
Executable to use for looking up unknown symbols.
.TP
\fB\-t, \-\-tree\fP \fIfile\fP
Write a tree of the allocations to the given file.
.TP
\fB\-\-th, \-\-treethreshold\fP \fIvalue\fP
When writing the allocations tree, hide subtrees allocating less than the
given memory amount.
.TP
\fB\-\-td, \-\-treedepth\fP \fIvalue\fP
When writing the allocations tree, hide subtrees that are deeper than the
specified depth.
.SH SEE ALSO
.BR demangle (1),
.BR kminspector (1),
.BR kmmatch (1).
.PP
Much more extensive documentation can be found in
\fI/usr/share/doc/kmtrace/README\fP.
.SH AUTHOR
KMtrace was written by Waldo Bastian <[email protected]>,
Mike Haertel <[email protected]> and Andi Kleen <[email protected]>.
.br
This manual page was prepared by Ben Burton <[email protected]>
for the Debian GNU/Linux system (but may be used by others).