From d2f8bc76b0165cfe6e2e23b1dfab9f044e33a38a Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 23 Mar 2010 16:37:59 -0500 Subject: Fixed PR 11425 by fixing probefunc() when used with kprobe.function. * tapset/context-symbols.stp: Fixed probefunc() by looking for '"' as the end of the function name along with '@'. --- tapset/context-symbols.stp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tapset/context-symbols.stp') diff --git a/tapset/context-symbols.stp b/tapset/context-symbols.stp index 38900196..f38c9ec1 100644 --- a/tapset/context-symbols.stp +++ b/tapset/context-symbols.stp @@ -56,7 +56,7 @@ function probefunc:string () %{ /* pure */ if (start) { int len = MAXSTRINGLEN; char *dst = THIS->__retvalue; - while (*ptr != '@' && --len > 0 && *ptr) + while (*ptr != '@' && *ptr != '"' && --len > 0 && *ptr) *dst++ = *ptr++; *dst = 0; -- cgit