diff options
author | tpnguyen <tpnguyen> | 2006-07-18 13:14:16 +0000 |
---|---|---|
committer | tpnguyen <tpnguyen> | 2006-07-18 13:14:16 +0000 |
commit | d278162afaa28852dc2e3d2c32e2ca8d27c119c3 (patch) | |
tree | 277c906941143469802f8197556ee07ddd8265fa /tapset/context.stp | |
parent | 749cc1800c9049aa92e7c98cfd1a6d953d73a342 (diff) | |
download | systemtap-steved-d278162afaa28852dc2e3d2c32e2ca8d27c119c3.tar.gz systemtap-steved-d278162afaa28852dc2e3d2c32e2ca8d27c119c3.tar.xz systemtap-steved-d278162afaa28852dc2e3d2c32e2ca8d27c119c3.zip |
Modified probefunc() to print consistent name on ppc64
Diffstat (limited to 'tapset/context.stp')
-rw-r--r-- | tapset/context.stp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tapset/context.stp b/tapset/context.stp index 2e5e9e74..16b176af 100644 --- a/tapset/context.stp +++ b/tapset/context.stp @@ -109,7 +109,8 @@ function probefunc:string () %{ /* pure */ } else if (CONTEXT->regs) { _stp_symbol_sprint_basic(THIS->__retvalue, MAXSTRINGLEN, REG_IP(CONTEXT->regs)); - + if (THIS->__retvalue[0] == '.') /* powerpc symbol has a dot*/ + strlcpy(THIS->__retvalue,THIS->__retvalue + 1,MAXSTRINGLEN); } else { THIS->__retvalue[0] = '\0'; } |