Skip to content

Commit 231d688

Browse files
committed
traced_perf: Include kernel return addresses in stack traces
These are sometimes useful for identifying the call site (e.g. in case of an indirect call or multiple calls to the same function).
1 parent ab21398 commit 231d688

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/profiling/perf/unwinding.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,7 @@ std::vector<unwindstack::FrameData> Unwinder::SymbolizeKernelCallchain(
526526
unwindstack::FrameData& frame = ret.emplace_back();
527527
frame.function_name = kernel_map->Lookup(ip);
528528
frame.map_info = kernel_map_info.ref();
529+
frame.rel_pc = ip;
529530
}
530531
return ret;
531532
}

0 commit comments

Comments
 (0)