diff options
author | hunt <hunt> | 2006-09-18 18:01:35 +0000 |
---|---|---|
committer | hunt <hunt> | 2006-09-18 18:01:35 +0000 |
commit | f871d3f10c0fac033fa55532c34e9c406343ae2d (patch) | |
tree | 96dd452134d38c07b96509e29cd4b8add476def6 | |
parent | aa14db816a565c3a1e958f1c1f82692707fae673 (diff) | |
download | systemtap-steved-f871d3f10c0fac033fa55532c34e9c406343ae2d.tar.gz systemtap-steved-f871d3f10c0fac033fa55532c34e9c406343ae2d.tar.xz systemtap-steved-f871d3f10c0fac033fa55532c34e9c406343ae2d.zip |
2006-09-18 Martin Hunt <hunt@redhat.com>
* logging.stp (stp_print_binary): New function.
* string.stp: Fix docs.
-rw-r--r-- | tapset/ChangeLog | 5 | ||||
-rw-r--r-- | tapset/logging.stp | 5 | ||||
-rw-r--r-- | tapset/string.stp | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/tapset/ChangeLog b/tapset/ChangeLog index 8c85e648..00b372d1 100644 --- a/tapset/ChangeLog +++ b/tapset/ChangeLog @@ -1,3 +1,8 @@ +2006-09-18 Martin Hunt <hunt@redhat.com> + + * logging.stp (stp_print_binary): New function. + * string.stp: Fix docs. + 2006-09-12 Li Guanglei <guanglei@cn.ibm.com> From Li Xuepeng <xuepengl@cn.ibm.com> diff --git a/tapset/logging.stp b/tapset/logging.stp index dcd9741a..3b0f9df5 100644 --- a/tapset/logging.stp +++ b/tapset/logging.stp @@ -31,3 +31,8 @@ function error (msg:string) %{ CONTEXT->last_error = THIS->msg; CONTEXT->last_stmt = NULL; %} + +function stp_print_binary(n:long, arg1:long, arg2:long, arg3:long, arg4:long) %{ + _stp_print_binary (THIS->n, THIS->arg1, THIS->arg2, THIS->arg3, THIS->arg4); +%} + diff --git a/tapset/string.stp b/tapset/string.stp index f1666afa..77925d0d 100644 --- a/tapset/string.stp +++ b/tapset/string.stp @@ -17,7 +17,7 @@ function strlen:long(s:string) %{ /* pure */ * @param str string * @param start Starting position. 0 = start of the string * @param length Length of string to return. -* @return Returns the length of the string. +* @return Returns the substring. */ function substr:string(str:string,start:long, length:long) %{ /* pure */ int length = THIS->length + 1 > MAXSTRINGLEN ? MAXSTRINGLEN : THIS->length + 1; |