tools/prasetrace: remvoe function name filter

Some function names in C++ may fail to parse, and no filtering is required here.
(anonymous namespace)::pool::free(void*) [clone .constprop.0]


Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-08-31 20:10:38 +08:00 committed by Petro Karashchenko
parent f39de6fd1a
commit 176668938e
1 changed files with 1 additions and 5 deletions

View File

@ -78,11 +78,7 @@ class SymbolTables(object):
for nsym, symbol in enumerate(symtable.iter_symbols()):
if self.__symbol_filter(symbol) is not None:
symbol_name = cxxfilt.demangle(symbol.name)
func_name = re.sub(r"\(.*$", "", symbol_name)
if func_name[0] == "_" or func_name.find(".") != -1:
continue
self.symbol_dict[symbol["st_value"] & ~0x01] = func_name
self.symbol_dict[symbol["st_value"] & ~0x01] = symbol_name
self.addr_list = sorted(self.symbol_dict)
def addr2symbol(self, addr: int):