[osv-dev] [PATCH] trace: add mechanism to resolve application symbols

2023-04-03 Thread Waldemar Kozaczuk
Enhance tracing/profiling tool by adding a new -S option that instructs trace.py to use tracefile.symbols file for symbol resolution instead of addr2line utility: ./scripts/trace.py prof -FLS In essence, this new patch enhances loader.py to generate new file tracefile.symbols along the trace

[osv-dev] [PATCH] trace.py: inspect backtrace filename in a safe manner

2023-04-03 Thread Waldemar Kozaczuk
Some collected tracepoints may have missing the filename field. So before trying to filter the frames by filename test if it is present. Signed-off-by: Waldemar Kozaczuk --- scripts/osv/trace.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/osv/trace.py

[osv-dev] [PATCH] prof.py: remove extra noise from profiler stack traces

2023-04-03 Thread Waldemar Kozaczuk
Eliminate any tracepoint code specific frames from the profiler backtraces. Signed-off-by: Waldemar Kozaczuk --- 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 +++

[osv-dev] [PATCH] loader.py: use with statement when writing trace file

2023-04-03 Thread Waldemar Kozaczuk
The 'osv trace2file' does not work with python3 so let us fix it by replacing the code to open and write to a file with more portable and succinct "with" construct. Signed-off-by: Waldemar Kozaczuk --- scripts/loader.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git