From c5372ec5f2a36228751bf7978b8e3b874830e456 Mon Sep 17 00:00:00 2001 From: William Cohen Date: Tue, 7 Dec 2010 15:58:13 -0500 Subject: [PATCH] Add the indent.stp to the Tapset reference manual. --- doc/SystemTap_Tapset_Reference/tapsets.tmpl | 1 + tapset/indent.stp | 33 ++++++--------------- 2 files changed, 10 insertions(+), 24 deletions(-) diff --git a/doc/SystemTap_Tapset_Reference/tapsets.tmpl b/doc/SystemTap_Tapset_Reference/tapsets.tmpl index 1eddd0a12..a7cdddaf6 100644 --- a/doc/SystemTap_Tapset_Reference/tapsets.tmpl +++ b/doc/SystemTap_Tapset_Reference/tapsets.tmpl @@ -318,5 +318,6 @@ and attributes of log messages. !Itapset/ansi.stp +!Itapset/indent.stp diff --git a/tapset/indent.stp b/tapset/indent.stp index 29784b74b..489b89c6e 100644 --- a/tapset/indent.stp +++ b/tapset/indent.stp @@ -13,8 +13,7 @@ function _generic_indent (idx, desc, delta) } /** - * sfunction thread_indent - returns an amount of space with - * the current task information + * sfunction thread_indent - returns an amount of space with the current task information * * General Syntax: thread_indent:string (delta:long) * @@ -34,7 +33,15 @@ function thread_indent (delta) /** * sfunction indent - returns an amount of space to indent + * + * General Syntax: indent:string (delta:long) + * * @delta: the amount of space added/removed for each call + * + * Description: This function returns a string with appropriate + * indentation. Call it with a small positive or matching negative + * delta. Unlike the thread_indent function, the indent does not + * track individual indent values on a per thread basis. */ function indent(delta){ return _generic_indent(-1, "", delta) @@ -74,25 +81,3 @@ function indent(delta){ * 0 swapper(0): -> usb_hcd_irq * 7 swapper(0): <- usb_hcd_irq */ - - - - - - - - - - - - - - - - - - - - - - -- 2.43.5