This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 176668938e tools/prasetrace: remvoe function name filter
176668938e is described below
commit 176668938e2f3a627e7795aa50f7e8c50b7b13bf
Author: yinshengkai <[email protected]>
AuthorDate: Thu Aug 31 20:10:38 2023 +0800
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 <[email protected]>
---
tools/parsetrace.py | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/tools/parsetrace.py b/tools/parsetrace.py
index 6972830629..f57e7df2de 100755
--- a/tools/parsetrace.py
+++ b/tools/parsetrace.py
@@ -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):