diff options
author | Martin Hunt <hunt@redhat.com> | 2008-04-15 21:12:26 -0400 |
---|---|---|
committer | Martin Hunt <hunt@redhat.com> | 2008-04-15 21:12:26 -0400 |
commit | d46ba57b8584a005b2b97d1e7a02004169670492 (patch) | |
tree | b6e5630bd90414b5469bfb7ac0a014d52c8bb885 /runtime/sym.c | |
parent | ca1655b01e0f15289f5b8e7b760373c733cbdd83 (diff) | |
parent | 4f7a75f2cb3394290d1093a031546aa848ace929 (diff) | |
download | systemtap-steved-d46ba57b8584a005b2b97d1e7a02004169670492.tar.gz systemtap-steved-d46ba57b8584a005b2b97d1e7a02004169670492.tar.xz systemtap-steved-d46ba57b8584a005b2b97d1e7a02004169670492.zip |
Merge branch 'master' of monkey:/home/hunt/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) |