From 5b328efe93befa4d48774985bd0254560d9c8470 Mon Sep 17 00:00:00 2001 From: kevinrs Date: Wed, 28 Sep 2005 00:29:47 +0000 Subject: tapset/mask_string.stp: wrote a few aux functions that can be used by tapsets to derive a bitmask symbolic string from a given number tapset/string.stp: strlen: Returns the length of the string argument substr: Returns a substring starting at start/ending at stop stapfuncs.5.in: Added a STRING category with aforementioned functions tapset/system_calls.stp Exported more variable for more system calls --- stapfuncs.5.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'stapfuncs.5.in') diff --git a/stapfuncs.5.in b/stapfuncs.5.in index a9746a1d..01adca12 100644 --- a/stapfuncs.5.in +++ b/stapfuncs.5.in @@ -84,6 +84,16 @@ user_string:string (addr:long) Copy a string from user space at given address. The validation of this address is only partial at present. +.SS STRING + +.TP +strlen:long (str:string) +Return the number of characters in str. + +.TP +substr:string (str:string,start:long,stop:long) +Return the substring starting at character start and ending at character stop. + .SS TIMESTAMP .TP -- cgit