This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: malloc probes for Systemtap


On Oct  2, 2012, Alexandre Oliva <aoliva@redhat.com> wrote:

> or perhaps to have the newly-introduce docs unconditionally
> removed from the formatted manuals.

Like this:

Comment out documentation of malloc probes

From: Alexandre Oliva <aoliva@redhat.com>

for  ChangeLog

	* manual/memory.texi: Exclude malloc probe documentation
	unless probe is set.
---

 manual/memory.texi |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/manual/memory.texi b/manual/memory.texi
index c940d5b..12dadb4 100644
--- a/manual/memory.texi
+++ b/manual/memory.texi
@@ -286,8 +286,10 @@ any time (or never).
 * Heap Consistency Checking::   Automatic checking for errors.
 * Hooks for Malloc::            You can use these hooks for debugging
 				 programs that use @code{malloc}.
+@ifset probes
 * Probes for Malloc::           You can use these probes to monitor some
 				 internal behavior of @code{malloc}.
+@end ifset
 * Statistics of Malloc::        Getting information about how much
 				 memory your program is using.
 * Summary of Malloc::           Summary of @code{malloc} and related functions.
@@ -1021,6 +1023,7 @@ installing such hooks.
 @c __morecore, __after_morecore_hook are undocumented
 @c It's not clear whether to document them.
 
+@ifset probes
 @node Probes for Malloc
 @subsubsection Memory Allocation Probes
 @cindex allocation probes, for @code{malloc}
@@ -1256,6 +1259,7 @@ dynamic brk/mmap thresholds.  Argument @var{$arg1} and @var{$arg2} are
 the adjusted mmap and trim thresholds, respectively.
 @end deftp
 
+@end ifset
 @node Statistics of Malloc
 @subsubsection Statistics for Memory Allocation with @code{malloc}
 

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]