From c45f6fbff2e7e32b1b9cd4c6e726fa202a4542cf Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 21 Mar 2007 15:09:57 +0000 Subject: 2007-03-21 Martin Hunt * sym.h: Declare _stp_module_relocate. * sym.c (_stp_module_relocate): Add comments, reformat, add a way for "last" cached values to be cleared when modules are removed. (_stp_symbol_print): Simplify and remove static buffer. (_stp_symbol_snprint): Ditto. * symbols.c (_stp_del_module): Add a call to _stp_module_relocate to clear its cache. --- runtime/sym.h | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime/sym.h') diff --git a/runtime/sym.h b/runtime/sym.h index 82a0cfcd..d164e23f 100644 --- a/runtime/sym.h +++ b/runtime/sym.h @@ -61,4 +61,5 @@ struct _stp_module *_stp_modules_by_addr[STP_MAX_MODULES]; /* the number of modules in the arrays */ int _stp_num_modules = 0; +unsigned long _stp_module_relocate (const char *module, const char *section, unsigned long offset); #endif /* _STAP_SYMBOLS_H_ */ -- cgit