diff options
author | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-15 21:32:59 -0400 |
---|---|---|
committer | wenji <wjhuang@dhcp-beijing-cdc-10-182-120-233.cn.oracle.com> | 2008-04-15 21:32:59 -0400 |
commit | 7edb09d8ba7689d26aefc0a273f334cec4419539 (patch) | |
tree | ef40e55d0be98abe137c6d174b5bdb8c40bb022c /runtime/sym.c | |
parent | bd10b81c06a0102ac10617da2f368fcc168fc15e (diff) | |
parent | 8a49d1d23c77033bf98fc7b139b37f83e3e0eb49 (diff) | |
download | systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.tar.gz systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.tar.xz systemtap-steved-7edb09d8ba7689d26aefc0a273f334cec4419539.zip |
Merge branch 'master' of ssh://wenji@sources.redhat.com/git/systemtap
Diffstat (limited to 'runtime/sym.c')
-rw-r--r-- | runtime/sym.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/sym.c b/runtime/sym.c index 3d5ff01d..7163bf92 100644 --- a/runtime/sym.c +++ b/runtime/sym.c @@ -223,8 +223,7 @@ void _stp_symbol_print(unsigned long address) } /* Like _stp_symbol_print, except only print if the address is a valid function address */ - -void _stp_func_print(unsigned long address, int verbose, int exact) +int _stp_func_print(unsigned long address, int verbose, int exact) { char *modname; const char *name; @@ -247,7 +246,9 @@ void _stp_func_print(unsigned long address, int verbose, int exact) _stp_printf(" %p : %s+%#lx/%#lx%s\n", (int64_t) address, name, offset, size, exstr); } else _stp_printf("%p ", (int64_t) address); + return 1; } + return 0; } void _stp_symbol_snprint(char *str, size_t len, unsigned long address) |