This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2 1/2] mtrace: record backtrace of memory allocation/deallocation
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Kyeong Yoo <kyeong dot yoo at alliedtelesis dot co dot nz>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 20 Nov 2018 16:47:54 +0000
- Subject: Re: [PATCH v2 1/2] mtrace: record backtrace of memory allocation/deallocation
- References: <154268918372.10640.3813922125301329024.stgit@kyeongy-dl.ws.atlnz.lc>
On Tue, 20 Nov 2018, Kyeong Yoo wrote:
> +To generate more detailed backtrace information of function calls to
> +@code{malloc} etc, set an environment variable named @code{MALLOC_TRACE_LEVEL}
> +with a number between 1 and 15. This indicates the maximum number of
> +function pointers to generate in the backtrace information.
@env for environment variables; two spaces after "." in Texinfo sources.
> +A list of pointers are printed with '#' mark before each memory
' is a right quote in Texinfo, so you need @samp{#} for proper quoting.
> +For cross-compilation, @code{mtrace} can generate meaningful output
> +with additional command line options @code{--prefix=PREFIX} and
> +@code{--addr2line=CMD} along with @code{/proc/<PID>maps} file copied
> +from the target device.
@option for command-line options, and @var for metasyntactic variables
(lowercase inside @var, so @var{prefix} etc.). @file for filenames.
I expect people will look at the patch in more detail once the copyright
assignment is done.
https://git.savannah.gnu.org/cgit/gnulib.git/plain/doc/Copyright/request-assign.future
--
Joseph S. Myers
joseph@codesourcery.com