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
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
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
+++
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