fix help and manual page

This commit is contained in:
Stefani Seibold 2015-11-03 21:25:40 +01:00
parent f837c452e3
commit b147f2b2ff
2 changed files with 8 additions and 3 deletions

View File

@ -41,6 +41,7 @@ mtrace-ng \- A dynamic memory allocation tracer
[\-D|\-\-debug \fImask\fR] [\-D|\-\-debug \fImask\fR]
[\-i|\-\-interactive] [\-i|\-\-interactive]
[\-l|\-\-logfile \fIfilename\fR] [\-l|\-\-logfile \fIfilename\fR]
[\-L|\-\-long]
[\-n|\-\-nocpp] [\-n|\-\-nocpp]
[\-N|\-\-nohwbp] [\-N|\-\-nohwbp]
[\-S|\-\-sanity] [\-S|\-\-sanity]
@ -71,6 +72,7 @@ mtrace-ng \- A dynamic memory allocation tracer
[\-C|\-\-cwd \fIpath\fR] [\-C|\-\-cwd \fIpath\fR]
[\-D|\-\-debug \fImask\fR] [\-D|\-\-debug \fImask\fR]
[\-l|\-\-logfile \fIfilename\fR] [\-l|\-\-logfile \fIfilename\fR]
[\-L|\-\-long]
[\-n|\-\-nocpp] [\-n|\-\-nocpp]
[\-N|\-\-nohwbp] [\-N|\-\-nohwbp]
[\-S|\-\-sanity] [\-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 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 from the logfile. This option can improve the performance of the trace
since the trace will be split into to different actions. 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" .IP "\-n, \-\-nocpp"
Disable the trace of C++ allocation operators. This is safe and faster for libstdc++, 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. since this library does call malloc() and free() inside the allocation operators.
.IP "\-N, \-\-nohwbp" .IP "\-N, \-\-nohwbp"
Disable the usage of hardware breakpoints. This options is intended for some 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" .IP "\-p, \-\-pid \fIpid"
Attach to the process with the process ID \fIpid\fR and begin tracing. 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. This option can be used together with passing a command to execute.

View File

@ -95,7 +95,7 @@ static void usage(void)
" -O, --omit=FILE do not place breakpoint in this file\n" " -O, --omit=FILE do not place breakpoint in this file\n"
" -k, --kill abort mtrace-ng due unexpected error conditon\n" " -k, --kill abort mtrace-ng due unexpected error conditon\n"
" -l, --logfile use log file instead of socket connection\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, --nocpp disable trace of c++ allocation operators (faster for libstdc++)\n"
" -N, --nohwbp disable hardware breakpoint support\n" " -N, --nohwbp disable hardware breakpoint support\n"
#ifndef DISABLE_CLIENT #ifndef DISABLE_CLIENT
@ -106,7 +106,8 @@ static void usage(void)
" -r, --remote=addr remote use address (path, address or host)\n" " -r, --remote=addr remote use address (path, address or host)\n"
#ifndef DISABLE_CLIENT #ifndef DISABLE_CLIENT
" -s, --sort-by=type sort dump by type:\n" " -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 #endif
" -S, --sanity check mismatching operations against new/delete\n" " -S, --sanity check mismatching operations against new/delete\n"
" -t, --trace trace mode\n" " -t, --trace trace mode\n"