Eliminate any tracepoint code specific frames from the profiler backtraces.

Signed-off-by: Waldemar Kozaczuk <jwkozac...@gmail.com>
---
 scripts/osv/prof.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/osv/prof.py b/scripts/osv/prof.py
index 2de0d4ac..edb8a5c1 100644
--- a/scripts/osv/prof.py
+++ b/scripts/osv/prof.py
@@ -103,6 +103,8 @@ def strip_garbage(backtrace):
     def is_good(src_addr):
         if not src_addr.name:
             return True
+        if src_addr.filename and src_addr.filename.endswith("trace.hh"):
+            return False
         return not src_addr.name in unimportant_functions
 
     for chain in unimportant_prefixes:
-- 
2.35.1

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osv-dev/20230404024308.169022-2-jwkozaczuk%40gmail.com.

Reply via email to