Skip to content

traced_perf: Include kernel return addresses in stack traces#5923

Open
pcc wants to merge 1 commit into
google:mainfrom
pcc:kernel-return-addr
Open

traced_perf: Include kernel return addresses in stack traces#5923
pcc wants to merge 1 commit into
google:mainfrom
pcc:kernel-return-addr

Conversation

@pcc
Copy link
Copy Markdown
Contributor

@pcc pcc commented May 17, 2026

These are sometimes useful for identifying the call site (e.g. in case of an indirect call or multiple calls to the same function).

These are sometimes useful for identifying the call site (e.g. in case
of an indirect call or multiple calls to the same function).
@pcc pcc requested a review from a team as a code owner May 17, 2026 05:52
@pcc
Copy link
Copy Markdown
Contributor Author

pcc commented May 17, 2026

P.S. To investigate my actual scenario I also had this diff:

-    frame.function_name = std::move(function_name);
+    frame.function_name = std::move(function_name) + " " +
+                          base::Uint64ToHexString(sample.kernel_ips[i]);

so that the flame graph entries would be discriminated by call site. We may consider adding an option to the UI to do something similar, which may also be useful for userspace stack traces.

@LalitMaganti LalitMaganti requested a review from rsavitski May 17, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant