From b147f2b2ff21bcd31e5e0f67a13ab0c47aa7c6a7 Mon Sep 17 00:00:00 2001 From: Stefani Seibold Date: Tue, 3 Nov 2015 21:25:40 +0100 Subject: [PATCH] fix help and manual page --- mtrace-ng.1 | 6 +++++- options.c | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/mtrace-ng.1 b/mtrace-ng.1 index dd184e6..f4249b3 100644 --- a/mtrace-ng.1 +++ b/mtrace-ng.1 @@ -41,6 +41,7 @@ mtrace-ng \- A dynamic memory allocation tracer [\-D|\-\-debug \fImask\fR] [\-i|\-\-interactive] [\-l|\-\-logfile \fIfilename\fR] +[\-L|\-\-long] [\-n|\-\-nocpp] [\-N|\-\-nohwbp] [\-S|\-\-sanity] @@ -71,6 +72,7 @@ mtrace-ng \- A dynamic memory allocation tracer [\-C|\-\-cwd \fIpath\fR] [\-D|\-\-debug \fImask\fR] [\-l|\-\-logfile \fIfilename\fR] +[\-L|\-\-long] [\-n|\-\-nocpp] [\-N|\-\-nohwbp] [\-S|\-\-sanity] @@ -267,12 +269,14 @@ Use a given logfile instead of a socket connection. In trace mode all data will be written into the logfile. In the non trace mode the data will be retrieved from the logfile. This option can improve the performance of the trace since the trace will be split into to different actions. +.IP "\-L, \-\-long" +Do a long dump which includes map file as well. .IP "\-n, \-\-nocpp" Disable the trace of C++ allocation operators. This is safe and faster for libstdc++, since this library does call malloc() and free() inside the allocation operators. .IP "\-N, \-\-nohwbp" Disable the usage of hardware breakpoints. This options is intended for some -virtual machines, where hardware breakpoints not working. +virtual machines, where hardware breakpoints do not work well. .IP "\-p, \-\-pid \fIpid" Attach to the process with the process ID \fIpid\fR and begin tracing. This option can be used together with passing a command to execute. diff --git a/options.c b/options.c index cf16098..4234d83 100644 --- a/options.c +++ b/options.c @@ -95,7 +95,7 @@ static void usage(void) " -O, --omit=FILE do not place breakpoint in this file\n" " -k, --kill abort mtrace-ng due unexpected error conditon\n" " -l, --logfile use log file instead of socket connection\n" - " -L, --long long dump including map filename\n" + " -L, --long long dump includes map filename\n" " -n, --nocpp disable trace of c++ allocation operators (faster for libstdc++)\n" " -N, --nohwbp disable hardware breakpoint support\n" #ifndef DISABLE_CLIENT @@ -106,7 +106,8 @@ static void usage(void) " -r, --remote=addr remote use address (path, address or host)\n" #ifndef DISABLE_CLIENT " -s, --sort-by=type sort dump by type:\n" - " allocations, average, bytes-leaked, leaks, stacks, total, tsc, usage\n" + " allocations, average, bytes-leaked, leaks,\n" + " mismatched, stacks, total, tsc, usage\n" #endif " -S, --sanity check mismatching operations against new/delete\n" " -t, --trace trace mode\n"