New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf regression: Symbols/function names not demangled #280
Comments
|
What platform are you using flamegraph on? How is the code that you're profiling generated? |
|
I tracked the problem down to an issue with the installed perf version. After downgrading from perf-6.4.4-200.fc38 to perf-6.2.6-300.fc38, Rust symbols are demangled properly again. Sorry for the noise here. |
|
No problem, glad you figured it out! |
|
I'm having the problem on Fedora as well. It appears the latest versions of perf do not demangle the names correctly? |
|
Would be great if someone can look for/file a bug against Fedora and reference it here. |
|
I did file an issue in the RedHat bugtracker as this is where the "File a new bug report" link on the fedora package site leads to. |
|
@arctic-alpaca awesome, thanks! |
|
On Fedora 39, the oldest available perf package is 6.5.4 (and the newest is 6.6.3), which still have the bug :( Will update if I find a workaround |
|
@kangalio Building perf from source has worked for me. While I'm not sure how correct this is, these are the notes I found from when I built it: git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd linux
git checkout v6.6
make -C tools/perf -s
PERF=./path_to_self_built_perf cargo flamegraph ... |
|
To install required dependencies to build then you can run |


Hi,
the function names in generated flamegraphs have become encapsulated by other characters. Please see the attached screenshot for details:

This started happening after using version 0.6.2 without issue for some time and updating to 0.6.3 did not change the behavior.
I'm guessing this is triggered by my environment as flamegraph was not updated at the time the issue appeared but I don't know what could be causing this.
Command used:
cargo flamegraph --bench ipv6 -- --bench --profile-time 10Profile:
Rust version: rustc 1.74.0-nightly (5c6a7e71c 2023-08-20)
The text was updated successfully, but these errors were encountered: