Re: [PATCH v2 0/6] Use rustc-demangle for Rust demangling

From: Arnaldo Carvalho de Melo
Date: Fri May 09 2025 - 16:04:03 EST


On Tue, Apr 29, 2025 at 05:41:22PM -0700, Ian Rogers wrote:
> Discussion of improved Rust demangling started with:
> https://lore.kernel.org/lkml/jgxfnphfo3nzlfipnuuzdlfc4ehbr2tnh2evz3mdhynd6wvrsu@fcz6vrvepybb/
> that led to implementing a Rust v0 demangler:
> https://lore.kernel.org/lkml/20250129193037.573431-1-irogers@xxxxxxxxxx/
> Discussion on that patch series led to the rust-lang issue:
> https://github.com/rust-lang/rust/issues/60705
> where the pre-existing Rust C demangler, authored by Ariel Ben-Yehuda
> <ariel.byd@xxxxxxxxx>, was mentioned. There wasn't progress on that
> issue and so I've pulled that work into perf as discussed on the
> issue.
>
> v2: Changes to references from arielb1 to "Ariel Ben Yehuda
> <ariel.byd@xxxxxxxxx>", license tidying as suggested by Miguel
> Ojeda" <ojeda@xxxxxxxxxx>. Don't change from alternate demangling
> flag from false to true in the test change, make it true from the
> beginning (patch 2).
>
> Ian Rogers (6):
> perf demangle-rust: Add rustc-demangle C demangler
> perf symbol-elf: Integrate rust-v0 demangling
> perf demangle-rust: Remove previous legacy rust decoder
> perf test demangle-rust: Add Rust demangling test
> perf test demangle-java: Switch to using dso__demangle_sym
> perf test demangle-ocaml: Switch to using dso__demangle_sym

I'm fixing these up, ok?

✗ BADSIG: DKIM/google.com
---
Total patches: 6
---
Cover: ./v2_20250429_irogers_use_rustc_demangle_for_rust_demangling.cover
Link: https://lore.kernel.org/r/20250430004128.474388-1-irogers@xxxxxxxxxx
Base: applies clean to current tree
git checkout -b v2_20250429_irogers_google_com HEAD
git am ./v2_20250429_irogers_use_rustc_demangle_for_rust_demangling.mbx
⬢ [acme@toolbx perf-tools-next]$ git am ./v2_20250429_irogers_use_rustc_demangle_for_rust_demangling.mbx
Applying: perf demangle-rust: Add rustc-demangle C demangler
.git/rebase-apply/patch:1098: trailing whitespace.

.git/rebase-apply/patch:1363: trailing whitespace.

.git/rebase-apply/patch:1474: trailing whitespace.
default:
.git/rebase-apply/patch:1791: trailing whitespace.
{ NULL },
.git/rebase-apply/patch:1814: trailing whitespace.
// From here on, inner contains a pointer to the next element, rest[:len] to the current one
warning: squelched 4 whitespace errors
warning: 9 lines add whitespace errors.
Applying: perf symbol-elf: Integrate rust-v0 demangling
Applying: perf demangle-rust: Remove previous legacy rust decoder
Applying: perf test demangle-rust: Add Rust demangling test
Applying: perf test demangle-java: Switch to using dso__demangle_sym
Applying: perf test demangle-ocaml: Switch to using dso__demangle_sym
⬢ [acme@toolbx perf-tools-next]$

Applied.

- Arnaldo