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:
parent
f39de6fd1a
commit
176668938e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user