Bug 207777
Summary: | Userspace frames are missing despite -fno-omit-frame-pointer | ||
---|---|---|---|
Product: | Tracing/Profiling | Reporter: | Konstantin Kharlamov (hi-angel) |
Component: | Perf tool | Assignee: | Arnaldo Carvalho de Melo (acme) |
Status: | NEW --- | ||
Severity: | normal | CC: | jolsa |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugzilla.kernel.org/show_bug.cgi?id=207301 | ||
Kernel Version: | 5.6.13 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Konstantin Kharlamov
2020-05-18 15:29:17 UTC
Omg, sorry, forgot to put the code in the description #include <unistd.h> void f() { for (size_t i = 0; i < 5; ++i) { sleep(1); } } void g() { f(); } int main() { g(); } I just remember that there's an alternative way to get stack traces: by using `--callgraph=X`. When that X is dwarf, I get the correct output. |